<html><body>
<div class="pic"><script language="javascript">
imgUrl1="image/1.jpg";imgtext1="服装搭配 热门平价货Super women搭配";
imgLink1=escape("/News/20090416/7845.html");imgUrl2="image/2.jpg";imgtext2="春季最热卖露肩T恤 超显瘦又有型";
imgLink2=escape("/News/20090416/7840.html");imgUrl3="image/3.jpg";imgtext3="欧普风新装多彩花纹衣裙 打造春天百变";
imgLink3=escape("/News/20090416/7839.html");imgUrl4="image/4.jpg";imgtext4="暖天OL知性着装 薄外套搭配攻略";
imgLink4=escape("/News/20090415/7837.html");imgUrl5="image/5.jpg";imgtext5="春天就穿牛仔裤 上班挤车都不怕";
imgLink5=escape("/News/20090415/7835.html");var focus_width=188;
var focus_height=178;
var text_height=22;
var swf_height = focus_height+text_height;
var pics=imgUrl1+'|'+imgUrl2+'|'+imgUrl3+'|'+imgUrl4+'|'+imgUrl5;
var links=imgLink1+'|'+imgLink2+'|'+imgLink3+'|'+imgLink4+'|'+imgLink5;
var texts=imgtext1+'|'+imgtext2+'|'+imgtext3+'|'+imgtext4+'|'+imgtext5;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 +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/Images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#fff7f0">');
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="/Images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#fff7f0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');
</script></body></html>效果可以出来.但我想这样改一下:我想问一下.我的这个页面的宽度能不能改为百分比,就是
var focus_width=188;
var focus_height=178;
var text_height=22;
改为:
var focus_width=50%;
var focus_height=50%;
var text_height=10%;
我真的很想改.但是改之后什么也没有呀???