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

  • 相关阅读:
    Use OWIN to Self-Host ASP.NET Web API 2
    PowerShell 中使用json对象的性能比较
    mysql创建utf-8字符集数据库
    url的三个js编码函数escape(),encodeURI(),encodeURIComponent()简介
    PowerShell文件系统(一)前言
    流程控制------if else分支语句
    可变数据类型和不可变数据类型
    python-----运算符及while循环
    数字类型和字符串类型
    python 基础-----数字,字符串,列表,字典类型简单介绍
  • 原文地址:https://www.cnblogs.com/gzh4455/p/2313852.html
Copyright © 2011-2022 走看看