Autor Zpráva
qu
Profil *
Střídají se mi jen dva obrázky, někde mám chybu. Zkoukněte to, prosím.

<!--
var id
op=100,
step=-10;
function Start()
{
id=window.setInterval ("Move()",1000);
}
function Stop()
{
window.clearInterval(id);
}
function Move()
{
op +=step;
if (op<0){
op=0;
step=-step;
};
if(op>100){
op=100;
step=-step;
};
document.all.img1.filters.Alpha.opacity=op;
document.all.img2.filters.Alpha.opacity=100-op;
document.all.img3.filters.Alpha.opacity=100-op;
document.all.img4.filters.Alpha.opacity=100-op;
document.all.img5.filters.Alpha.opacity=100-op;
}
//-->
</SCRIPT>
</head>
<body style="background/color:#660000;
color:#ffcc66;
"> <body> <IMG ID=img1 SRC=obr1.jpg onMouseOver="Start()" onMouseOut="Stop"
STYLE="position: absolute; top: 10px; left: 20px; z-index: 2; filter: Alpha(Opacity=100)">
<IMG ID=img2 SRC=obr2.jpg
STYLE="position: absolute; top: 10px; left: 20px; z-index: 3; filter: Alpha(Opacity=0)">
<IMG ID=img3 SRC=obr3.jpg
STYLE="position: absolute; top: 10px; left: 20px; z-index: 4; filter: Alpha(Opacity=0)">
<IMG ID=img4 SRC=obr4.jpg
STYLE="position: absolute; top: 10px; left: 20px; z-index: 5; filter: Alpha(Opacity=0)">
<IMG ID=img5 SRC=obr5.jpg
STYLE="position: absolute; top: 10px; left: 20px; z-index: 1; filter: Alpha(Opacity=0)">
qu
Profil *
A ještě jeden dotaz, jestliže chci aby se mi obrázky střídaly automaticky, bez najetí myší, co můžu zaměnit?
qu
Profil *
Jiný pokus - vůbec se mi nerozběhl.

<body style="background/color:#660000;
color:#ffcc66;
"> <body><img src="obr1.jpg" name="SlideShow" width="160" height="120" border="0"><script language="JavaScript">
<!--

var slideShowSpeed = 2500
var crossFadeDuration = 50
var Pic = new Array()
Pic[0]="obr1.jpg"
Pic[1]="obr2.jpg"
Pic[2]="obr3.jpg"
Pic[3]="obr4.jpg"
Pic[4]="obr5.jpg"
Pic[5]="obr6.jpg"
Pic[6]="obr7.jpg"

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for(i=0;i<p;i++)
{
preLoad[i] = new Image()
preLoad[i].src = Pic[i]
}
function runSlideShow()
{
if (document.all)
{
document.images.SlideShow.style.filter="blendTrans(opacity=100,style=3 )"
document.images.SlideShow.style.filter="blendTrans(opacity=100,style=3 )"
document.images.SlideShow.style.filter="blendTrans(opacity=100,style=3 )"
document.images.SlideShow.filters.blendTrans.Apply()
}
document.images.SlideShow.src=preLoad[j]src

if (document.all)
{
document.images.SlideShow.filters.blendTrans.Play()
}
j = j+1
if (j> (p-1)) j = 0
t = setTimeout('runSlideShow()', slideShowSpeed)
}

runSlideShow();
//-->


</SCRIPT>


</body></html>
Toto téma je uzamčeno. Odpověď nelze zaslat.