<td width="271" height="220" valign="middle" bgcolor="#E0E0E0">
	  <div align="center">
				  <script type="text/javascript">
				<!--
				var focus_width=250;
				var focus_height=180;
				var text_height=20;
				var swf_height = focus_height+text_height;
				var pics='images/1.jpg|images/2.jpg|images/3.jpg';
				var links='shownews.asp?id=27|shownews.asp?id=26|shownews.asp?id=25';
				var texts='名师良友学习的好帮手|科学严谨的教材编排|注册会员可获得部分免费资料';
				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/newspic.swf"><param name="quality" value="high"><param name="bgcolor" value="#f2f2f2">');
				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/newspic.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#dadada" 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>
				</div></td>

 去掉文字可以设置text_height=0;

 去掉边框可以使borderwidth,borderheight的再加上2个像素。

newspic.zip

posted on 2012-01-06 00:42  gzh4455  阅读(332)  评论(0编辑  收藏  举报