关于使用js方法显示乱码的问题
下面的代码如果直接写入到html中显示一切正常可如果用引用js文件的方式 如<script src="js/tab-lanmu.js" type="text/javascript"></script>就会出现文字乱码的问题
肯请高手解答指点,谢谢!
<script type="text/javascript" language="javascript">
<!--
var focus_width=360;
var focus_height=180;
var text_height=26;
var swf_height = focus_height+text_height;
var pics ="http://www.scly.
var links="http://www.scly.
var texts="全省森林公安工作会在广安召开|四川省暨成都市第30届“爱鸟周”活动启动仪式在成都动物园举行|刘书贵副指挥长深入重点火险区检查指导森林防火工作|开展督查 加快生态修复重建进度|降初副厅长参加中国保护大熊猫研究中心灾后重建开工仪式|老红军苟兴珍同志去世 王平厅长看望慰问子女";
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://www.scly. name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="http://www.scly. wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#EEEEEE" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www. />');
document.write('</object>');
//-->
</script>
</div>