You could have an absolutely placed DIV just below the Sign In link, then onclick, change the DIV's display to 'block'  . Something like this:
<a href="#" onclick="javascript : document.getElementById('sIB').style.display='bloc k';">Sign In</a>
<p>More Content</p>
<div id="sIB" style="display:none;margin-top:-50px;position:absolute;background:#888888;padding: 20px;border:10px solid #666666;color:#ffffff;">Sign In Box Contents Here</div>
<p>Content Content Content</p><p>Hoooray for content</p>
Then just have
<body onclick="javascript : document.getElementById('sIB').style.display='none ';">
****Currently working on better solution, check back soon for update
EDIT: Done :P
///Working show/hide sign in box script
Code:
<a href="#" onclick="javascript: if(sIB.style.display=='none'){sIB.style.display='block';}else {sIB.style.display='none';}">Sign In</a>
<p>More Content</p>
<div id="sIB" style="display:none;margin-top:-50px;position:absolute;background:#888888;padding:20px;border:10px solid #666666;color:#ffffff;">Sign In Box Contents Here</div>
<p>Content Content Content</p><p>Hoooray for content</p>
Even works with floats, everything!
Last edited by Physicsguy; 06-22-2010 at 10:53 PM..
|