No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
i got a phpcode as ill like to have as a javascript code if anyone can help me... Php code: [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 = … |
|
i got this javasciptcode: [CODE]<script type="text/javascript"> window.onload = function(){ var now = new Date(); var hour = now.getHours(); var vwimg = ""; if(hour < 19 & hour >= 6){ //Daytime(6h - 19h) vwimg = "http://www.whatever.com/link1"; }else if(hour <= 24 & hour >= 19){ //Night (19h - 6h) vwimg = "http://www.whatever.com/link2"; … |