这是用转码工具转码后的代码,放在网页上没有任何效果,帮我看看哪里错了。谢谢!做好能写出正确的,我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>")
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>")
解决方案 »
- 大家有没有好的工具可以收集自己的各种方法和util、公共函数代码。
- 问eclipse上的swt和www.swt-designer.com下的swt designer之间的联系?
- 求助,如何 识别 全角英文(字符) ?
- 这个java程序怎么导入图片
- j2SE是否是个成熟的产品?我已经出离得愤怒了!
- 关于java thread 中 isActive() 和 isAlive()两个方法的区别
- 当多线程满符合运行时报错
- JDBC连接问题
- v=Double.valueOf(br.readLine()).doubleValue();是什么意思!!!!!
- 为什么JCreator Pro 2.00_007不能进行单步调试,Build菜单下单步调试的选项是灰色的???好痛苦。。
- 急!!!跪求高手,大家帮我看看程序,后面的我编不出来了,编出来的我结贴加分!!!
- 请教一个计算日期天数的问题
2
document.writeln(" var files=\'{$focus_file}\';");
document.writeln(" var links=\'{$focus_link}\';");
document.writeln(" var texts=\'{$focus_text}\';"); {$focus_file} 几个明显使用了模版或者标签,你需要把他们替换成实际可用的文件名等。
楼主把“.\/images\/home\/focus.swf”这样的代码换成一个有效的flash路径,就会有效果了,不信你试试?
ps:这是Java版块,楼主问题发错地方了