Joop Teernstra wrote:
> When I am confronted with a large imagemap and I want to make small parts
> respond to mouse rollovers, how can I keep this compact? If you look at
> http://www.pacificlithium.com you can see that I have just cut up the whole
> imagemap and doubled the download of graphics.
> Not the thing I want to do to a visitor from the Philippines.
> Any suggestions about a leaner way might be a useful thread for the list.
Apologies if this has been answered to death in mail I haven't got to
yet . . .
With that graphic, you could slice and dice it a little differently.
the only part that actually changes are the four lettered segments. Yet
you are sending the graphic in four parts, and swapping in about 80%
material not necessary to the rollover.
If you cut each of the square into five parts, as such:
------------------------
| top of button |
| |
------------------------
|Side| letters |Side|
--------------------------
| |
| Bottom of button |
--------------------------
In this way, the first thing you can do is simply rollover only the
lettered segment (about a 1K file), instead of the whole buttons.
Even better, if you modify the graphic a bit and eliminate the top to
bottom shading gradations 9across all four buttons), you can use the
same image segment for the sides on each button (left and right), as
well as the same tops and bottoms for the middle buttons. That would
leave you only the following graphic segments:
1 for the very top
1 left hand side of buttons
1 right hand side of buttons
1 bottom for buttons
1 top for buttons
1 for the very bottom
1 for each rollover
Now you're down to about 50% or less of your original graphics total.
careful mapping to make sure they all fit the same palette, and reducing
the color depth, could probably bring that whole package in under 20 K
(from the 150K or so it appears to be now).
Brett
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------