SpinerC Posted March 5, 2007 Posted March 5, 2007 I called my friend, then did a search in the installation etc... section below and here is what I was looking for, works perfectly too! +++++++++++++++++++++++++++++++++ <tr> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> <span id="liveclock" style="position:relative;left:0;top:0;"> </span> <script language="JavaScript"> <!-- /* Upper Corner Live clock script credit: JavaScript Kit (www.javascriptkit.com) More free scripts here! */ function show5(){ if (!document.layers&&!document.all&&!document.getElementById) return var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn="PM" if (hours<12) dn="AM" if (hours>12) hours=hours-12 if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds //change font size here to your desire myclock="<span class='clock'> "+hours+":"+minutes+":" +seconds+" "+dn+"</span>" if (document.layers){ document.layers.liveclock.document.write(myclock) document.layers.liveclock.document.close() } else if (document.all) liveclock.innerHTML=myclock else if (document.getElementById) document.getElementById("liveclock").innerHTML=myclock setTimeout("show5()",1000) } window.onload=show5 //--> </script><noscript><?php echo date("h:i:s A"); ?></noscript> ============================================= You can have a look at the footer on my site; https://www.diamondsahara.ca Thanks! Sincerely Char :) Sorry if this double posts..... doesn't seem to want to go :(
ErollorD Posted March 5, 2007 Posted March 5, 2007 pack this and add it as contribution, don't post it on forum...
SpinerC Posted March 5, 2007 Author Posted March 5, 2007 pack this and add it as contribution, don't post it on forum... Hello :) Its not my contribution for one and it is already here in the contributions below, burried.....:( Thanks! Sincerely Char :)
jonquil Posted March 5, 2007 Posted March 5, 2007 Geez, saw my name and thought I was under arrest! I think this is great. Did it accomplish what you wanted? To be three hours ahead? Nope :) But it's cool just the same. I just replaced <?php echo strftime(DATE_FORMAT_LONG); ?> with all you provided and voila! Nice find! jon It's all just ones and zeros....
jonquil Posted March 5, 2007 Posted March 5, 2007 pack this and add it as contribution, don't post it on forum... It was posted originally by spax Dec '06: http://www.oscommerce.com/forums/index.php?showtopic=243360 I'm sure he would appreciate your sentiment. :-" jon It's all just ones and zeros....
Nullachtfuffzehn Posted March 5, 2007 Posted March 5, 2007 Geez, saw my name and thought I was under arrest! I think this is great. Did it accomplish what you wanted? To be three hours ahead? Nope :) But it's cool just the same. I just replaced <?php echo strftime(DATE_FORMAT_LONG); ?> with all you provided and voila! Nice find! jon *lol* That's what I thought at first too.
SpinerC Posted March 5, 2007 Author Posted March 5, 2007 Geez, saw my name and thought I was under arrest! I think this is great. Did it accomplish what you wanted? To be three hours ahead? Nope :) But it's cool just the same. I just replaced <?php echo strftime(DATE_FORMAT_LONG); ?> with all you provided and voila! Nice find! jon You mean the police didn't show up? :P :P When you changed that code, did it also give you the minutes? That is EXACTLY what I was looking for :) Glad you enjoyed it and a BIG thank you to the person below that created it! Sincerely Char :)
jonquil Posted March 6, 2007 Posted March 6, 2007 Gave me hours, minutes, seconds. Like I said, very cool and subtly neat! I have listed Nullachtfuffzehn as my one phone call person to bail me out. Just thought you needed to now this :-" jon It's all just ones and zeros....
cjmchch Posted March 6, 2007 Posted March 6, 2007 I opted for a very simple solution to advance the time. I had to do it by 21 hours so I changed echo strftime(DATE_FORMAT_LONG); to echo strftime ("%A %d %b %y %T", time()+75600); the 75600being seconds. =21 x 60 x 60
SpinerC Posted March 7, 2007 Author Posted March 7, 2007 I have listed Nullachtfuffzehn as my one phone call person to bail me out. Just thought you needed to now this :-" jon WOW ME TOO! :lol: :P (w00t) Take care and thanks for your help! all "seems" to be working ok now... Just have to update a few of my pages but, that can wait! Sincerely Char :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.