View Single Post
  #7 (permalink)  
Old 11-04-09, 09:09 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by belgirl View Post
Exactly. But their javascript is encrypted. So back to the original question: does anyone know of a javascript that can do this?
It would be pretty easy to write your own:

HTML Code:
<html>
<head>
<script type="text/javascript">
function showPos(){
    var mp = 'X=' + window.event.clientX +  ' Y=' + window.event.clientY ;
    document.getElementById('mousePos').innerText = mp;

}  
</script>
</head>
<body onmousemove=showPos()>
<div id="mousePos"></div>
</body></html>
When 'Y' goes to '0', trigger your event. Here's a tutorial and code for creating the "corner peel" effect:

http://www.marcofolio.net/webdesign/...r_website.html
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote