[码]动态图片代码(带演示)……
[color=blue]Demo 1[/color]
style=overflow:hidden;height:170px;width:600px;>
(Marquee,speed)}
|
[color=Red]Demo 2[/color]
var imgUrl=new Array();
var imgLink=new Array();
var adNum=0;
imgUrl[1]="http://ad.tom.com/search/pic/list/beauty/l_b_22.jpg";
imgLink[1]="http://xxx";
imgUrl[2]="http://ad.tom.com/search/pic/list/beauty/l_b_43.jpg";
imgLink[2]="http://xxx";
imgUrl[3]="http://ad.tom.com/search/pic/list/beauty/l_b_49_2.jpg";
imgLink[3]="http://xxx";
var imgPre=new Array();
var j=0;
for (i=1;i<=3;i++) {
if( (imgUrl[i]!="") && (imgLink[i]!="") ) {
j++;
} else {
break;
}
}
function playTran(){
if (document.all){
document.imgInit.filters[0].play();
}
}
function nextAd(){
if(adNum
if (document.all){
document.imgInit.filters[0].Transition=30;
document.imgInit.filters[0].apply();
}
document.images.imgInit.src=imgUrl[adNum];
playTran();
theTimer=setTimeout("nextAd()", 6000);
}
function goUrl(){
jumpUrl=imgLink[adNum];
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else
location.href=jumpUrl;
}
}
演示:http://www.92im.be/blog/codedemo/code57456456.html
[B]PS:[/B]演示时间有限
版权声明:
作者:Jays
链接:https://ijays.com/2005/12/%e7%a0%81%e5%8a%a8%e6%80%81%e5%9b%be%e7%89%87%e4%bb%a3%e7%a0%81%e5%b8%a6%e6%bc%94%e7%a4%ba%ef%bc%89.html
来源:颓废的美
文章版权归作者所有,未经允许请勿转载。
共有 0 条评论