You might want to play with mod_expires to set expiration headers on
images.
On Fri, 2004-10-01 at 10:44, Robert Hunt wrote:
> Is there a way (as in, response header or other HTTPServletResponse setting)
> that can persuade a
> browser to use a cached version of an GIF/JPG that's used for a roll
Well, thanks to all the advice (and advisors), there are two workable
solutions.
For me, I'm liking the ease of display/maintenance for now. (Just wrap an
around the text and voila! You have a cool hightlighting link.)
However, an arsenal of buttons (and the software to manage it) may be
nec
I agree, and I actually had typed up almost an identical message but
then decided not to send it (for some reason that I don't really recall).
I do think the CSS-only approach is a nobel goal and is moving in the
right direction. A fairly big problem with using CSS nowadays though is
browser a
Robert Hunt wrote:
After some analysis and trial & error, I've found** that the correct JS
syntax in this application is:
{HTMLElement}.style.backgroundImage = 'url( ' + img1.src + ')';
where {HTMLElement} would be "this" as in:
Why are you using background? Why not a regular ima
Well, http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html isn't *that*
hard to find or digest...
- Original Message -
To: [EMAIL PROTECTED]
Sent: Sunday, October 03, 2004 10:38 PM
Subject: RE: Reducing network traffic for rollover images
Thanks for the filter idea Keith. I
Thanks for the filter idea Keith. I'll try it out!
In the "...teach someone to fish and you feed them for a lifetime" spirit of
things, where would one get more information (and hopefully as easily
digestable as your post) about these header names/codes?
Thanks again!
-- RH
: Reducing network traffic for rollover images
Is there a way (as in, response header or other HTTPServletResponse setting)
that can persuade a
browser to use a cached version of an GIF/JPG that's used for a rollover
effect?
I'd like to reduce the network traffic (and perhaps improve the
I really think this is a case where we might be trying to hard to be
innovative... Just do the typical "two versions of an image and some
scripting" approach. Sure, slightly less maintainable, and yes, not
quite as elegant code-wise, but it's a proven method that works across
just about any br
Yep, turns out this is a known issue with IE. I guess that's the reason
CSS-based mouseovers aren't used much more often.
You may want to take a different approach here... Consider doing what is
probably the more common approach, which is to have two versions of your
menu items, a normal state
Robert Hunt wrote:
To clarify:
Watching the Tomcat access log and using permutations of CSS and the
FrankZ/jscript-caching-strategy to achieve the rollover effects, I've found
that the background image is requested:
IExplore 6.0Netscape 7.2
-
To clarify:
Watching the Tomcat access log and using permutations of CSS and the
FrankZ/jscript-caching-strategy to achieve the rollover effects, I've found
that the background image is requested:
IExplore 6.0Netscape 7.2
- -
Message -
From: Robert Hunt
To: [EMAIL PROTECTED]
Sent: Friday, October 01, 2004 6:32 PM
Subject: Re: Reducing network traffic for rollover images
Frank,
Thanks for the code snippet. However, I'm having a bit of trouble mapping
your jscript to the CSS that currently creat
Frank,
Thanks for the code snippet. However, I'm having a bit of trouble mapping
your jscript to
the CSS that currently creates the rollover/hover effect:
a.glink:hover { background-image:
url("../images/glblnav_selected.gif"); }
I've tried several permutations for the anchor that has
The problem is actually in your scripting... The browser should be caching the image
after the first view anyway, but the problem you are referring to is a result of not
pre-loading the images. You do that by the following script when the page loads:
img0 = new Image();
img0.src = "normal_versi
Is there a way (as in, response header or other HTTPServletResponse setting)
that can persuade a
browser to use a cached version of an GIF/JPG that's used for a rollover
effect?
I'd like to reduce the network traffic (and perhaps improve the browser's
"response")
from browsers that attempt to (r
15 matches
Mail list logo