homepage Welcome to WebmasterWorld Guest from 67.202.56.112
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Visit PubCon.com
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:4503939
 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:4509339
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved