<FORM METHOD=POST ACTION="">
<SELECT NAME="qqboxlr">
<OPTION VALUE="right" SELECTED>向"左"边靠
<OPTION VALUE="left">向"右"边靠
</SELECT>
<SELECT NAME="qqboxtb">
<OPTION VALUE="top" SELECTED>向"上"边靠
<OPTION VALUE="bottom">向"下"边靠
</SELECT>
X轴:<INPUT TYPE="text" NAME="qqboxx">
<INPUT TYPE="submit" value="提交">
</FORM>
<div style="height:1500px;background:#f0f0f0;"></div>
<%
'可以设置X轴与Y轴
qqboxx = Trim(request("qqboxx"))
If qqboxx = "" Then
qqboxxs = "0"
Else
qqboxxs = qqboxx
End If
qqboxlr = Trim(request("qqboxlr"))
'qqboxlr = "right" 'qqboxlr 控制左右位置
if qqboxlr = "left" then
qqboxlrs = "right:"
elseIf qqboxlr = "right" then
qqboxlrs = "left:"
end If
qqboxtb = Trim(request("qqboxtb"))
'qqboxtb = "bottom" 'qqboxtb 控制上下位置
If qqboxtb = "top" Then
qqboxtbs = "top:"
ElseIf qqboxtb = "bottom" Then
qqboxtbs = "bottom:"
End if
%>
<div id="qqobjbox" class="qqobjbox" style="display:block;" onmousemove="qqboxove('qqobjbox');" onmouseout="qqboxout
('qqobjbox');">
qqbox
</div>
<style>
.qqobjbox,.qqobjboxove,.qqobjboxout {width:100px;height:80px;position:fixed !important;<%=qqboxtbs%>0;position:absolute;z-
index:100;background:red;float:<%=qqboxlr%>;}
*html .qqobjbox,*html .qqobjboxove,*html .qqobjboxout {<%=qqboxtbs%>expression(offsetParent.scrollTop+20);}
.qqobjbox {<%=qqboxlrs%>-80px;}
.qqobjboxove {<%=qqboxlrs%>0px;}
.qqobjboxout {<%=qqboxlrs%>-80px;}
</style>
<script>
function qqboxove(str){document.getElementById(str).className="qqobjboxove";}
function qqboxout(str){document.getElementById(str).className="qqobjboxout";}
</script>
</body>
</html>