---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Indice:
* Disclaimer.
* Come creare un messaggio di ALERT al passaggio del mause
* Crea un'opzione che controlla l'ultima modifica della pagina.
* La REDIREZIONE A TEMPO
* Orario statico in Javascript (hh/mm)
- Spiegazione e conclusioni
* Lo Scroller verticale automatico
* Come fare apparire usa scritta scorrevole sulla barra inferiore di Internet explorer
* Messaggio allert "scritto da voi" per chi vuole rubarvi le immagini
* Una scritta dal basso verso l'alto o viceversa.
* Scritta che gira attorno alla freccetta del mouse
* All'apertura della pagina apparirà un message allert
* Per impostare la riga a fondo pagina web scorrevole
* Come Visualizzare il browser ke usa il nostro visitatore
* Come selezionare il sito come homepage con un click
* Visualizziamo la risoluzione del monitor ke il visitatore sta usando
* Come sapere la DATA e l'ORA esatta.
* Come creare un antivirus scan per TROJAN e attacchi DDOS su pagina web
* Saluti e commenti
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Come creare un messaggio di ALERT al passaggio del mouse:
---------------------------------------- -----------------
Lo script vi permette di aprire un messaggio di alert al passaggio del mouse sopra una parola
o frase linkata. Ecco qui il codice JAVA che dovrete inserire nella vostra pagina web.
Quello che vedete qui sotto è il vero e proprio javascript:
<script language="LiveScript">
<!--
function hello()
{
alert("spero che lo script ti sia gradito");
}
// -->
</script>
Questo è invece il codice html che richiama la funzione:
<a href="" onMouseOver="hello()">Passa sopra per la sorpresa ;-)</a>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Crea un'opzione che controlla l'ultima modifica della pagina:
---------------------------------------- ---------------------
Senza dover utilizzare particolare script asp, cgi o altro ancora, basta inserire una semplice
riga di codice java all'interno della pagina desiderata:
Qui sotto vi riportiamo il codice da inserire:
L'ultima modifica risale al:
<script language="JavaScript">
<!--
document.write(document.lastModified)
// -->
</script>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
La REDIREZIONE A TEMPO:
-----------------------
Spesso è una necessità far sostare i propri utenti per pochi secondi in una pagina e farli
reindirizzare in un'altra pagina. In questo caso è proprio l'html a venirci in contro
mettendo a disposizione un pratico script.
<META HTTP-EQUIV="Refresh" CONTENT="INSERISCI IL TEMPO;URL=INSERISCI INDIRIZZO PAGINA WEB">
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Orario statico in Javascript (hh/mm):
-------------------------------------
Ecco un Javascript che vi permette di realizzare un vero e proprio orologio statico nelle
vostre pagine.
Lo script qui sotto vi permetterà infatti di far visualizzare tramite una pagina web un
orologio testuale statico che si aggiornerà solo al reload della pagina web. Ricordiamo
inoltre che l'ora dipende da quella settata nel nostro pc!
Codice per lo script:
<script language=""JavaScript"&qu ot;>
<!--
today = new Date()
document.write
(""Orario attuale: "",today.getHours(),"&quo t;:"",today.getMinutes())
// -->
</script>
Spiegazioni e conclusioni:
--------------------------
Come potete vedere dal codice soprastante, nella pagina web verranno visualizzate
ORA (getHours) e MINUTI (getMinutes).
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Lo Scroller verticale automatico:
---------------------------------
Ecco qui un codice per creare uno scrolling automatico (senza la richiesta da parte dell’utente)
potrà essere poi terminato dalla semplice pressione del mouse sopra la barra dello scrolling.
Lo script potrà essere un po’ scomodo per chi è un po’ lento nella lettura, ma risulta però
essere molto simpatico da visualizzare .
<script language="JavaScript">
var speed=1
var currentpos=0,alt=1,curpos1=0,curpos2=-1
function initialize(){
startit()
}
function scrollwindow(){
if (document.all)
temp=document.body.scrollTop
else
temp=window.pageYOffset
if (alt==0)
alt=1
else
alt=0
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all)
currentpos=document.body.scrollTop+speed
else
currentpos=window.pageYOffset+speed
window.scroll(0,currentpos)
}
else{
currentpos=0
window.scroll(0,currentpos)
}
}
function startit(){
setInterval("scrollwindow()",1 0)
}
window.onload=initialize
</script>
La variabile della velocità è possibile cambiarla, ma a nostro parere, dopo aver testato lo
script varie volte e dopo aver raccolto in altri siti le volontà dei visitatori, la velocità
1 è la migliore!
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Come fare apparire usa scritta scorrevole sulla barra inferiore di Internet explorer:
---------------------------------------- ---------------------------------------- -----
</SCRIPT>
<SCRIPT language=JavaScript><!--
function initArray(n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
slide = new initArray(7)
slide[0]="IN QUESTI "
slide[1]="SPAZI "
slide[2]="TRA LE VIRGOLETTE "
slide[3]="DOVETE SCRIVERE "
slide[4]="CIO' CHE "
slide[5]="VOLETE FARE "
slide[6]="APPARIRE SCRITTO "
slide[7]="SULLA BARRA "
var delay1 = 3
var delay2 = 3000
var text = slide[0] + " "
var str = " "
var leftmsg = ""
var nextmsg = 0
function setMessage() {
if (str.length == 1) {
while (text.substring(0, 1) == " ") {
leftmsg += str
str = text.substring(0, 1)
text = text.substring(1, text.length)
}
leftmsg += str
str = text.substring(0, 1)
text = text.substring(1, text.length)
for (var x = 0; x < 120; x++) {
str = " " + str
}
}
else {
str = str.substring(10, str.length)
}
window.status = leftmsg + str
if (text == "") {
str = " "
nextmsg++
if (nextmsg > slide.length) {
nextmsg = 0
}
text = slide[nextmsg] + " "
leftmsg = ""
setTimeout('setMessage()',delay2)
}
else {
setTimeout('setMessage()',delay1)
}
}
setMessage();
// --></SCRIPT>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Messaggio allert "scritto da voi" per chi vuole rubarvi le immagini:
---------------------------------------- ----------------------------
<script language="JavaScript">
function ciao()
{
if (event.button==2)
alert("Scrivete qui ciò che volete avere scritto nel message allert Esempio: Non si prendono le cose degli altri");
}
document.onmousedown=ciao
</script>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Una scritta dall'alto verso il basso o viceversa:
---------------------------------------- ---------
<SCRIPT language=JavaScript1.2>
var marqueewidth=90
var marqueeheight=50
var speed=1
var marqueecontents='<font face="Arial" SIZE="2" color="orange">Scrivete qui ciò che volete fare apparire </font>'
if (document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';heigh t:'+marqueeheight+'">'+marqueeco ntents+'</marquee>')
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regener ate",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02. document.write(marqueecontents)
document.cmarquee01.document.cmarquee02. document.close()
thelength=document.cmarquee01.document.c marquee02.document.height
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02 .top>=thelength*(-1)){
document.cmarquee01.document.cmarquee02. top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02. top=marqueeheight
scrollit()
}
}
window.onload=regenerate2
</SCRIPT>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Scritta che gira attorno alla freccetta del mouse:
---------------------------------------- ----------
</script>
<SCRIPT language=JavaScript>
<!-- Begin
if (document.all) {
//Things you can alter
yourLogo = "Scrivi qui ciò che vuoi far apparire(massimo una frase di 10lettere)™ "; //Not less than 2 letters!
logoFont = "Verdana";
logoColor = "RED";
//Nothing needs altering below!
yourLogo = yourLogo.split('');
L = yourLogo.length;
TrigSplit = 360 / L;
Sz = new Array()
logoWidth = 100;
logoHeight = -30;
ypos = 0;
xpos = 0;
step = 0.03;
currStep = 0;
document.write('<div id="outer" style="position:absolute;top:0px;le ft:0px"><div style="position:relative">' );
for (i = 0; i < L; i++) {
document.write('<div id="ie" style="position:absolute;top:0px;le ft:0px;'
+'width:10px;height:10px;font-family:'+l ogoFont+';font-size:14px;'
+'color:'+logoColor+';text-align:center& amp; amp; amp; amp; quot;>'+yourLogo[i]+'</div>');
}
document.write('</div></div> ');
function Mouse() {
ypos = event.y;
xpos = event.x - 5;
}
document.onmousemove=Mouse;
function animateLogo() {
outer.style.pixelTop = document.body.scrollTop;
for (i = 0; i < L; i++) {
ie[i].style.top = ypos + logoHeight * Math.sin(currStep + i * TrigSplit * Math.PI / 180);
ie[i].style.left = xpos + logoWidth * Math.cos(currStep + i * TrigSplit * Math.PI / 180);
Sz[i] = ie[i].style.pixelTop - ypos;
if (Sz[i] < 5) Sz[i] = 5;
ie[i].style.fontSize = Sz[i] / 1.7;
}
currStep -= step;
setTimeout('animateLogo()', 20);
}
window.onload = animateLogo;
}
// End -->
</script>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
all'apertura della pagina apparirà un message allert:
---------------------------------------- -------------
<script language="JavaScript">
<!--
(!alert("Scrivi qui ciò che vuoi"))
//-->
</script>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Per impostare la riga a fondo pagina web scorrevole:
---------------------------------------- ------------
</STYLE>
</head>
<body>
<SCRIPT language=JavaScript>
var speed = 50 //Delay Between Every word
var pause = 50 //Delay Between EveryLine
var timerID = null
var bannerRunning = false
var ar = new Array()
ar[0] = "---> Il creatore di questo manuale è...DangerousSÞirit..."
var currentMessage = 0
var offset = 0
function stopBanner() {
if (bannerRunning)
clearTimeout(timerID)
bannerRunning = false}
function startBanner() {
stopBanner()
showBanner()}
function showBanner() {
var text = ar[currentMessage]
if (offset < text.length) {
if (text.charAt(offset) == " ")
offset++
var partialMessage = text.substring(0, offset + 1)
window.status = partialMessage
offset++
timerID = setTimeout("showBanner()", speed)
bannerRunning = true}
else {
offset = 0
currentMessage++
if (currentMessage == ar.length)
currentMessage = 0
timerID = setTimeout("showBanner()", pause)
bannerRunning = true }}
startBanner();
</SCRIPT>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
come selezionare il sito come homepage con un click:
---------------------------------------- ------------
<B><A class=chlnk style="CURSOR: hand"
onclick="this.style.behavior='url(# default#homepage)';this.setHomePage('http://www.IL_TUO_SITO_.it');"
href=""><INPUT TYPE="Submit" CLASS="navbutton" VALUE="Clicca qui per selezionare il Sito come homepage"ID="navbutton" NAME="navbutton"></A> </B>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Come Visualizzare il browser ke usa il nostro visitatore:
---------------------------------------- -----------------
<SCRIPT language=JavaScript>
<!--
browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))
if (!browser) document.write('<CENTER><font size="3" color="###8000">ATTENZIONE! !!<BR>Stai usando:<BR>' + navigator.appName + ' ' + navigator.appVersion + '</font></CENTER>')
if (browser) document.write('<center><font size="3"></A><BR&g t;<BR><BR><BR><B> ;STAI USANDO...<BR>'+navigator.appName+ ' ' +navigator.appVersion+'</font>< /center>')
// -->
</SCRIPT>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
visualizziamo la risoluzione del monitor ke il visitatore sta usando:
---------------------------------------- -----------------------------
<SCRIPT language=JavaScript1.2>
<!-- Activate Cloaking Device
// Used to indicate that JS1.2 is supported
right_browser=true;
// Grabs screen resolution
width = screen.width;
height = screen.height;
color = screen.colorDepth;
// Deactivate Cloaking -->
</SCRIPT>
<SCRIPT language=JavaScript>
<!-- Activate Cloaking Device
// If browser supports JS1.2
if(right_browser)
{
document.open();
document.write("<CENTER>STAI UTILIZZANDO UNA RISOLUZIONE GRAFICA DI....<BR>");
document.write(width + " x " + height + " a " + color + " bit");
document.write("</B></FONT ></CENTER>");
}
// If browser does not support JS1.2 - display browser name/version & message
else
{
document.open();
document.write("<CENTER>" ;
document.write("<FONT SIZE='+1'><B>"+browser+&qu ot;</B></FONT><BR>< BR>");
document.write("<FONT SIZE='+1'><B>does not support JavaScript1.2.</B></FONT>< ;/CENTER>");
}
// Deactivate Cloaking -->
</SCRIPT>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Come sapere la DATA e l'ORA esatta:
-----------------------------------
<TD
style="FONT-SIZE: x-small; FONT-FAMILY: Courier New; TEXT-ALIGN: justify"
colSpan=2>
<TABLE>
<TBODY>
</TD></TR>
<TR>
<TD style="FONT-WEIGHT: bold; COLOR: navy" vAlign=top noWrap>Data e
ora</TD>
<TD>
<SCRIPT language=JavaScript><!--
today = new Date()
if (today.toLocaleString() != null) document.writeln("" + today.toLocaleString())
// --></SCRIPT>
</TD></TR></TBODY>< /TABLE></TD>
---------------------------------------- ---------------------------------------- ----------------
---------------------------------------- ---------------------------------------- ----------------
Come creare un antivirus scan per TROJAN e attacchi DDOS su pagina web:
---------------------------------------- -------------------------------
<TABLE class=b9 cellPadding=1 width=987>
<TBODY>
<TR vAlign=top align=left>
<TD class=b9 vAlign=top width=981>
<DIV align=center>
<P class=t1></P></DIV></T D></TR></TBODY></TABLE >
<FORM action= http://trojanscanner.com/cgi-bin/nph-por tscanner method=post>
<DIV align=center>
<P class=b9><font color="#008000" face="Courier New" size="3"><B>Scan your Ports for
Trojans</B><BR><INPUT type=radio value=service
name=search>Standard <INPUT
type=radio CHECKED value=known name=search> Default <INPUT type=radio value=all
name=search> All</font><FONT
face=Verdana color=#ffffff size=2><BR></FONT></P& gt;
<P class=b9></P>
<P class=b9><FONT face=Verdana color=#ffffff size=2><INPUT class=button type=submit value=scan name=Submit></FONT></P>&l t;/DIV></FORM>
<FORM name=DDOS action=http://dev.whitehats.com/cgi/ddos method=post>
<DIV align=center><FONT face=Arial color=#999900 size=1><INPUT type=hidden
value=true name=shaft><INPUT type=hidden value=true name=trinoo-pc><INPUT
type=hidden value=true name=trinoo-zombie><INPUT type=hidden value=true
name=trinoo-master><INPUT type=hidden value=true name=tfn><INPUT type=hidden
name=stacheldraht-master><INPUT type=hidden value=true
name=stacheldraht-zombie-tcp><INPU T type=hidden value=true
name=stacheldraht-zombie-666><INPU T type=hidden value=true
name=stacheldraht-zombie-668><INPU T type=hidden value=true
name=stacheldraht4-zombie><INPUT type=hidden value=true
name=ping></FONT></DIV>
<DIV align=center>
<P class=b9><B><font color="#008000" size="3" face="Courier New">Scan your system for
DDOS Agents</font></B><FONT face=Verdana color=#33ff00 size=2><BR></FONT></P& gt;
<P class=b9></P>
<P
class=b9><INPUT class=button type=submit value=scan name=Submit></P></DIV>< ;/FORM>
<FORM action=http://grc.com/x/ne.dll?rh1ck2l2 method=post><FONT face=Arial
color=#999900 size=1><INPUT type=hidden value=biyfpqa2 name=1> </FONT>
</FORM>
<dl>
<DT>
<DT><BR>
<DT><BR>
<DT>
<DT>
<DT>
<DT>
<DT>
<DT>
<DT>
<DT>
<DT>
<DT>
<DT>
<DT>
<DT>
<SCRIPT language=JawaScript>
<!-- -->
</noscript>
<script language="JavaScript"></ noscript>
<!-- -->
</noscript>
<SCRIPT LANGUAGE="JavaScript">
<!--
browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 2 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 2 )));
browser4 = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));
if (browser4) {
if (!self.url) {
self.url = '';
}
if (parent.name != 'test') {
test = window.open(" http://click.go2net.com/adpopup?site=VA& amp; amp; amp; amp; amp;shape=noshape&border=1&area= DIR.COMPHARDWARE&sizerepopup=1&h name=UNKNOWN", "test", "resizable=yes,width=528,height=200 ");
}
} else if (browser) {
if (!self.url) {
self.url = '';
}
if (parent.name != 'test') {
test = window.open(" http://click.go2net.com/adpopup?site=VA& amp; amp; amp; amp; amp;shape=banner&border=1&area=D IR.COMPHARDWARE&hname=UNKNOWN", "test", "resizable=yes,width=528,height=200 ");
}
}
//-->
</SCRIPT>