这是用转码工具转码后的代码,放在网页上没有任何效果,帮我看看哪里错了。谢谢!做好能写出正确的,我js不会
document.writeln("<script type=\"text\/javascript\">");
document.writeln(" var swf_width=340;");
document.writeln(" var swf_height=220;");
document.writeln(" var config=\'3|0xffffff|0xFF9900|50|0xffffff|0xFF9900|0x000000\';");
document.writeln(" \/\/-- config 参数设置 -- 自动播放时间(秒)|文字颜色|文字背景色|文字背景透明度|按键数字颜色|当前按键颜色|普通按键色彩 --");
document.writeln(" var files=\'{$focus_file}\';");
document.writeln(" var links=\'{$focus_link}\';");
document.writeln(" var texts=\'{$focus_text}\';");
document.writeln(" 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=\"\'+ swf_width +\'\" height=\"\'+ swf_height +\'\">\');");
document.writeln(" document.write(\'<param name=\"movie\" value=\".\/images\/home\/focus.swf\" \/>\');");
document.writeln(" document.write(\'<param name=\"quality\" value=\"high\" \/>\');");
document.writeln(" document.write(\'<param name=\"menu\" value=\"false\" \/>\');");
document.writeln(" document.write(\'<param name=wmode value=\"opaque\" \/>\');");
document.writeln(" document.write(\'<param name=\"FlashVars\" value=\"config=\'+config+\'&bcastr_flie=\'+files+\'&bcastr_link=\'+links+\'&bcastr_title=\'+texts+\'\" \/>\');");
document.writeln(" document.write(\'<embed src=\".\/images\/home\/focus.swf\" wmode=\"opaque\" FlashVars=\"config=\'+config+\'&bcastr_flie=\'+files+\'&bcastr_link=\'+links+\'&bcastr_title=\'+texts+\'& menu=\"false\" quality=\"high\" width=\"\'+ swf_width +\'\" height=\"\'+ swf_height +\'\" type=\"application\/x-shockwave-flash\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" \/>\');");
document.writeln(" document.write(\'<\/object>\');");
document.writeln(" <\/script>")

解决方案 »

  1.   

    1 你前后用<script></script>包起来

    document.writeln(" var   files=\'{$focus_file}\';"); 
    document.writeln(" var   links=\'{$focus_link}\';"); 
    document.writeln(" var   texts=\'{$focus_text}\';"); {$focus_file} 几个明显使用了模版或者标签,你需要把他们替换成实际可用的文件名等。
      

  2.   

    1楼说的也没错
    楼主把“.\/images\/home\/focus.swf”这样的代码换成一个有效的flash路径,就会有效果了,不信你试试?
    ps:这是Java版块,楼主问题发错地方了
      

  3.   

    flash 能出来,就是图片出不来。用 <script> </script> 包起来 flash都不显示了。
      

  4.   

    sorry,无法理解你指的出不来的“图片”是什么