Okay, I'm completely new to this kind of coding; I've had some experience in SQL & VB.net. I'm wondering if the following would be possible. Whatever code we come up with has to be able to work in an i-frame (as javascript of HTML5).
I need a text link to appear if the time is after 9:00pm on 04th of March 2014 GMT+ 0:00. Or alternatively I could re-direct the person to the desired page if the time is after that time.
How can this be done? I don't have access to the root servers as my site's hosted by a webmaster (wix.com) so I'd have to obtain the current time from somewhere -- like google perhaps.
Is this possible?
{Edit 1}
I've tried this code that I've changed a little from W3 Schools, you can copy and paste min, click submit and then run it from here; Link
<!DOCTYPE html>
<html>
<body>
<p>Click the button to get a time-based greeting.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction()
{
var x="";
var time=new Date().getHours();
if (time<21)
{
x="Good morning";
}
else
{
x="Good evening";
}
document.getElementById("demo").innerHTML=x;
}
</script>
</body>
</html>
The code works fine, I just need to put the date in, any ideas on how to do that?