HELP WITH CODE ERRORS! please help fast!

  • 1
  • Question
  • Updated 9 years ago
  • Answered
heres my code

<!--<span id=tick2></span><script><!--/*By George Chiang (WA's JavaScript tutorial) http://wsabstract.com*/function show2(){ if (!document.all) return var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn="AM" if (hours>12){ dn="PM" hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds var ctime=hours+":"+minutes+":"+seconds+" "+dn tick2.innerHTML="<b style='font-size:22;color:blue;'>"+ctime+"</b>" setTimeout("show2()",1000)}window.onload=show2//-->-->

Yola says its wrong =( whats up with it?

thanks

al

http://logikomedy.synthasite.com
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
  • confident

Posted 9 years ago

  • 1
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
ill take that as a no...
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
What is this code? What's it supposed to do? Is it a clock?
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
how did you know! yes its a clock.
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
After staring at your code for quite awhile, it finally dawned on me that words like "minute" "hour" "seconds" can only mean one thing - time! =)
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hey Alex,
Where did you get that code? Are you set on that clock? I would suggest first trying to go through the steps to create it and generate the code and see if something got left off somewhere. Did you look in the Google Gadgets folder? There are some clocks in there.

Emmy
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
well emmy i realy like that clock, its realy nice and has no ge this thing anywhere on it.
i would realy like some help with makeing this code work...

al
Photo of Peter

Peter

  • 2569 Posts
  • 113 Reply Likes
Hello Mr Alex,

I think you may have some problems with that clock as it's a java script baby with lots of variables. Not sure if Yola handles this level of java code.

I have a really good one here that you may be interested in. It's self correcting, configurable and customisabale. No adds.

http://www.timeanddate.com/clocks/fre...
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
nm found it im GMT