这一讲说说封面页的右侧,右侧最上面是幻灯片代码,在讲首页制作时,讲过幻灯片代码,我们这里简要说说。
我们直接将拳击在线封面里的幻灯片代码:
- <SCRIPT type=text/javascript>
- <!--
- var interval_time=3;
- var focus_width=288;
- var focus_height=220;
- var text_height=19;
- var text_align="center";
- var swf_height = focus_height+text_height;
- var swfpath="/e/data/images/pixviewer.swf";
- var swfpatha="/e/data/images/pixviewer.swf";
- var pics="%2Fd%2Ffile%2Fnews%2F1%2F732488265adfe6d9153f489f7550e2dc.jpg%7C%2Fd%2Ffile%2Fnews%2F1%2Fe02812004247d409b9ed1716b8169f5e.jpg%7C%2Fd%2Ffile%2Fnews%2F1%2Fsmall0a72185ad918b79b8177baff67a7d8f51309318211.jpg";
- var links="%2Fnews%2F1%2F6095.html%7C%2Fnews%2F1%2F6093.html%7C%2Fnews%2F1%2F6004.html";
- var texts="可汗5回合KO朱达获得胜利(附视频)|小克里琴科点数战胜海耶 统一四大拳击组织(|梅威瑟VS奥提兹纽约召开新闻发布会";
- document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
- document.write('<param name="movie" value="'+swfpath+'"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
- 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+'&text_align='+text_align+'&interval_time='+interval_time+'">');
- document.write('<embed src="'+swfpath+'" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&text_align='+text_align+'&interval_time='+interval_time+'" menu="false" bgcolor="#ffffff" 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>