是的 我想用js页面作为弹出窗口,在这个窗口中document.writer("<img name="jsbutton" src="keyboard_img/backspace_cn.png" width="110" height="28" border="0" alt="javascript button"> ");这样是出错的

解决方案 »

  1.   

    把双引号变成单引号试试,不行就用domvar img=document.createElement("img");
    img.name="jsbutton";
    img.src="keyboard_img/backspace_cn.png";
    img.width=110;
    img.height=28;
    img.border=0;
    img.alt="javascript button";在页面上做一个div
    <div id="show"></div>document.getElementById("show").appendChild(img);
      

  2.   

    在dreamwever中将图片放进去,做好超连接,然后将代码考过来