document.write('<param name=movie value=+weburl+"ad/a4.swf">');这句给的路径有问题

解决方案 »

  1.   

    var weburl;
    weburl="http://haper.vicp.net/car/";
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0' width='480' height='65'>");
    document.write("<param name=movie value='"+weburl+"ad/a4.swf'>");
    document.write("<param name=quality value=high>");
    document.write("<embed src='"+weburl+"ad/a4.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='480' height='65'></embed>");
    document.write("</object>");