Clock

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
johns
Beginner
Beginner
Posts: 8
Joined: Mon Aug 01, 2005 11:44 pm
Location: Cambridge UK

Clock

Post by johns »

The clock function is excellent ... but I would like it to appear as a header style item rather than a menu one (i.e. it has the header colours, and doesn't respond to mouseover).

If I change the type from "clock" to "header" this works ok, but the time is nolonger up dated but frozen at the time when the page opened. You can see the two effects at: http://bluntishambaptist.org which is how I would like it to appear (but doesn't update time), and http://bluntishambaptist.org/subsite (when on mouse over the item changes to the onbgcolor).

Any ideas! Thanks.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

It has to have type=clock; to function with the time and date.

You can fix the colors by adding the colors you want to the aI string, i.e. if your headerbgcolor is red and the headercolor is white, you would put offbgcolor=#ff0000; onbgcolor=#ff0000; offcolor=#ffffff;oncolor=#ffffff; into the aI string. You can also put in mouse so that it doesn't change to a hand, pointer=crosshair; I believe that's one of the acceptable css codes.

This doesn't disable the item so the clock will work, but someone can click it and get the javascript:void message in the bottom of the browser, but it will look like a header.

You could also have it allow clicking but have it pop up a tiny window with some message. If you knew how to do functions you could probably make one that would pop up a specific window message depending on the time.

Ruth
johns
Beginner
Beginner
Posts: 8
Joined: Mon Aug 01, 2005 11:44 pm
Location: Cambridge UK

Post by johns »

Hi Ruth

Many thanks - I think I tried that before! It all works except for offbgcolor which doesn't make any difference I still get the headerbgcolor. I've made the changes to the sites so you can see what I've done.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I just downloaded the page and it seems the line for that aI has an extra space in it between align=left; and offbgcolor=#xxxxxx;. As soon as I got rid of that space the offbgcolor worked.

Ruth
johns
Beginner
Beginner
Posts: 8
Joined: Mon Aug 01, 2005 11:44 pm
Location: Cambridge UK

Post by johns »

Upps - sorry should have noticed that!

Many thanks
Post Reply