域名注册
|
虚拟主机
|
数据库
|
设为主页
|
加入收藏
|
天诚搜索
|
RSS
网站套餐
Package
基础特惠型网站
企业标准型网站
企业大户型网站
商务政务型网站
功能单项报价表
最新推荐
Recommended
4年网络创业经历
Dreamweaver表格经验谈
61.183.41.123数据重新上传通…
局域网arp病毒
用途相似的标签
CSS网页标准制作关于网页表单…
中国互联网13年大事记
ECSHOP 显示指定分类下的文章…
您现在的位置:
天诚世纪
>>
技术中心
>>
网页特效
>>
图形特效
>> 正文
每次刷新后随机显示图片的效果
作者:
天诚世纪
更新时间:2009-6-17 17:19:04
来源:
天诚世纪
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>网页特效|tc-21.com|--- 每次刷新后随机显示图片的效果</title> </head> <body> 刷新看看效果<br> <script language="JavaScript"> var how_many_ads = 5 var now = new Date() var sec = now.getSeconds() var ad = sec % how_many_ads; ad +=1; if (ad==1){ url="http://www.tc-21.com"; alt="ad1"; banner="/images/test001.jpg"; width="862"; height="113"; } if (ad==2) { url="http://idc.tc-21.com"; alt="ad2"; banner="/images/test002.jpg"; width="862"; height="113"; } if (ad==3) { url="http://moban.tc-21.com"; alt="ad3"; banner="/images/test003.jpg"; width="862"; height="113"; } if (ad==4) { url="http://www.tc-21.com"; alt="ad4"; banner="/images/test004.jpg"; width="862"; height="113"; } if (ad==5) { url="http://www.tc-21.com"; alt="ad5"; banner="/images/test005.jpg"; width="862"; height="113"; } document.write('<center>'); document.write('<a href=\"' + url + '\" target=\"_blank\">'); document.write('<img src=\"' + banner + '\" width=') document.write(width + ' height=' + height + ' '); document.write('alt=\"' + alt + '\" border=0><br>'); document.write('</center>'); --></script> </body> </html>
[提示:可先修改代码再按运行]
本文链接:http://www.tc-21.com/ITCenter/200906/20090617171904.html
上一篇文章:
简单的图片放大展示效果
下一篇文章: 没有了
更多关于
图形特效
的新闻
相关文章
js显示隐藏层
JS对WMP的操作
简单的图片放大展示效果
横向不间断的连续滚动图片/文字广告
仿拍拍paipai.com首页产品图片随机轮显切换效果
用鼠标滚轮滚动控制图片显示的大小
超酷超绚精美图片展示效果代码(六)
超酷超绚精美图片展示效果代码(五)
::::::
网页模板
|
建站指导
|
视频教程
|
图片中心
|
在线咨询
|
网站运营
|
网站推广
|
图片素材
::::::
CopyRight 2007 All Rights Reserved 天诚世纪 版权所有
鄂ICP备12000046号
联系电话:18995527083 18995527081 QQ:448163207 32301667 Email:my_tc@126.com
::::::搜索关键字:
武汉网站制作
|
武汉做网站
|
武汉网站建设
|
武汉网页制作
|
天诚世纪
|
武汉网页制作公司
|
网页模板
|::::::