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

  • 相关阅读:
    统计次数
    使用正则消除行号
    【收集】sql查询统计,周,月,年
    ASP.NET脚本过滤-防止跨站脚本攻击(收集别人的)
    win10环境下jdk1.8+Android Developer Tools Build: v22.3.0-887826的问题
    关于虚拟机的问题解决(转自豆瓣)
    工作
    numpy学习
    deepin Python pycharm安装
    pymysql连接和操作Mysql数据库
  • 原文地址:https://www.cnblogs.com/gzh4455/p/2313852.html
Copyright © 2011-2022 走看看