Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Javascript: Analog Clock

align clock

  • Please log in to reply
23 replies to this topic

#13 spirates

spirates

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 27 May 2008 - 10:27 AM

instead of argumenting cant you help me crycrycrycrycry
  • 0

#14 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 27 May 2008 - 10:30 AM

Sorry, I'm kinda annoyed right now - not by TcM, it's been a long day.

Well, not just by TcM...
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#15 TcM

TcM

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 27 May 2008 - 11:16 AM

Duh I'm just gonna ignore your comment. Just keep yourself updated and you will know that it's ok now!

And that's not they way to reply to people. If you don't know how to help him just don't be rude to him.

@Spirates find this line

Xpos=window.pageXOffset+window.innerWidth-Xbase-30;


and change the -30 to any other number of pixels.. for example 1000.. it will go to the left. But to work on all resolutions you might want to modify that line and use http://forum.codecal...resolution.html

to determine the resolution, so it will be showed correctly in all resolutions.

Hope it helped.
  • 0

#16 spirates

spirates

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 27 May 2008 - 11:59 AM

didnt work.. the clock is still at the same place, i tried to put it in body and head but clock is still at same place
  • 0

#17 spirates

spirates

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 27 May 2008 - 12:18 PM

or sry.. it did work... it was my mircrosoft frontpage client who was buging... ye it worked to do so thanks..

another question: Can i make the clock unmovable in x lead?
  • 0

#18 spirates

spirates

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 27 May 2008 - 01:02 PM

when i move the clock at this way it doesnt hapen anything in IExplorer :S only in firefox ;((
  • 0

#19 TcM

TcM

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 28 May 2008 - 01:13 AM

What do you mean by x lead? You mean you want the clock to be in a static position?
  • 0

#20 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 28 May 2008 - 02:23 AM

Thanks that's very interesting, to change the position of the clock would you edit these lines?

Ypos=window.pageYOffset+window.innerHeight-Ybase-20;
Xpos=window.pageXOffset+window.innerWidth-Xbase-30;

?
  • 0

#21 TcM

TcM

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 7563 posts

Posted 28 May 2008 - 06:01 AM

Exactly. But as I said before you might want to combine that with this http://forum.codecal...resolution.html
so on every resolution you will have the clock always in the same position of the screen.
  • 0

#22 cakka

cakka

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 190 posts
  • Programming Language:Java, PHP, JavaScript
  • Learning:Java, PHP, JavaScript

Posted 10 June 2010 - 09:50 PM

do you have a demo link for this clock ? :)
thanks
  • 0

#23 asim

asim

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 17 May 2011 - 06:05 AM

I have problem I want a Analog clock but the time go in analog clock from my data base plz help me to
Thanks
  • 0

#24 VakhoQ

VakhoQ

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 126 posts

Posted 09 June 2011 - 12:05 PM

I've already created it on my one(for my self): http://vakho.comyr.com/clock.html
but I don't have English comments there(English is not my native Language) but if you want I could translate it for you. :)
  • 0
GNU/Linux Is the Best.





Also tagged with one or more of these keywords: align, clock

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download