Martin Thompson

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromMartin Thompson
ToMe
SubjectAutomated image rollover script problem
Date25 November 2008 17:36
Hi,

I'm having a problem getting the imgRoll.js script to do anything on a
website I'm developing. It is only set for the Home button on the index.php
page of the site at the moment but it isn't apparently doing anything. Is it
a problem that it is being associated with an image map statement (the call
is on the first line with class="navtab" on it)?

The page is here:

[URL]

I get the same problem with Firefox 3, IE6 and 7, Opera & Safari. That is,
the hover image is not displayed. Basically I want the image to change and
the navigation to work...

Thanks in advance,

Martin Thompson.
FromMe
ToMartin Thompson
SubjectRe: Automated image rollover script problem
Date29 November 2008 10:09
Martin,

> Is it a problem that it is being associated with an image map statement

Yes, it seems that no browser will allow me to attach a mouseover event
listener to an image that has a usemap attribute.

Aside from that, the script is supposed to go before the </body> tag,
not in the HEAD. However, fixing that will not help you because
fundamentally, it cannot work with image maps. A pity, but there's
nothing I can do to fix that, I am afraid.


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.