展开全部
不知道你说的是直接单击图片还是怎么样?我自己用的是网上的JS代码和一个显示用的flash还有一些调用的图片就可以了
!!
这是JS代码://首页里的图片切换效果JS文件
imgUrl1="index_file/images/1.jpg";
imgtext1="上海明珠塔乐乐留照哈"
imgLink1=escape("");
imgUrl2="index_file/images/2.jpg";
imgtext2="学校乐乐留照哈"
imgLink2=escape("");
imgUrl3="index_file/images/3.jpg";
imgtext3="上海留照哈"
imgLink3=escape("");
var focus_width=634
var focus_height=196
var text_height=0
var swf_height = focus_height+text_height
var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3
var links=imgLink1+"|"+imgLink2+"|"+imgLink3
var texts=imgtext1+"|"+imgtext2+"|"+imgtext3
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="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/index_file/flash/lele.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
具体在这里发不了其它附件了,效果查看在:www.lele1988.cn首页图片切换效果!你留下你的邮箱,我发送给你吧!或者联系下我,我直接传给你使用!参考学习下!E-mail:tanjiaoxian@qq.com
------------------
不知道是不是你要的!
!!
这是JS代码://首页里的图片切换效果JS文件
imgUrl1="index_file/images/1.jpg";
imgtext1="上海明珠塔乐乐留照哈"
imgLink1=escape("");
imgUrl2="index_file/images/2.jpg";
imgtext2="学校乐乐留照哈"
imgLink2=escape("");
imgUrl3="index_file/images/3.jpg";
imgtext3="上海留照哈"
imgLink3=escape("");
var focus_width=634
var focus_height=196
var text_height=0
var swf_height = focus_height+text_height
var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3
var links=imgLink1+"|"+imgLink2+"|"+imgLink3
var texts=imgtext1+"|"+imgtext2+"|"+imgtext3
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="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/index_file/flash/lele.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
具体在这里发不了其它附件了,效果查看在:www.lele1988.cn首页图片切换效果!你留下你的邮箱,我发送给你吧!或者联系下我,我直接传给你使用!参考学习下!E-mail:tanjiaoxian@qq.com
------------------
不知道是不是你要的!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询