Displaying Sliced Polygons in original layout

Associate
Joined
18 Nov 2008
Posts
2,430
Location
Liverpool
Sorry for the title, I really have no idea how to describe what I want other than to show you, but first I'll try and explain.

What I'm trying to do is apply a hover effect to each island from GTA San Andreas' map. The problem with this is that I can't just slice them into rectangles, because some bits overlap each other vertically.

Example Map: http://myepsilon.org/maps/gtasa_empty_map.jpg

So how do I cut it into 4 images (Island 1, 2 and 3, remaining water) and then put them back together on a web page fitting together perfectly?

The only other way I've been able to do it is to use an image map, and javascript for the image to change to one of 3 pre-hover effect images, but this means loading 4 sets of the image every time the page loads.

Example of this (No Pre-Load, bottom two island only): http://cyphergaming.co.uk/map.html

Is there a better way? Cheers!
 
Hmm, interesting idea! My only gripe with that is that presumably making the transmission "smooth" would be impossible, as the effect would be side to side rather than morphing?

What I mean is, I'd like the hover to fade in using jQuery, but if I'm jumping to an image to the right this won't work presumably?
 
Back
Top Bottom