zoukankan      html  css  js  c++  java
  • 网页幻灯片代码

    网页幻灯片代码,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

  • 相关阅读:
    Study Plan The Twelfth Day
    Study Plan The Fifteenth Day
    Study Plan The Seventeenth Day
    Study Plan The Tenth Day
    Study Plan The Eighth Day
    Study Plan The Eleventh Day
    Study Plan The Sixteenth Day
    Study Plan The Thirteenth Day
    Study Plan The Fourteenth Day
    Study Plan The Ninth Day
  • 原文地址:https://www.cnblogs.com/hooyes/p/722823.html
Copyright © 2011-2022 走看看