广杰博客

  • 首页
  • IT资讯
  • IT运维
  1. 首页
  2. IT运维
  3. 正文

图片轮换广告代码

04/01/2011 1296点热度 0人点赞 0条评论

 <script type="text/javascript">
//<![CDATA[
var pic_width=500; //图片宽度
var pic_height=200; //图片高度
var button_pos=4; //按扭位置 1左 2右 3上 4下
var stop_time=5000; //图片停留时间(1000为1秒钟)
var show_text=0; //是否显示文字标签 1显示 0不显示
var txtcolor="000000"; //文字色
var bgcolor="DDDDDD"; //背景色
var imag=new Array();
var link=new Array();
var text=new Array();
imag[1]="http://www.gjie.cn/images/01.jpg";
link[1]="http://www.gjie.cn/";
text[1]="标题 1";
imag[2]="http://www.gjie.cn/images/02.jpg";
link[2]="http://www.gjie.cn/";
text[2]="标题 2";
imag[3]="http://www.gjie.cn/images/03.jpg";
link[3]="http://www.gjie.cn/";
text[3]="标题 3";
imag[4]="http://www.gjie.cn/images/04.jpg";
link[4]="http://www.gjie.cn/";
text[4]="标题 4";
imag[5]="http://www.gjie.cn/images/05.jpg";
link[5]="http://www.gjie.cn/";
text[5]="标题 5";
//可编辑内容结束
var swf_height=show_text==1?pic_height+20:pic_height;
var pics="", links="", texts="";
for(var i=1; i<imag.length; i++){
pics=pics+("|"+imag[i]);
links=links+("|"+link[i]);
texts=texts+("|"+text[i]);
}
pics=pics.substring(1);
links=links.substring(1);
texts=texts.substring(1);
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="http://www.webdm.cn/images/20091230/focus.swf">');
document.write('<param name="quality" value="high"><param name="wmode" value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'">');
document.write('<embed src="http://www.webdm.cn/images/20091230/focus.swf" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'" quality="high" width="'+ pic_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('<\/object>');
//]]>
</script>
 

标签: 暂无
最后更新:01/01/1970

guangjie

这个人很懒,什么都没留下

点赞
下一篇 >

文章评论

您需要 登录 之后才可以评论
最新 热点 随机
最新 热点 随机
Red Hat Enterprise Linux 9 发布,大量组件升级 windows10 家庭版添加hyper-v虚拟机组件 Red Hat Enterprise Linux 8.5 GA 发布 Rocky Linux 8.4 GA正式版发布下载 Rocky Linux 8.3 首个候选版本发布 CentOS 8.3 (2011) ISO镜像下载发布 CentOS Linux 落幕 CentOS Stream 上位 CentOS Linux 7.9 (2009) iso镜像下载 Windows 10 2020年10月更新ISO下载 ubuntu ssh通过密钥登陆服务器
2011年最佳10款Linux发行版 超长域名 Oracle宣布提供免费Oracle Linux更新源 9166.biz Arp木马病毒专杀 nginx+php配置 kubernetes国内阿里云yum仓库镜像 windows下apache的php配置 微软TechNet V播网站建成 U盘病毒tel.xls.exe分析解决 Rocky Linux 8.4 GA正式版发布下载
标签聚合
android linux Hyper-V redhat php_curl nginx Windows Server 2012 springboot
友情链接
  • linux运维
  • 郑州SEO

COPYRIGHT © 2021 gjie.cn. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备07002435号-8