| Ordinary HTML content  td>  TR>  TABLE>     
  v: oval> // Original: Feng Yun Dance, loaded http://www.lshdic.com/bbs // Nothing is boring to write, call it "naughty ghost", it is also very interesting to put it in the web page. VAR WID, HEI / / Define global storage variables, mainly to improve speed WID = document.body.offsetwidth-50; hei = document.body.offsetHeight-50 // First start-up will be wide and high amplified variable Function document.onmousemove () {// mouse movement Oval1.style.Left = math.abs (wid-event.x-50); oval1.style.top = math.abs (hei-event.y-50); // object location temp1 = math.Round (100 / (wid / event.x); temp2 = math.Round (100 / (hei / event.y)) // calculates the percentage of X and Y Fill1.focusPosition = Temp1   "%,"   TEMP2   "%"; Fill1.focusSize = Temp1 / 9   "%,"   TEMP2 / 9   "%"; oval1.style.width = 100   Math.abs (Temp1- 50); Oval1.style.height = 100   math.abs (TEMP2-50) // Update object shape } Function window.onResize () { WID = document.body.offsetwidth-50; hei = document.boDy.OffsetHeight-50 // Form change larger refresh variable }  script>  Body>  Html> 
转载请注明原文地址:https://www.9cbs.com/read-24538.html 
 |