西狐网logo

网页幻灯片代码

网页幻灯片代码,Javascript与flash结合:代码很简单

看一下: Demo 吧

http://hooyes.com/hooyesSlider/hooyesSlider.html

代码如下:

<html>
<head>
<title>hooyes Slider</title>
</head>
<body>
<script type="text/javascript"> 
var focus_width=610   //
var focus_height=350  //
var text_height=20 
var swf_height = focus_height+text_height 

var pics='hooyes.Images/1.jpg|hooyes.Images/2.jpg|hooyes.Images/1.jpg|hooyes.Images/2.jpg' 
var links='http://bt.hooyes.com/|http://www.hooyes.com/' 
var texts='西狐网络公司总部|05年的银杏|西狐网络公司总部|05年的银杏' 

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="pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#DADADA">'); 
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="pixviewer.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> 
</body>
</html>

 

网页幻灯片源代码下载:

/Files/hooyes/hooyesSlider.rar

posted on 2006-08-26 00:35  西狐  阅读(1824)  评论(0编辑  收藏  举报

导航