各位亲爱的兄弟姐妹们,救我啊~ 参数没传到flash中对要传的参数使用js做encodeURIComponent() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script type=text/javascript>var pic_width=344; //图片宽度var pic_height=150; //图片高度var button_pos=4; //按扭位置 1左 2右 3上 4下var stop_time=3000; //图片停留时间(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]="news2/images/01.jpg";link[1]="http://www.52sbw.com/bbs/viewthread.php?tid=499&extra=page%3D1/";text[1]="标题 1";imag[2]="news2/images/02.jpg";link[2]="http://www.52sbw.com/bbs/viewthread.php?tid=417&extra=page%3D1";text[2]="标题 2";imag[3]="news2/images/03.jpg";link[3]="http://www.52sbw.com/bbs/viewthread.php?tid=500&extra=page%3D1";text[3]="标题 3";//可编辑内容结束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="news2/flash/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="news2/flash/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> 不知道你的flash怎么处理的。先将"&"替换成%26试试 也别加了,告诉你个估计肯定能成的办法, 你把所有的link都截成一个参数imag[1]="news2/images/01.jpg";link[1]="http://www.52sbw.com/bbs/viewthread.php?tid=499";text[1]="标题 1";imag[2]="news2/images/02.jpg";link[2]="http://www.52sbw.com/bbs/viewthread.php?tid=417";text[2]="标题 2";imag[3]="news2/images/03.jpg";link[3]="http://www.52sbw.com/bbs/viewthread.php?tid=500"; 变量问题 JQ在单选按钮点击后,改变单选项的字体和背景,再在后面显示他选择内容 JS中这几个方法是什么意思? 求助一个最简单的extjs应用 这个选项卡要怎么制作啊?? 使用javascript去读取ini文件的指定[节点]下的所有内容 文本框双击后下拉的问题 关于日期验证的问题》???? 有没有什么办法能让一个IE窗口总在最前面,而不被其它窗口覆盖? 求助 新手问题,我怎么不能把onclick写入jsT_T 如何改变连接字体的颜色????
var pic_width=344; //图片宽度
var pic_height=150; //图片高度
var button_pos=4; //按扭位置 1左 2右 3上 4下
var stop_time=3000; //图片停留时间(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]="news2/images/01.jpg";
link[1]="http://www.52sbw.com/bbs/viewthread.php?tid=499&extra=page%3D1/";
text[1]="标题 1";
imag[2]="news2/images/02.jpg";
link[2]="http://www.52sbw.com/bbs/viewthread.php?tid=417&extra=page%3D1";
text[2]="标题 2";
imag[3]="news2/images/03.jpg";
link[3]="http://www.52sbw.com/bbs/viewthread.php?tid=500&extra=page%3D1";
text[3]="标题 3";
//可编辑内容结束
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="news2/flash/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="news2/flash/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>
imag[1]="news2/images/01.jpg";
link[1]="http://www.52sbw.com/bbs/viewthread.php?tid=499";
text[1]="标题 1";
imag[2]="news2/images/02.jpg";
link[2]="http://www.52sbw.com/bbs/viewthread.php?tid=417";
text[2]="标题 2";
imag[3]="news2/images/03.jpg";
link[3]="http://www.52sbw.com/bbs/viewthread.php?tid=500";