Click here to get back home

client-side image size changing question

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
client-side image size changing question Michael Eisenstadt 06-22-2005
Posted by Michael Eisenstadt on June 22, 2005, 6:26 am
Please log in for more thread options


What are the coding options for client-side image size changing?
I want the viewer to be able to switch between two different sizes
of the same image with his/her mouse.

Thanks in advance for your help.

Michael Eisenstadt



Posted by C A Upsdell on June 22, 2005, 9:48 am
Please log in for more thread options


Michael Eisenstadt wrote:
> What are the coding options for client-side image size changing?
> I want the viewer to be able to switch between two different sizes
> of the same image with his/her mouse.

Consider making the images background images, which would enable you to
switch them using CSS. Normally one background image would appear (no
hover, with smaller image size), but hovering the cursor over the image
would change the background image to the other image (hover, with larger
image size).


Posted by David Dorward on June 22, 2005, 7:55 pm
Please log in for more thread options


C A Upsdell wrote:

> Consider making the images background images, which would enable you to
> switch them using CSS.

Don't do this if they are content. You can't write a graceful fallback, and
background images are not generally printed.


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

Posted by Andy Dingley on June 22, 2005, 12:56 pm
Please log in for more thread options


On Wed, 22 Jun 2005 05:26:17 -0500, "Michael Eisenstadt"

>What are the coding options for client-side image size changing?

Flip the src attribute to select between two images taken from the
server (simple menu rollover code can be adapted to do this). Assuming
you know the two sizes already, this gives a much better visual result
than client-side resizing. Browsers aren't bitmap editors and their
resizing algorithms are often pretty crude.

--
Cats have nine lives, which is why they rarely post to Usenet.

Similar ThreadsPosted
Another question on changing 2 frames November 16, 2004, 7:42 am
fixed image size February 12, 2007, 1:53 pm
Display larger size image August 6, 2004, 11:56 pm
Restricting inline image size March 29, 2005, 6:56 pm
Re: Restricting inline image size March 29, 2005, 9:24 pm
Re: Restricting inline image size March 30, 2005, 2:07 am
Fieldset size question? February 27, 2007, 2:13 pm
Question re May 2, 2007, 7:13 pm
Question of font size change May 5, 2005, 10:08 pm
Newby image/ text wrap question December 18, 2006, 4:46 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap