i got a phpcode as ill like to have as a javascript code if anyone can help me...
Php code:
<?php
$now_ho = date("H");
//Daytime(6h~19h)
if ($now_ho < 19){
if ($now_ho >= 6){
$vwimg = "hh_entry_oc1";
}
}
//Night (19h~6h)
if ($now_ho <= 24){
if ($now_ho >= 19){
$vwimg = "hh_entry_oc2";
}
}
if ($now_ho < 6){
if ($now_ho >= 0){
$vwimg = "hh_entry_oc2";
}
}
?>
cast.entry.1=<?php echo $vwimg ?>
if you dont understand the code then im looking for a code where you can show a special link at a special time in the day and an other one in the night
ex.
between 6 and 19 the link is www.whatever.com/link1
and between 19 and 6 the link is www.whatever.com/link2