The problem with JavaScript will be that it will be disabled/removed between those times on the client machine and not on your machine. SO say if you want to disable the link in that period in your time (say US) it will not be disabled at the same time in say Europe.
So the best way to do this is to disable the link from server side.
Alternate way to do in JavaScript can be to get the server time or time from some standard location, which will not change according to user's location and depending on that enable or disable the link. I found this code to get the time.
$(document).ready(function(){
var timezone = "Europe/Berlin";
$.getJSON("http://json-time.appspot.com/time.json?tz="+timezone+"&callback=?",
function(data){
if (data.hour < 12) {
alert ("Good morning in "+timezone);
} else {
alert ("Good afternoon in "+timezone);
}
})
});
Now you can use this code to show/hide the link by creating 2 divs/spans and displaying one based on your time.
Update:
Here is an working example of the method I just mentioned. http://jsfiddle.net/pkDNX/
You will have to adjust the code to your timezone and the if conditions.
Update: Here is the working example for your requirements. http://jsfiddle.net/pkDNX/1/