要弹出一个窗口不行吗?
<input type="button" name="b1" onclick="window.open("1.htm")">

解决方案 »

  1.   

    弹出一个窗口不太美观了,所以才决定要弹出一个层。页面上要放的东西比较多,用dreamweaver比较方便。
      

  2.   

    <style>
      <!--
    .drag{position:relative;cursor:hand}
    --></style>
    <script language="JavaScript1.2">
    <!--var dragapproved=false
    var x,y,z
    function move(){
    if (event.button==1&&dragapproved){
    z.style.pixelLeft=temp1+event.clientX-x
    z.style.pixelTop=temp2+event.clientY-y
    return false
    }
    }
    function drags(){
    if (!document.all)
    return
    if (event.srcElement.className=="drag"){
    dragapproved=true
    z=event.srcElement
    temp1=z.style.pixelLeft
    temp2=z.style.pixelTop
    x=event.clientX
    y=event.clientY
    document.onmousemove=move
    }
    }
    document.onmousedown=drags
    document.onmouseup=new Function("dragapproved=false")var bFlag=false;
    function fun()
    {
    bFlag=!bFlag;
    if (bFlag)
    document.all.imgName.style.display='none';
    else
    document.all.imgName.style.display='';
    }
    //-->
    </script>
    <button onclick='fun();'>测试</button><br>
    <img id=imgName src="http://www.1000script.com/script/images/LOGO.gif" class="drag" width="133" height="63" alt="这是一个可以拖放的图片">
      

  3.   

    createpopup  methed is ok