The Grey Labyrinth is a collection of puzzles, riddles, mind games, paradoxes and other intellectually challenging diversions. Related topics: puzzle games, logic puzzles, lateral thinking puzzles, philosophy, mind benders, brain teasers, word problems, conundrums, 3d puzzles, spatial reasoning, intelligence tests, mathematical diversions, paradoxes, physics problems, reasoning, math, science.

   
The Grey Labyrinth Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Pretty "Suite" Clock

 
Reply to topic    The Grey Labyrinth Forum Index -> Off-Topic
View previous topic :: View next topic  
Author Message
The Doctor
Editor-in-Chief



PostPosted: Sun Jul 13, 2003 2:11 pm    Post subject: 1 Reply with quote

http://www.suite101.com/files/mysites/AskAlice/Clock.htm

[This message has been edited by The Doctor (edited 07-13-2003 10:12 AM).]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dethwing
DeTheeThaw



PostPosted: Sun Jul 13, 2003 2:26 pm    Post subject: 2 Reply with quote

Nothing happens. I don't get it.
Back to top
View user's profile Send private message Send e-mail AIM Address
JDTAY
obseletes now



PostPosted: Sun Jul 13, 2003 2:28 pm    Post subject: 3 Reply with quote

It works for me. You're probably just one of those losers who doesn't use IE.
Back to top
View user's profile Send private message Send e-mail AIM Address
Chuck
Daedalian Member



PostPosted: Sun Jul 13, 2003 2:31 pm    Post subject: 4 Reply with quote

It works in Internet Explorer but not in Netscape Navigator.

This is my 7500th post. I know you get a house, car, and big screen TV when you hit 10,000. Is there any prize for 7500?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
The Doctor
Editor-in-Chief



PostPosted: Sun Jul 13, 2003 2:38 pm    Post subject: 5 Reply with quote

I don't know. What about 1402nd? Anything from some foreign people who count using base 1402?

[This message has been edited by The Doctor (edited 07-13-2003 10:39 AM).]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Beartalon
'Party line' kind of guy



PostPosted: Sun Jul 13, 2003 3:57 pm    Post subject: 6 Reply with quote

Quote:
You're probably just one of those losers who doesn't use IE.

No, he's a VICTIM of the losers who don't write browser detection into their code so their product can be seen by MOST people, regardless of browser.

I have the code. I've played with it to get an elliptical clock face, with the date going around another ellipse perpendicular to the clock face. It looks like an atom

[This message has been edited by Beartalon (edited 07-13-2003 11:57 AM).]
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
margitsw
Queen of VSP



PostPosted: Sun Jul 13, 2003 4:16 pm    Post subject: 7 Reply with quote

From the source code
if (ie){

And that says it all.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Beartalon
'Party line' kind of guy



PostPosted: Sun Jul 13, 2003 5:13 pm    Post subject: 8 Reply with quote

I checked again. It also says "if(ns)..." so the detection code is there. I wonder why it doesn't work?
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
extropalopakettle
No offense, but....



PostPosted: Sun Jul 13, 2003 5:39 pm    Post subject: 9 Reply with quote

Works fine for me in Netscape (4.75).
Back to top
View user's profile Send private message
The Doctor
Editor-in-Chief



PostPosted: Sun Jul 13, 2003 6:25 pm    Post subject: 10 Reply with quote

Beart, how'd you do that elipse thing?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Beartalon
'Party line' kind of guy



PostPosted: Sun Jul 13, 2003 9:06 pm    Post subject: 11 Reply with quote

I'm trying to find it. I either deleted or overwrote the result. It's obviously based on a circle, but I introduced new variables for the different radii of the ellipse. I'll have to work on it again.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Beartalon
'Party line' kind of guy



PostPosted: Mon Jul 14, 2003 2:39 am    Post subject: 12 Reply with quote

If you look in the source, you can see variables names ClockWidth and ClockHeight. Change these to affect the shape of the clock part. Make one value larger than the other for an elliptical clock. If you use negative numbers, you'll flip the clock horizontally, vertically or both, and the hands will move in the appropriate direction for the new look.

Further down, you'll see this text which creates the scrolling date effect:
code:
for (i=0; i < D.length; i++){

var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
}

To get an ellipse for the date, add a multiplying factor to each line, like so:
code:
for (i=0; i < D.length; i++){

var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
DL.top=Dy[i] + 2*ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
DL.left=Dx[i] + 1.5*ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
}

Now the date will also be elliptical. If you use negative numbers, the date ellipse will rotate appropriately. If you make one of the multiplying factors less than one, the date ellipse will intersect the clock, like the atom I was talking about.
Now, try the multiplying factor somewhere else for more effects. This code:
code:
for (i=0; i < D.length; i++){

var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
DL.top=Dy[i] + ClockHeight*1.5*Math.sin(2*(currStep+i*Dsplit*Math.PI/180))+scrll;
DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
}

has a multiplying factor inside the sin function, and produces an infinity-symbol with the scrolling date.

I'll upload these.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Beartalon
'Party line' kind of guy



PostPosted: Mon Jul 14, 2003 2:55 am    Post subject: 13 Reply with quote

Here they are:
http://www.geocites.com/beartalon/graphics/clock.htm - normal clock and date
http://www.geocites.com/beartalon/graphics/clock2.htm - elliptical clock face
http://www.geocites.com/beartalon/graphics/clock3.htm - elliptical date
http://www.geocites.com/beartalon/graphics/clock4.htm - both elliptical
http://www.geocites.com/beartalon/graphics/clock5.htm - infinity date
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Beartalon
'Party line' kind of guy



PostPosted: Mon Jul 14, 2003 2:57 am    Post subject: 14 Reply with quote

Hmph. They won't work for some reason, although they test locally just fine. Maybe it's geocities, my host. Try saving the sources to your hard drive and running it from there.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
The Doctor
Editor-in-Chief



PostPosted: Mon Jul 28, 2003 10:53 pm    Post subject: 15 Reply with quote

They work for me.

Those are great! I like that infinity one. Snazzy.

[This message has been edited by The Doctor (edited 07-28-2003 06:53 PM).]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
HyToFry
Drama queen



PostPosted: Wed Jul 30, 2003 11:53 pm    Post subject: 16 Reply with quote

They sure don't work for me.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
The Ktulu
Daedalian Member



PostPosted: Thu Jul 31, 2003 12:55 am    Post subject: 17 Reply with quote

Nor for me.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Ancalagon
Winged Member



PostPosted: Thu Jul 31, 2003 3:03 pm    Post subject: 18 Reply with quote

Doesn't work here either. Browser thingy?
Back to top
View user's profile Send private message Send e-mail
Beartalon
'Party line' kind of guy



PostPosted: Thu Jul 31, 2003 4:53 pm    Post subject: 19 Reply with quote

It could be, but if I view it locally in IE, they work fine for me.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Beartalon
'Party line' kind of guy



PostPosted: Thu Jul 31, 2003 4:54 pm    Post subject: 20 Reply with quote

The error tells me invalid argument at line 118 char 2. I'll look at it when i get home.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
HyToFry
Drama queen



PostPosted: Thu Jul 31, 2003 5:16 pm    Post subject: 21 Reply with quote

They don't work even locally for me.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous: by   
Reply to topic    The Grey Labyrinth Forum Index -> Off-Topic All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Site Design by Wx3