HighDots Forums  

showing/hiding content question

alt.html.dhtml alt.html.dhtml


Discuss showing/hiding content question in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
engwar1@yahoo.com
 
Posts: n/a

Default showing/hiding content question - 12-19-2004 , 04:38 PM






I want to put together a feature where, when a user clicks on a 'next'
link an area containing an image and some copy will be replaced with a
new image and new copy, rather like a slideshow with an image and a
caption.

Quote:
From doing a little research I understand that this can be done using
either Javascript (layers) or CSS. I'm trying to determine which was is
best for what I want. Here is what I would like to include...

+ The various sizes of the image and the length of the copy will differ
so any content below this slideshow needs to be 'bumped down' if
necessary.

+ I would prefer to do this totally client-side so as not to have to
refresh the entire web page each time they click 'next'.

+ I would like this to support multiple browsers.

Any input on which technology, JS or CSS, would work best keeping in
mind my requirements?

Any good, straightforward examples of your recommendations?
Thanks in advance.



Reply With Quote
  #2  
Old   
Randy Webb
 
Posts: n/a

Default Re: showing/hiding content question - 12-19-2004 , 07:47 PM






engwar1 (AT) yahoo (DOT) com wrote:

Quote:
I want to put together a feature where, when a user clicks on a 'next'
link an area containing an image and some copy will be replaced with a
new image and new copy, rather like a slideshow with an image and a
caption.

From doing a little research I understand that this can be done using
either Javascript (layers) or CSS. I'm trying to determine which was is
best for what I want. Here is what I would like to include...

+ The various sizes of the image and the length of the copy will differ
so any content below this slideshow needs to be 'bumped down' if
necessary.

+ I would prefer to do this totally client-side so as not to have to
refresh the entire web page each time they click 'next'.

+ I would like this to support multiple browsers.

Any input on which technology, JS or CSS, would work best keeping in
mind my requirements?
The simplest is to use an IFrame and include the "next" button in the
IFrame. Of course, you can use Scripting to do what you are describing
(CSS can't do it).

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq


Reply With Quote
  #3  
Old   
engwar1@yahoo.com
 
Posts: n/a

Default Re: showing/hiding content question - 12-19-2004 , 08:52 PM



I'm not too familiar with IFrames but I think I have a general idea of
how they work. Since my content will range in size it seems that I
wouldn't be able to avoid a scroll bar with an IFrame.

I do think this is possible with CSS, though. The following link shows
how someone shows/hides a graphic using only CSS and no JavaScript. Of
course I want to show/hide both text and graphic so I don't know if
what he's doing will get me where I want to go. He shows how to
hide/show text using CSS on another page but I think it's fairly
different from how he does the images.

http://www.meyerweb.com/eric/css/edge/popups/demo2.html
Thanks for the iFrame comment. I'll keep that in mind.


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.