The Hide Div Outside Page Area Pop-up Method

Test this pop-up method: Using the Hide Div Outside Page Area Pop-up Method


Windows IE: OK
Windows Firefox: OK
Windows Safari: OK
Windows Opera: OK
Mac IE: OK
Mac Firefox: OK
Mac Safari: OK

BACK TO LIST OF POP-UP METHODS
BACK TO HOME PAGE



This one is pretty straightforward: Just hide the pop-up div outside the page area then show it by changing the left property to onscreen.

You may use this technique to present pop-up ads, or to solicit subscribers to your ezine, newsletter, or RSS feed. Use if for reminders, warnings, or statistics displaying. You may get survey participants, ask for donations, or use it for political fund raising. You can even inform visitors about some of your other related websites. There is no end to the types of purposes that pop-ups can be used for.

If your pop-up is about thumbnail enlargement, check out What is the easiest way to do thumbnail image enlargement windows? If you want thumbnail enlargement without clicking, check out Making an Image Enlarge When The Mouse Cursor Is Hovering Over It.





THE CODE



<html>
<head><title>The Hide Div Outside Page Area Pop-up Method</title>

<script type="text/javascript">

function move(l){e=document.getElementById('o');e.style.left=l;}

</script>
</head>
<body>

<IMG SRC="doorknob.gif" WIDTH=50 HEIGHT=50 BORDER=0 onMouseOver="javascript:move(200);return true" onMouseOut="javascript:move(-500);return true">

<div id="o" style="position:absolute; left:-500px; top:100px; width:400px; height:400px;"><IMG SRC="doorknob-big.gif" WIDTH=400 HEIGHT=400 BORDER=0></div>

</body>
</html>