HighDots Forums  

CSS hover technique to display pictures

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss CSS hover technique to display pictures in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
TomB
 
Posts: n/a

Default CSS hover technique to display pictures - 09-10-2006 , 07:54 AM






I came up with this idea to show the larger picture of a thumbnail by
hiding it with css and "unhide" it when one hovers over the thumbnail.
I think it looks pretty nifty, but the problem with this technique is
that you force the visitor to download all the large pictures too when
they open the thumbnails page. Is there any way to avoid this without
using javascript?

This is the page:
http://deimos.curious.be/~dusk/media...c#picturestart


Reply With Quote
  #2  
Old   
Brendan Gillatt
 
Posts: n/a

Default Re: CSS hover technique to display pictures - 09-10-2006 , 02:28 PM






TomB wrote:
Quote:
I came up with this idea to show the larger picture of a thumbnail by
hiding it with css and "unhide" it when one hovers over the thumbnail.
I think it looks pretty nifty, but the problem with this technique is
that you force the visitor to download all the large pictures too when
they open the thumbnails page. Is there any way to avoid this without
using javascript?

This is the page:
http://deimos.curious.be/~dusk/media...c#picturestart

Have a look at http://www.cssplay.co.uk/menu/index.html and see some of
his gallery examples - they rock!


Reply With Quote
  #3  
Old   
Stephen Poley
 
Posts: n/a

Default Re: CSS hover technique to display pictures - 09-10-2006 , 03:58 PM



On Sun, 10 Sep 2006 19:28:31 +0100, Brendan Gillatt
<brendan (AT) brendanREMOVETHISgillatt (DOT) co.uk> wrote:

Quote:
TomB wrote:
I came up with this idea to show the larger picture of a thumbnail by
hiding it with css and "unhide" it when one hovers over the thumbnail.
I think it looks pretty nifty, but the problem with this technique is
that you force the visitor to download all the large pictures too when
they open the thumbnails page. Is there any way to avoid this without
using javascript?

This is the page:
http://deimos.curious.be/~dusk/media...c#picturestart


Have a look at http://www.cssplay.co.uk/menu/index.html and see some of
his gallery examples - they rock!
Well, they're entertaining enough, but unless I am mistaken they don't
address the problem that TomB gave. And I think the answer to TomB's
question is that you do indeed need script to handle this well (though
it should be fairly straightforward to provide graceful degradation for
visitors without script).

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
  #4  
Old   
Gus Richter
 
Posts: n/a

Default Re: CSS hover technique to display pictures - 09-10-2006 , 04:58 PM



TomB wrote:
Quote:
I came up with this idea to show the larger picture of a thumbnail by
hiding it with css and "unhide" it when one hovers over the thumbnail.
I think it looks pretty nifty, but the problem with this technique is
that you force the visitor to download all the large pictures too when
they open the thumbnails page. Is there any way to avoid this without
using javascript?
Specify the _same_ image with a different width (or height) as from its
inherent dimensions (in your case).

--
Gus


Reply With Quote
  #5  
Old   
Stan McCann
 
Posts: n/a

Default Re: CSS hover technique to display pictures - 09-11-2006 , 05:11 PM



Stephen Poley <sbpoleySpicedHamTrap (AT) xs4all (DOT) nl> wrote in
news9r8g2l4vnc1gaaq1bg6p8h5njpmaetc1s (AT) 4ax (DOT) com:

Quote:
On Sun, 10 Sep 2006 19:28:31 +0100, Brendan Gillatt
brendan (AT) brendanREMOVETHISgillatt (DOT) co.uk> wrote:

TomB wrote:
I came up with this idea to show the larger picture of a thumbnail
by hiding it with css and "unhide" it when one hovers over the
thumbnail. I think it looks pretty nifty, but the problem with
this technique is that you force the visitor to download all the
large pictures too when they open the thumbnails page. Is there
any way to avoid this without using javascript?

This is the page:
http://deimos.curious.be/~dusk/media...c#picturestart


Have a look at http://www.cssplay.co.uk/menu/index.html and see some
of his gallery examples - they rock!

Well, they're entertaining enough, but unless I am mistaken they
don't address the problem that TomB gave. And I think the answer to
TomB's question is that you do indeed need script to handle this
well (though it should be fairly straightforward to provide graceful
degradation for visitors without script).

I just browsed the site mentioned above and find "entertaining enough"
quite an understatement. They don't address the OP's problem, I agree,
but there are some mighty fine looking (although, I admit I looked at
no code) solutions to many difficult to achieve effects. Thank you,
Brendan, for the link. I agree with you, those pages rock.

As far as TomB's problem, I'd like to know that too, but I also agree
that it will probably require some scripting.

--
Stan McCann, RETIRED!!, "Uncle Pirate" http://stanmccann.us/
Implementing negative score for googlegroup postings, see
http://blinkynet.net/comp/uip5.html
A zest for living must include a willingness to die. - R.A. Heinlein


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.