css+div+js flash幻灯片
菜鸟复制走开!!!varNowImg=1;varbStart=0;varbStop=0;functionfnToggle(){varnext=NowImg+1;if(ne...
菜鸟 复制 走开 !!!
var NowImg = 1;
var bStart = 0;
var bStop =0;
function fnToggle()
{
var next = NowImg + 1;
if(next == MaxImg+1)
{
NowImg = MaxImg;
next = 1;
}
if(bStop!=1)
{
if(bStart == 0)
{
bStart = 1;
setTimeout('fnToggle()', 4000);
return;
}
else
{
flash.filters[0].Apply();
document.images['oDIV'+next].style.display = "";
document.images['oDIV'+NowImg].style.display = "none";
flash.filters[0].Play(duration=2);
if(NowImg == MaxImg)
NowImg = 1;
else
NowImg++;
}
setTimeout('fnToggle()', 4000);
}
}
这是scc+div
<DIV id=flash class=center>
<SCRIPT type=text/javascript
src="../JS/Article.js"></SCRIPT>
<SCRIPT language=javascript>var MaxImg = 4; fnToggle();</SCRIPT>
<IMG id=oDIV1 name=oDIV1
src="../img/top.jpg"> <IMG
style="DISPLAY: none" id=oDIV2
src="../img/top2.jpg"> <IMG
style="DISPLAY: none" id=oDIV3
src="../img/top3.jpg"> <IMG
style="DISPLAY: none" id=oDIV4
src="../img/top4.jpg"> </DIV>
他的 css样式 在这就不写了你们看怎么改一下能让他动起来 展开
var NowImg = 1;
var bStart = 0;
var bStop =0;
function fnToggle()
{
var next = NowImg + 1;
if(next == MaxImg+1)
{
NowImg = MaxImg;
next = 1;
}
if(bStop!=1)
{
if(bStart == 0)
{
bStart = 1;
setTimeout('fnToggle()', 4000);
return;
}
else
{
flash.filters[0].Apply();
document.images['oDIV'+next].style.display = "";
document.images['oDIV'+NowImg].style.display = "none";
flash.filters[0].Play(duration=2);
if(NowImg == MaxImg)
NowImg = 1;
else
NowImg++;
}
setTimeout('fnToggle()', 4000);
}
}
这是scc+div
<DIV id=flash class=center>
<SCRIPT type=text/javascript
src="../JS/Article.js"></SCRIPT>
<SCRIPT language=javascript>var MaxImg = 4; fnToggle();</SCRIPT>
<IMG id=oDIV1 name=oDIV1
src="../img/top.jpg"> <IMG
style="DISPLAY: none" id=oDIV2
src="../img/top2.jpg"> <IMG
style="DISPLAY: none" id=oDIV3
src="../img/top3.jpg"> <IMG
style="DISPLAY: none" id=oDIV4
src="../img/top4.jpg"> </DIV>
他的 css样式 在这就不写了你们看怎么改一下能让他动起来 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询