不知道,把带"FileName"参数的那一行放在<div></div>中,然后动态更改<div></div>的
innerHTML属性可不可以!

解决方案 »

  1.   

    duba主页上的随机banner JS
    ===================================================
    <script>
    function flash(url_f,width_f,height_f){
    theOK='<table width='+width_f+' height='+height_f+' border="0" cellspacing="1" cellpadding="0" bgcolor="#000000" > <tr><td bgcolor="#FFFFFF"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width='+width_f+' height='+height_f+'><param name=movie value='+url_f+'><param name=quality value=high><embed src='+url_f+' quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width='+width_f+' height='+height_f+'></embed></object></td></tr></table>';
    return theOK;
    }
    posb="<div align='center' valign='middle'>"  
    pose="</div>"
    tips = new Array() 
    tips[0] = flash("http://www.duba.net/image/2003/05/22/dubanet.swf","468","60")
    tips[1]="<a href=http://www.duba.net/special/newsspecial/duba_ro/index.shtml target=_blank><img src=http://www.duba.net/image/2003/05/16/banner.gif border=0>"
    tips[2] = flash("http://www.duba.net/image/2003/05/23/duba_sina468_60.swf","468","60")
    tips[3] = flash("http://www.duba.net/image/2003/05/30/dubav468.swf","468","60")
    //tips[0]="<a href=http://www.duba.net/special/newsspecial/dubanet/index.shtml target=_blank><img src=http://www.duba.net/image/2003/04/11/banner04.gif border=0>"
    //
    //tips[1] = flash("http://www.duba.net/image/2003/04/07/030407.swf","468","60")
    index = Math.floor(Math.random() * tips.length) 
    document.write(posb);
    document.write(tips[index]);
    document.write(pose);
    </script>
      

  2.   

    象在vb中操作flash一样,动态给flash插件设置属性.
    ShockwaveFlash1.Movie = "C:\society.swf"