鼠标改变图像的位置.htm

来自「VBSCRIPT的源码,相信很多html程序员都会用到,这些源码小小变动一下,可」· HTM 代码 · 共 30 行

HTM
30
字号
<html><head><title>鼠标改变图像的位置</title><script LANGUAGE="VBScript">sub square_onmouseover()    none.style.posleft=square.style.posleftif  square.style.posleft>500 then    square.style.posleft=100else     square.style.posleft=square.style.posleft+120end if    lose.style.visibility="visible"end subsub none_onmouseout    lose.style.visibility="hidden"end sub</script></head><body bgcolor="#C0C0C0"><center><h2>请你用鼠标在图像上左右移动,看看效果</h2></center><p><div id="square"style="position:absolute;top:200px;left:100px;background-color:teal;width:100;height:100"><p>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?