|
Posted by Jonathan N. Little on 01/22/06 18:44
Denebola wrote:
> Denebola wrote...."Now call me stupid.... but if i use a script for an
> analogue
> clock.....with hour(h), minute(m), and second(s) hands, surely the
> position of the hands is determined by coordinates and if so, then
> basic programming will allow me to say, if coordinate (h) and
> coordinate (m) and coordinate (s) are true, then let the link in the
> webpage equal http://(x). If i can't do this in the 21st century, i'll
> be suprised. i could have done in the 80's......."
First of all, if I understand you correctly, if you are looking to draw
elements to represent hands of an analog clock, that is 'vector' can
cannot be really done with HTML and JavaScript. To animate the hands you
would need image of each hand in every possible position you want to
display... Next if you want to trap x,y coordinates of mouse clicks in
your link selection well JavaScript is a problem see:
http://www.quirksmode.org/js/events_properties.html
Javascript - Event properties
and
http://www.evolt.org/article/Mission_Impossible_mouse_position/17/23335/
Mission Impossible - mouse position | evolt.org
Not really the 80's but more like the early 90's by my recollection when
Netscape was the browser with events, their method was proprietary, as
with MS's approach to follow and now there are more browsers in the mix...
>
> I'm sure I have been to websites that when i log in, a personal message
> is displayed saying 'Good morning Denebola' or Good evening Denebola'
> depending on my local time. Essentially it is this function that I'm
> looking for.
Yes this is easy to do with JavaScript with localtime function, but the
rest with animation, my point is HTML and JavaScript are not the best
tools. IOW yes you can dig a hole with a teaspoon, but a shovel is a
better suited tool...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|