-
1. Re: How do you make an open url last a certain period of time, for a new url to work in that same position after?
vivekumaNov 4, 2014 4:35 AM (in response to anon media)
Use a class for that and the code as below:
Say the class is "noClick":
$(".noClick").click(function(event){
event.preventDefault();
});So, when you want your link to be unclickable, then add $("yourButton").addClass("noClick");
and when you want it to be clickable, use this code $("yourButton").removeClass("noClick");
hth,
Vivekuma
-
2. Re: How do you make an open url last a certain period of time, for a new url to work in that same position after?
anon media Nov 4, 2014 5:31 AM (in response to vivekuma)Hi, thank you for the suggestion.
I apologise, as I haven't done this type of work for some time, so I'm a little off the pace with understanding this at the moment.
Just to be clearer, would I put those last two pieces of code you mentioned (the unclickable and clickable) inside the initial body of code, or underneath?
Also, just as an example, I'd basically like the first button to be clickable from say 5 seconds up until the ninth second.
If you could give me an example of how I would do that I should be able to build on from that.
Thanks very much for your help.
-
3. Re: How do you make an open url last a certain period of time, for a new url to work in that same position after?
vivekumaNov 4, 2014 5:37 AM (in response to anon media)
Can you upload & share your incomplete composition you have on dropbox or somewhere else?
I'll make changes to it accordingly, and re-share with you.
hth,
Vivekuma