ëîãîòèï
Principala » fisiere » Scripturi uCoz

Script-ul inlocuieste o imagine la alta cu alte diferente
2010-05-04, 5:40 PM
Code
<SCRIPT LANGUAGE="JavaScript">
var nr2=100 ;
var nr1, random,a=2;
var speed=6; //hier die geschwindigkeit angeben
image1=new Image();
image1.src="neon1.gif"; //hier bild1
image2=new Image();
image2.src="neon2.gif"; //hier bild2

function wechsel()
{
nr1=Math.random();
random=Math.round( (nr1) * nr2) ;

if (a==2)
{
document.images.eins.src=image2.src
a=1;
}
else
{
document.images.eins.src=image1.src
a=2;
}
window.setTimeout('wechsel()',random*6);
}
</script>
<IMG SRC="neon1.gif" name="eins">




Categorie: Scripturi uCoz | Adaugat de: djnutzu
Vizualizari: 143 | Downloads: 0 | Raging: 0.0/0
Total comentarii : 0
Prenume *:
Email *:
Cod *: