返回首页
当前位置: 主页 > JavaScript 教程 >

幻灯片相册的网页制作代码

时间:2010-06-07 10:36来源:未知 作者:admin 点击:
td width=226 valign=top bgcolor=#F8FAF9table width=224 border=0 cellspacing=0 cellpadding=0 tr td!--首页幻灯片开始-- script language=javascript var focus_width=224 var focus_height=169 var text_height=20 var swf_height = focus_height

<td width="226" valign="top" bgcolor="#F8FAF9"><table width="224" border="0" cellspacing="0" cellpadding="0">
           <tr>
             <td><!--首页幻灯片开始-->
                 <script   language="javascript">

var focus_width=224
var focus_height=169
var text_height=20
var swf_height = focus_height+text_height

var pics='image/20070720.jpg|image/qljr123121.jpg'
var links='http://special.qljr.com/jnbybx/jnbybx.htm|http://news.qljr.com/FinanceHotspot/2007-6/29/11_30_43_182.htm'
var texts='本网关注-济南“7.18”暴雨|齐鲁金融网公告'

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="image/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#cccccc">');
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/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#cccccc" 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>
                 <!--首页幻灯片结束--></td>
           </tr>
         </table>

一般吧:会把上面的代码把以下的代码覆盖加粗带下划线的地方,就OK了

<table width="720" border="0" align="center">
   <tr>
    <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
   </tr>
</table>

 
(责任编辑:admin)
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名:密码: 验证码:点击我更换图片
推荐赞助商
推荐内容