<script language="javaScript">
<!--//
var i_strngth=1;
var i_image=0;
var timer;
var max = 0;
function showimage()
{
if (i_strngth <=110)
{
disableAll(i_image);
document.getElementById("Ctrl_Power_Pic1__ctl"+i_image).style.display="";
document.getElementById("Ctrl_Power_Pic1__ctl"+i_image).filters.alpha.opacity=i_strngth;
i_strngth=i_strngth+10;
timer=setTimeout("showimage()",50);
}
else
{
clearTimeout(timer)
if(document.getElementById("Ctrl_Power_Pic1__ctl1")!=null)
timer=setTimeout("hideimage()",2000)
}
}
function disableAll(id)
{
pre=-1;
if(id==0)
{
if(max>0)
pre = max-1;
}
else
pre = id-1;
if (document.getElementById("Ctrl_Power_Pic1__ctl"+pre)==null)
return;
document.getElementById("Ctrl_Power_Pic1__ctl"+pre).style.display="none";
}
function hideimage()
{
if (i_strngth >=-10)
{
disableAll(i_image);
document.getElementById("Ctrl_Power_Pic1__ctl"+i_image).style.display="";
document.getElementById("Ctrl_Power_Pic1__ctl"+i_image).filters.alpha.opacity=i_strngth;
i_strngth=i_strngth-10;
timer=setTimeout("hideimage()",100);
}
else
{
clearTimeout(timer);
i_image++;
if (document.getElementById("Ctrl_Power_Pic1__ctl"+i_image)==null)
{
max=i_image;
i_image=0;
}
i_strngth=1;
timer=setTimeout("showimage()",100) ;
}
}
function Start()
{
showimage();
}
function Stop()
{
window.clearTimeout(timer);
}
//-->
</script>
在Html中这样使用该脚本:
<div >
</Map>
</div>