找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 468|回复: 3

在网页中,怎样实现图片轮翻功能??

[复制链接]
发表于 2009-9-15 02:19:39 | 显示全部楼层 |阅读模式 IP:江苏扬州
我有一段图片轮翻功能的代码,但我不会用,代码如下:
<!--焦点图开始-->  
<script type="text/javascript">
<!--

//可编辑内容开始(可放置特版中)

var pic_width=295; //图片宽度
var pic_height=219; //图片高度
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://img.hc360.com/pf/info/images/toutiao_050720_3.jpg";
link[1]="http://info.pf.hc360.com/html/001/012/001/36280.htm";
text[1]="固话运营商为机卡分离模式开路";

imag[2]="http://img.hc360.com/pf/info/images/9-27-t1.jpg";
link[2]="http://info.pf.hc360.com/html/001/012/001/36285.htm";
text[2]="首届太空梯竞赛10月在美国举行";

imag[3]="http://img.hc360.com/pf/info/images/9-27-t2.jpg";
link[3]="http://info.pf.hc360.com/html/001/012/001/36285.htm";
text[3]="柯达V系列新款数码相机超炫上市";

imag[4]="http://img.hc360.com/pf/info/images/toutiao_050727_1.jpg";
link[4]="http://info.pf.hc360.com/html/001/012/001/36285.htm";
text[4]="鸟巢工程招标进入公式期";

imag[5]="http://img.hc360.com/pf/info/images/toutiao_050720.jpg";
link[5]="http://info.pf.hc360.com/html/001/012/001/36285.htm";
text[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);
links=links+("|"+link);
texts=texts+("|"+text);
}
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.cab#version=6,0,0,0" width="+ pic_width +" height="+ swf_height +">);
document.write(<param name="movie" value="http://www.hc360.com/ria/focus.swf">);
document.write(<param name="quality" value="high">);
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.hc360.com/ria/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>
<!--焦点图结束-->

我把图片的地址改了,但也不行,我把代码放在一个表格中,也不行。
请问这段代码怎么用?应该放在哪里?谢了!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-29 21:18 , Processed in 0.252861 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表