Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Java script : make a link disapear for 24 hours

10:30 am on Oct 4, 2012 (gmt 0)

New User

5+ Year Member

joined:Feb 15, 2011
posts: 7
votes: 0

Hi guyes :)

I need a little help to get this script to work the way I like it to.

I am making a website promote script, to go high in toplists
What my script shall do is to hide a link after it is clicked.

I make one site display all links, that is awaible for to days click, after my promoteor have click one link it need to disapear and only show rest of the links, until the user reach the buttom of the links.

Next day the links shall be awaible again for a click.
How can I do this ?

<script type="text/javascript">
function disableLink(url) {
document.write("<style type='text/css'>.disLink {display:none;}</style>");
location.href = url;
<a href="javascript:disableLink('http://www.example.com');" class="disLink">test</a>
1:29 pm on Oct 18, 2012 (gmt 0)

New User

5+ Year Member

joined:Oct 17, 2012
votes: 0

Why aren't you using events, like on mouse click?