别在同一个IE里打开window.showModalDialog()窗口就可以了
解决方案 »
- 页面删除元素的执行效率问题
- flash在ie中不显示滚动条是怎么回事?
- 谁知道如何在firefox操作音乐播放,暂停?
- JavaScript执行顺序的问题
- 求教高人,document.getElementById("game_eval").run
- 没分了,日后一定给加分~ 下拉列表框弹出信息事件
- Webstorm不能修改字体是怎么回事
- ◆◆◆◆帮帮我吧◆◆◆◆◆我快急死了!!!!◆◆◆◆◆◆◆◆◆◆◆
- 有两个问题,感觉好象是系统级的,高手来看看吧
- jQuery toggle()函数的使用问题
- (急,急,急,急!)关于selection 的问题,欢迎各位指教!!!(100分)
- <input 数组,事件中如果判断是第几个?
你的基本要求!<INPUT TYPE="button" NAME="" value=显示窗口 onclick="Win.style.visibility='visible'">
<SCRIPT LANGUAGE="JavaScript">
<!--
var drag=false;
var offsetX,offsetY
function mDown(){
if(window.event.srcElement.id=='winHead'){
drag=true;
offsetX=window.event.offsetX;
offsetY=window.event.offsetY;
}
else return false;
}
function mMove(){
if(!drag)return false;
document.all['Win'].style.left=window.event.clientX-offsetX-3;
document.all['Win'].style.top=window.event.clientY-offsetY-3;
return false;
}
function mUp(){
drag=false;
}
document.onmousedown=mDown;
document.onmousemove=mMove;
document.onmouseup=mUp;
//-->
</SCRIPT>
<div id="Win" style="position:absolute;width:250px;height:250px;left:100px;top:100px;background-color:black;z-index:500;visibility:hidden;overflow:hidden;">
<div id="winHead" style="position:absolute;width:248px;height:20px;left:1px;top:1px;background-color:#e7e7e7;z-index:510;cursor:move;overflow:hidden;">
</div>
<div id="winButton" style="position:absolute;width:20px;height:20px;left:229px;top:1px;background-color:#e7e7e7;z-index:511;color:red;cursor:hand;overflow:hidden;" title=close onclick="Win.style.visibility='hidden'">X
</div>
<div id="winBody" style="position:absolute;width:248px;height:227px;left:1px;top:22px;background-color:red;z-index:510;overflow:hidden;">
<IFRAME ID=IFrame1 FRAMEBORDER=0 SCROLLING=NO SRC="http://www.csdn.net" width=100% height=100%></IFRAME>
</div>
</div>