zoukankan      html  css  js  c++  java
  • 新闻联播 代码

    <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

  • 相关阅读:
    作业3.14下
    作业3.14上
    作业3.13 下
    作业 3.13上
    2017.3.10上午
    2017.3.9上午
    2017.3.23-morning
    2017.3.22-morning
    2017.3.21-afternoon
    2017.3.21-morning
  • 原文地址:https://www.cnblogs.com/gzh4455/p/2313852.html
Copyright © 2011-2022 走看看