<script language=javascript>
window.showModalDialog("2.htm",window,'dialogWidth:400px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: no;help:no;resizable:no;status:no')
</script>
在2.htm中写按钮和"欢迎光临"

解决方案 »

  1.   

    按钮的type不要是submit,然后<input name="button" type="button" value="press" onfocus="this.blur()" onclick="alert('hehe')">
      

  2.   

    按钮的type不要是submit,然后<input name="button" type="button" value="press" onfocus="this.blur()" onclick="alert('hehe')">这个不行啊
      

  3.   

    <script language=javascript>
    window.showModalDialog("2.htm",window,'dialogWidth:400px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: no;help:no;resizable:no;status:no')
    </script>
    在2.htm中写按钮和"欢迎光临"这是什么意思
      

  4.   

    用层怎么模拟啊onClick="alert('中华人民共和国')"还有就是弹出的这个窗口,不能使用键盘的回车键和空格键,这要如何实现啊
    用层怎么实现啊,能否交交啊<a onClick="alert('中华人民共和国')";href="http://127.0.0.1/to.asp"  target="_blank">点击我</a>
    我的就是要在这链接上实现,打开这链接行,请弹出对话框,但是对话框位置要能够改变,并且不能使用键盘的回车和空格,必须使用鼠标来打开
      

  5.   

    myvicy(看着远方,走脚下的路。) 
    在不在啊myvicy(看着远方,走脚下的路。) 帮我看看啊,如何用层来实现,我作不出来啊,帮帮我行吗
      

  6.   

    <script>
    function showme(top,left,msg,url){
        document.getElementById("msg").style.top=top;
        document.getElementById("msg").style.left=left;
        document.getElementById("msg").innerHTML=msg+"<br><input type=button value=确认 onclick=window.open('"+url+"','_self')>";
        document.getElementById("msg").style.display="block"
    }
    </script>
    <div id=msg style="position:absolute;top:0;left:0;width:200;height:60;z-index:1000;background:#DDD;display:none;border:1 solid #AAA"></div>
    <a onClick="showme(100,100,'中华人民共和国','http://127.0.0.1/to.asp');return false" href="#" target="_blank">点击我</a>一个简单的效果。
      

  7.   

    myvicy(看着远方,走脚下的路。) 能不能直接修改alert()的位置啊
    这种不是要的效果啊,太难看了
      

  8.   

    myvicy(看着远方,走脚下的路。) 能不能直接修改alert()的弹出窗口位置,禁止回键和空格操作他这窗口.
    这种不是要的效果啊,太难看了
      

  9.   

    在不在啊,能不能修改alert()函数的位置啊