主题:  图片切换的问题

ranqi

职务:普通成员
等级:1
金币:0.0
发贴:5
#12007/3/26 12:28:34
我在网上找了个图片切换的代码

但是我只是改动了FLASH的宽、高 和图片的地址 连接 标题 而已

不知道是怎么回事图片切换时像跳动的一样。不是在框内切换。。还有标题有时候显示,

有时候不显示。。。不知道怎么弄才好。。我对这些不是很懂。。请大家多多指教

原来的↓

<SCRIPT type=text/javascript>
<!--
var pic_width=500
var pic_height=200
var text_height=0
var swfpath = 'http://img.kuaiche.com/img/picviewer.swf'
var pics='http://img.kuaiche.com/union_images/h020/h12/img200703211741400.jpg|http://img.kuaiche.com/union_images/h020/h12/img200703221024500.jpg|http://img.kuaiche.com/union_images/h020/h12/img200703221041020.jpg|http://img.kuaiche.com/union_images/h020/h12/img200703211050340.jpg|http://img.kuaiche.com/union_images/h020/h12/img200703211056110.jpg'
var links='/content/1842478|/content/1833608|/content/1831067|/content/1819978|/content/1842469'
var texts='1842478|1833608|1831067|1819978|1842469'
document.write('<object classid="clsid27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ pic_width +'" height="'+ pic_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+swfpath+'"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
document.write('<param name="menu" value="false"><param name=wmode value="/blog/opaque">');
document.write("<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'">');
document.write('<embed src="'+swfpath+'" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ pic_width +'" height="'+ pic_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');
//-->
</SCRIPT>





我稍微改了的↓

<SCRIPT type=text/javascript>
<!--
var pic_width=238
var pic_height=189
var text_height=18
var swfpath = 'http://img.kuaiche.com/img/picviewer.swf'
var pics='http://images.blogcn.com/2007/3/19/6/ranqi7,20070319114613.jpg|http://images.blogcn.com/2007/3/19/6/ranqi7,20070319114632.jpg|http://images.blogcn.com/2007/3/19/6/ranqi7,20070319114632.jpg|http://images.blogcn.com/2007/3/19/6/ranqi7,20070319114738.jpg|http://images.blogcn.com/2007/3/19/6/ranqi7,20070319114758.jpg'
var links='/dasha2.html|/canfang.html|/dasha4.html|/dasha5.html|/changchu.html'
var texts='综合楼|SGS化学分析试验室|商检综合大楼|化工区商务区|保税仓库'
document.write('<object classid="clsid27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ pic_width +'" height="'+ pic_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+swfpath+'"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
document.write('<param name="menu" value="false"><param name=wmode value="/blog/opaque">');
document.write("<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'">');
document.write('<embed src="'+swfpath+'" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ pic_width +'" height="'+ pic_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');
//-->
</SCRIPT> </span>