这个是aspx页面。
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script src="default.js" type="text/javascript"></script>
</head>
<body onmousemove="dragit()" onmouseup="d=0" runat="server">
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="DropDownList1" runat="server">
</asp:DropDownList>
<img alt="*aa" src="close.gif" onclick="show_hide_div()" />
</div>
<!-- #include file="file_default.inc" -->
</form>
</body>
</html>
下面是 default.js 文件
function show_hide_div()
{
var theDiv = document.all("help");
if(theDiv.style.visibility == "hidden")
theDiv.style.visibility = "visible";
else
theDiv.style.visibility = "hidden";
}
var d=0
function find(qq){
d=qq
x=event.clientX-d.style.pixelLeft
y=event.clientY-d.style.pixelTop
}
function dragit(){
if(d==0)return false
else{
d.style.pixelLeft=event.clientX-x
d.style.pixelTop=event.clientY-y
}
}
这个是弹出窗口 是file_default.inc文件
<div id="help" style="position:absolute; visibility:hidden;top:178px; left:260px" onmousedown="find(help)">
<table class="tableBorder-gray" align="center" width="400" cellpadding="0" cellspacing="0" border="0">
<tr>
<td bgcolor="#4574C4" width="282">
<font class="font12Y"> 开发说明:</font>
</td>
<td bgcolor="#4574C4" align="right"><img src="images/Close.gif" alt="Notice" onclick="show_hide_div()" align="center"/> </td>
</tr>
<tr>
<td colspan="2" bgcolor="#FEF9D1">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign ="top">
<td width="5" style="height: 150px"><img src="images/space.gif" width="10" height="1" alt=""/></td>
<td class="font12B" style="height: 150px">
<br/>
1. 文章<br/>
2. 编辑。<br/>
3. 编辑。<br/>
4. 编辑。<br/>
5. 对。<br/>
6. 通。<br/>
7. 可(无需点击Go按钮)。<br/>
8. 模糊<br/><br/>
<br/>
</td>
<td width="5" style="height: 150px"><img src="images/space.gif" width="10" height="1" alt=""/></td>
</tr>
</table>
</td>
</tr>
</table>
</div>