View previous topic :: View next topic |
Author |
Message |
ethereal -
Joined: 14 Jan 2004 Posts: 18
|
Posted: Tue Oct 30, 2007 7:41 pm Post subject: Top 200 Voting Block That goes away once you vote?? |
|
|
I found on some other websites that use top 100 or top whatever voting buttons that the option to vote pop ups automaticly and once you vote that option goes away. Once you vote (either yes or no) that pop up won't pop up again for another 12 hours. I'm wondering how I can implement something like this on my site.
Here's an example of what I'm refering to
http://www.burning-wow.com/home.html
as well as,,,
http://www.wowgasm.org/en/index.php
Any help would be greatly appreciated. Thanks..... |
|
Back to top |
|
 |
rrinc -
Joined: 24 Feb 2006 Posts: 725 Location: Arkansas, USA
|
Posted: Tue Oct 30, 2007 10:14 pm Post subject: |
|
|
Those are just absolutely positioned div elements and they can close by simply being hidden.
Here's an example of something I've used before on a website:
Code: | <div style="border:2px solid gray;position:absolute;left:100px;top:100px;width:300px;background:white;padding:10px;font-family:sans-serif;" id="box">
<script type="text/javascript">
function toggle(id){
var e=document.getElementById(id);if(e.style.display=='none');e.style.display='block'; else e.style.display='none';
}
</script>
This is a absolutely positioned div.
<a href="javascript:void(0);" onClick="toggle('box');">Close</a>
</div> |
_________________ -Blake | New Server :D
SaveTheInternet
Soy hispanohablante. Puedes contactarme por mensajes privados. |
|
Back to top |
|
 |
|