Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-23-2012, 08:40 PM   PM User | #1
tobydog20
New to the CF scene

 
Join Date: Dec 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
tobydog20 is an unknown quantity at this point
show/hide iframe in css and/or html

Hi all,

I have an existing website, which has gallery/portfolio pages so that when the user hovers over one of the thumbnails to the right, the image is revealed.

I am creating a new page which will also follow the aforementioned gallery format, but instead of larger images, it will show/hide iframes when the user hovers/clicks over the corresponding thumbnails. I don't remember much of the rules of coding, as this was created years ago. I am at a point where I am having trouble doing the following two things:
  1. I would like the larger image to stay revealed when the user not only hovers, but also clicks on the corresponding thumbnail image.
  2. I have managed to figure out how to keep the iframe hidden, but cannot figure out how and where to place the code to reveal the iframe when when the corresponding thumbnail is hovered over and/or active.

Attached is the css stylesheet for the site. And here is some of the applicable code to the new page I am trying to create:

Code:
<div id="container2"> 
<div id="galleries">
  <a class="gallery slideac" href="#nogo"><span><iframe src="siteDiag/index.html" width="700"
		height="550" frameborder="0" style="display:none" name="siteDiagGallery"></iframe></span></a> 
  <a class="gallery slidead" href="#nogo"><span>placeholder<br />photo<br /><img src=
        "placeholder.jpg" alt="placeholder" title="placeholder" /></span></a> 
  <a class="gallery slideae" href="#nogo"><span>placeholder<br />photo<br /><img src=
        "placeholder.jpg" alt="placeholder" title="placeholder" /></span></a> 
  <a class="gallery slideaf" href="#nogo"><span>placeholder<br />photo<br /><img src=
  		"placeholder.jpg" alt="placeholder" title="placeholder" /></span></a> 
  <a class="gallery slideag" href="#nogo"><span>placeholder<br />photo<br/><img src=
  		"placeholder.jpg" alt="placeholder" title="placeholder" /></span></a> 
  <a class="gallery slideah" href="#nogo"><span>placeholder<br />photo<br /><img src=
  		"placeholder.jpg" alt="placeholder" title="placeholder" /></span></a>
  </div>
 </div>
I am using Dreamweaver CS6, a trial version.
Thanks in advance for reading this and for any help
Attached Files
File Type: css Meena Malhotra 2009.css (9.7 KB, 28 views)
tobydog20 is offline   Reply With Quote
Reply

Bookmarks

Tags
css, display, html, iframe, visibility

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 11:03 AM.


Advertisement
Log in to turn off these ads.