日期:2014-05-16  浏览次数:20345 次

网页上动态图片代码,急,求大神。。追加分!
大神们好,想做个类似大的网站,图片滚动形式,代码如下

<script type="text/javascript" src="focusflash.js">
   <!--
   
   var focus_width = 996;    // 图片宽度
    var focus_height= 400;    // 图片高度
   var text_height = 20;    // 显示的文字高度
   var swf_height = focus_height + text_height;
   
   var pics ="image/21.jpg|image/21.jpg";
   var links="image/21.jpg|image/21.jpg";
  var texts="image/21.jpg|image/21.jpg";
   
   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
   document.write('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
    document.write('width="'+ focus_width +'" ');
    document.write('height="'+ swf_height +'">');
    document.write('<param name="allowScriptAccess" value="sameDomain">');
    document.write('<param name="movie" value="focus.swf">');
    document.write('<param name="quality" value="high">');
   document.write('<param name="bgcolor" value="#ffffff">');
   document.write('<param name="menu" value="false">');
    document.write('<param name=wmode value="opaque">');
   document.write('<param name="FlashVars" ');
   document.write('value="pics='+pics);
   document.write(        '&links='+links);
   document.write(        '&texts='+texts);
   document.write(        '&borderwidth='+focus_width);
    document.write(        '&borderheight='+focus_height);
   document.write(        '&textheight='+text_height+'">');
    document.write('<embed src="focus.swf" ');
    document.write('wmode="opaque" ');
    document.write('FlashVars="pics='+pics);
    document.write(        '&links='+links);
    document.write(        '&texts='+texts);
   document.write(        '&borderwidth='+focus_width);
    document.write(        '&borderheight='+focus_height);
    document.write(        '&textheight='+text_height+'" ');
    document.write('menu="false" ');
   document.write('bgcolor="#ffffff" ');
   document.write('quality="high" ');
    document.write('width="'+ focus_width +'" ');
   document.write('height="'+ focus_height +'" ');
    document.write('allowScriptAccess="sameDomain" ');
   document.write('type="application/x-shock