FLASH轮现新闻图片,下面显示标题。但标题只显示了一行上半部分? 我在网页中插入FLASH轮现新闻图片,下面显示标题。但标题只显示了一行上半部分?怎么回事呢?应如何设置呢?请教。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我的JS代码如下:<script language="javascript" type="text/javascript">var interval_time=5;var focus_width=340;var focus_height=224;var text_height=20;var text_mtop = 0;var text_lm = 0;var textmargin = text_mtop+"|"+text_lm;var textcolor = "#2E5DB5|black";var text_align= 'left'; var swf_height = focus_height+text_height+text_mtop; var text_size = 12;var borderStyle="1|0x000000|0";var pics=document.getElementById("HiddenField1").value;var links=document.getElementById("HiddenField2").value; var texts=document.getElementById("HiddenField3").value; 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="'+ focus_height +'">'); document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/hot_new.swf"> <param name="quality" value="high"><param name="Wmode" value="transparent">'); 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+'&textmargin='+textmargin+'&textcolor='+textcolor+'&borderstyle='+borderStyle+'&text_align='+text_align+'&interval_time='+interval_time+'&textsize='+text_size+'">'); document.write('<embed src="images/hot_new.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&textmargin='+textmargin+'&textcolor='+textcolor+'&borderstyle='+borderStyle+'&text_align='+text_align+'&interval_time='+interval_time+'&textsize='+text_size+'" menu="false" bgcolor="white" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>'); </script>谢谢了,在线等待中 样式引起的,如果你用IE就用ie developer插件调试,火狐就用firefox debug 调试web开发必备利器 我刚发现问题所在:<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="'+ focus_height +'">把focus_height 改为swf_height就对了。不过,要感谢楼上兄弟热情相助,给你满分40分。 菜鸟求教 jQuery中的OpenDiv和CloseDiv函数的用途和作用 超链接的颜色怎么不能变换? 现在的软件难做啊 用poi实现word在IE下打开在线编辑保存的功能 获取子页面的值 DIV层移动并随滚动条滚动和居中定位(兼容IE和FF)-----和大家共享 prototype 遇到个问题 大家看看有没有遇到过 ????????????? onchange事件不灵时,怎么办? 求助,竖形导航操作问题 求助.关于json的问题 帅哥们在下忙阿。谢谢!!!!!!
<script language="javascript" type="text/javascript">
var interval_time=5;
var focus_width=340;
var focus_height=224;
var text_height=20;
var text_mtop = 0;
var text_lm = 0;
var textmargin = text_mtop+"|"+text_lm;
var textcolor = "#2E5DB5|black";
var text_align= 'left';
var swf_height = focus_height+text_height+text_mtop;
var text_size = 12;
var borderStyle="1|0x000000|0";
var pics=document.getElementById("HiddenField1").value;
var links=document.getElementById("HiddenField2").value;
var texts=document.getElementById("HiddenField3").value;
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="'+ focus_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/hot_new.swf"> <param name="quality" value="high"><param name="Wmode" value="transparent">');
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+'&textmargin='+textmargin+'&textcolor='+textcolor+'&borderstyle='+borderStyle+'&text_align='+text_align+'&interval_time='+interval_time+'&textsize='+text_size+'">');
document.write('<embed src="images/hot_new.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&textmargin='+textmargin+'&textcolor='+textcolor+'&borderstyle='+borderStyle+'&text_align='+text_align+'&interval_time='+interval_time+'&textsize='+text_size+'" menu="false" bgcolor="white" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
</script>
谢谢了,在线等待中
web开发必备利器
<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="'+ focus_height +'">
把focus_height 改为swf_height就对了。不过,要感谢楼上兄弟热情相助,给你满分40分。