homepage Welcome to WebmasterWorld Guest from 54.226.10.234
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Java script : make a link disapear for 24 hours
techboy992



 
Msg#: 4503937 posted 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



 
Msg#: 4503937 posted 1:29 pm on Oct 18, 2012 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved