代码如下:但是不会控制其中底部显示的文字颜色,另外,想点击图片后指向带参数的超链接,如:test.asp?id=33&flag=22,可是参数好像传递不过去,请指教
<script language="JavaScript" type="text/javascript">
<!--var _width = 345;
var _height = 239;
var text_height = 20; 
var flash_height = _height + text_height; 
var vdivstr,vhref,vimg,v_text;var pic_arr = new Array(); 
var link_arr = new Array(); 
var text_arr = new Array(); var i;for(i=0;i<4;i++)
{
   vdivstr="nimg"+i;
   vdivstr=document.getElementById(vdivstr).firstChild.nodeValue;
   pic_arr[i]=vdivstr;
   vdivstr="nhref"+i;
   vdivstr=document.getElementById(vdivstr).firstChild.nodeValue;
   link_arr[i]=vdivstr;
   vdivstr="ntext"+i;
   vdivstr=document.getElementById(vdivstr).firstChild.nodeValue;
   text_arr[i]=vdivstr;
}//
var p = pic_arr.join("|");
var l = link_arr.join("|");
var t = text_arr.join("|");
var f = "http://travel.people.com.cn/mediafile/200511/30/F200511301331032452224681.swf";document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ _width +'" height="'+ flash_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+f+'"><param name="quality" value="high"><param name="bgcolor">');
document.write('<param name="menu" value="false"><param name=wmode value="transparent">');
document.write('<param name="FlashVars" value="pics='+p+'&links='+l+'&texts='+t+'&borderwidth='+_width+'&borderheight='+_height+'&textheight='+text_height+'">');
document.write('<embed ID="focus_flash" src="'+f+'" wmode="opaque" FlashVars="pics='+p+'&links='+l+'&texts='+t+'&borderwidth='+_width+'&borderheight='+_height+'&textheight='+text_height+'" menu="false" quality="high" width="'+ _width +'" height="'+ flash_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');//-->
</script>