📄 图象跟随鼠标.htm
字号:
<html>
<head>
<META name=VI60_defaultClientScript content=VBScript>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>图像跟随鼠标</title>
<SCRIPT LANGUAGE=VBScript>
<!--
Sub document_onmousemove
set cur=document.all("it")
cur.style.visibility="visible"
height=cur.height
width=cur.width
if self.event.clientX>document.body.offsetWidth-5-width then
newleft=self.event.clientX-5-width
else
newleft=self.event.clientX
end if
cur.style.left=newleft
if self.event.clientY>document.body.offsetHeight-5-height then
newtop=self.event.clientY-5-height
else
newtop=self.event.clientY
end if
cur.style.top=newtop
End Sub
-->
</SCRIPT>
</head>
<body bgColor=peachpuff>
<div style="VISIBILITY: visible">
<IMG id=it src="1.JPG" style="LEFT: 5px; POSITION: absolute; TOP: 5px; VISIBILITY: hidden; Z-INDEX: 10" width="135" height="146" >
</div>
<p align="center">
<FONT face=仿宋_GB2312 size=5>看看</FONT>
<font face="仿宋_GB2312" size="5">,效果是不是挺不错的!</font></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -