WriteLine方法生成JS脚本的问题!求救~~~
我想用WriteLine的方法生成JS脚本,但是格式老是有问题,问一下这样的一句怎么写
InFlash.WriteLine( "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= " '+ focus_width + ' " height= " '+ swf_height + ' "> '); ");
老是抱错,改了很多方法了,我知道是语法不对。..求教高手
------解决方案--------------------InFlash.WriteLine( "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=\ " " + focus_width + "\ " height=\ " "+ swf_height + "\ "> '); ");