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
查看全文
相关阅读:
CentOS安装扩展软件支持库
SpringBoot 定时任务 @Scheduled cron表达式
docker启动mysql 自定义配置文件
Informix从一个表更新多选数据到另一个表
maven构建web项目,用jetty测试的配置pom.xml
STSdb数据库的实现使用类
C#操作MySQL的类
C#操作SQLServer2012类
小米开源数据库<pegasus>简介
Java虚拟机运行时内存区域简析
原文地址:https://www.cnblogs.com/Dicky/p/194366.html
最新文章
Mysql优化思路
The sklearn preprocessing
java exec python program
python logging with yaml
决策树ID3算法实现
手写数字识别
分组聚合使用多进程
python性能优化
对于元素为字典的列表排序方法
Queue 实现生产者消费者模型
热门文章
Http与Https的区别 get请求和post请求的区别
多线程,多进程,协程
python的requests在网络请求中添加cookies参数
python爬虫之快速对js内容进行破解(企名片)
JS中常用的输出方式(五种)
JS如何用Math.random()来生成指定范围内(如:1-100)的随机数?
js获取数组长度,对象成员个数字、符串字数
在jupyter或者python中读取CSV文件时出现‘utf-8’ codec can’t decode byte 0xd5 in position 0: invalid continuation byte解决方法
PHP 7.4 checking for libzip 和 failed to open error_log 问题
PHP连接Informix异常
Copyright © 2011-2022 走看看