Drupal AJAX ImageMap?

G&G Moderator
G&G Podcast Host
NonProfit's picture
Joined: 06/06/2007

Hey, I'm looking at a Drupal theming project...everything seems really straightforward, except they have an image which is to be a "selectable menu" which "causes the content of the frame to change." Clearly AJAX is the way to handle this...any tips on just how to set it up?

I've not used ImageMaps in years, preferring Sprites for linking. However, I've not been presented with a "single image as navigation" in a long, long time. Am I approaching this correctly?

Thanks, -NP

Joined: 09/09/2008
Maybe Javascript is sufficient

NonProfit,

I've got a client site that does this in two places, on the front page (roll over the faces), and in the banner of other pages (roll horizontally across the banner).

IIRC (I built this site a couple of years ago and it's still Drupal 5, gotta see about changing that soon). I hand constructed a stack of images and used jquery to alter z-order.

There's one trick to this technique. Put your image map on a totally transparent image that's "on the top of the stack" to prevent mouse-over mouse-out transitions as an underlying image changes (pegs the processor on the visitor's computer; guess how I know 8=) ).

Good luck,
Curt

G&G Moderator
G&G Podcast Host
NonProfit's picture
Joined: 06/06/2007
Thanks!

Curt, thanks. I'll have to take a closer look at your approach. -NP