Welcome to WebmasterWorld Guest from 54.144.126.195

Forum Moderators: open

Message Too Old, No Replies

Java script : make a link disapear for 24 hours

     

techboy992

10:30 am on Oct 4, 2012 (gmt 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 ?

<html>
<head>
<script type="text/javascript">
function disableLink(url) {
document.write("<style type='text/css'>.disLink {display:none;}</style>");
location.href = url;
}
</script>
</head>
<body>
<a href="javascript:disableLink('http://www.example.com');" class="disLink">test</a>
</body>
</html>

Austin80ss

1:29 pm on Oct 18, 2012 (gmt 0)



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

Featured Threads

Hot Threads This Week

Hot Threads This Month