zoukankan
html css js c++ java
随机切换广告图片
代码如下:
<script language=JavaScript> var imgUrl=new Array(); var imgLink=new Array(); var adNum=0; imgLink[0]="Http://Dicky.8800.Org/BBS1"; imgUrl[0]="http://dicky.8800.org/bbs1/UploadFile/2005-7/2005721248396526.gif"; imgLink[1]="http://images.sohu.com/cs/sms/alumni3/minisite/6years/index.html"; imgUrl[1]="http://photocdn.sohu.com/20050706/Img226206155.gif"; imgLink[2]="http://club.chinaren.com/bbs/index.jsp?boardid=11&hotmsgid=9131684"; imgUrl[2]="http://photocdn.sohu.com/20050713/Img226293317.gif"; imgLink[3]="http://club.chinaren.com/bbs/index.jsp?boardid=16&hotmsgid=9580645"; imgUrl[3]="http://photocdn.sohu.com/20050715/Img226320025.jpg"; function playTran(){ if (document.all) imgInit.filters.revealTrans.play(); } function nextAd(){ if(adNum<imgUrl.length-1) adNum++; else adNum=0; if (document.all){ imgInit.filters.revealTrans.Transition=6; imgInit.filters.revealTrans.apply(); playTran(); } document.images.imgInit.src=imgUrl[adNum]; theTimer=setTimeout("nextAd()", 6000); } function goUrl(){ jumpUrl=imgLink[adNum]; jumpTarget='_blank'; if (jumpUrl != ''){ if (jumpTarget != '') window.open(jumpUrl,jumpTarget); else location.href=jumpUrl; } } </script> <span class="img1"><img src="javascript:nextAd()" name=imgInit onclick="goUrl()" width=120 height=160 vspace="1" border=0 style="FILTER: revealTrans(duration=2,transition=20);cursor:hand"></span></A>
[Ctrl+A 全选 提示:你可先修改部分代码,再点运行代码]
青苹果Web应用商店
https://webapp.taobao.com/
PHP/ASP.NET/ASP/UCHOME/DISCUZ! X系列网站开发,详细需求联系
QQ:8511978
查看全文
相关阅读:
[考试反思]0316省选模拟47:偏颇
[考试反思]0315省选模拟46:执念
[考试反思]0314省选模拟45:偏离
[考试反思]0313省选模拟44:习惯
[考试反思]0310省选模拟42:清醒
bd-----文本分析
bigdata7--正则表达式
bigdata6----vi编辑器
bigdata4----linux文本操作命令
bigdata4----linux文件系统命令
原文地址:https://www.cnblogs.com/Dicky/p/194366.html
最新文章
[考试反思]0409省选模拟66:大顺
[考试反思]0408省选模拟65:直率
[考试反思]0406省选模拟64:追及
[考试反思]0405省选模拟63:顽固
[考试反思]0404省选模拟62:判断
[考试反思]0403省选模拟61:快乐
[考试反思]0402省选模拟60:空白
[考试反思]0401省选模拟59:更改
[专题总结]博弈论什么乱七八糟的题解
[考试反思]0330省选模拟58:运作
热门文章
[考试反思]0329省选模拟57:细节
[考试反思]0328省选模拟56:漂浮
[考试反思]0326省选模拟55:摸索
[考试反思]0324省选模拟54:缺失
[考试反思]0323省选模拟53:常数
[考试反思]0322省选模拟52:重现
[考试反思]0321省选模拟51:直觉
[考试反思]0320省选模拟50:祖宗
[考试反思]0318省选模拟49:调整
[考试反思]0317省选模拟48:记忆
Copyright © 2011-2022 走看看