View Single Post
  #8 (permalink)  
Old 11-05-09, 08:04 AM
belgirl belgirl is offline
Newbie Coder
 
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks but I already know how to do a peeling corner--the script I posted is from that website. Please read my original post.

Quote:
Originally Posted by End User View Post
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:

How to create a peeling corner on your website that can contain advertations or anything else.
Reply With Quote