怎样做到和原页面融为一体的小新窗口呢? 就是显示一个层,修改窗口层原来是none,调用 的时候就是dispaly,这样就效果就出来了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!--简单的例子--><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>简单的例子</title><style type="text/css"><!--#Layer1 { position:absolute; width:200px; height:115px; z-index:1; background-color: #CCCCCC; left: 271px; top: 76px;}--></style><script language="javascript"><!--var MSG_LOCKED=truedocument.onmousedown=function(){ if (MSG_LOCKED){ alert('小窗口事件未处理!') return false } }document.onselectstart=function(){ if (MSG_LOCKED){ alert('小窗口事件未处理!') return false }}// document.更多事件 = function(){ //... }function mmOver(){ MSG_LOCKED=false}function mmOut(){ MSG_LOCKED=true}function hiddenMe(){ MSG_LOCKED=false Layer1.style.display='none'}--></script></head><body>简单的例子<div id="Layer1" onMouseOver="mmOver()" onMouseOut="mmOut()"> <table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#CCCCCC"> <tr> <td>小窗口 </td> <td width="14" align="right" onClick="hiddenMe()">×</td> </tr> </table></div></body></html> window.showModalDialog() (模态窗口)用这个打开的窗口他一直处于最前端,只有把他关闭才能点后面的窗口 这段代码如何正常显示html代码 请教个JavaScript的问题,不知道怎么描述 一个很奇怪的JS问题(有关if else) js一点就有 一点就没! 根据单选按钮改变select中的value值,如何实现? 有关input type=file的问题.如何设置它的初始的目录?? 如何判断客户访问这个页面的时候,从哪个页面过来的呢? 点击表中的一条记录,将该行记录传递到另一页的相应TEXT中,同时关闭该数据表页。救命!( 急急急,求得帮助! 两个问题? 如何获得周数? javascript能不能像C#一样用goto 语句跳出深嵌套循环。
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>简单的例子</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
background-color: #CCCCCC;
left: 271px;
top: 76px;
}
-->
</style><script language="javascript"><!--
var MSG_LOCKED=true
document.onmousedown=function(){
if (MSG_LOCKED){
alert('小窗口事件未处理!')
return false
}
}
document.onselectstart=function(){
if (MSG_LOCKED){
alert('小窗口事件未处理!')
return false
}
}
// document.更多事件 = function(){ //... }function mmOver(){
MSG_LOCKED=false
}
function mmOut(){
MSG_LOCKED=true
}
function hiddenMe(){
MSG_LOCKED=false
Layer1.style.display='none'
}
-->
</script>
</head><body>简单的例子
<div id="Layer1" onMouseOver="mmOver()" onMouseOut="mmOut()">
<table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<td>小窗口 </td>
<td width="14" align="right" onClick="hiddenMe()">×</td>
</tr>
</table>
</div>
</body>
</html>
用这个打开的窗口他一直处于最前端,只有把他关闭才能点后面的窗口