Reply
Iframe Interferes with Lightbox Image
Old 05-07-2008, 06:05 PM Iframe Interferes with Lightbox Image
Novice Talker

Posts: 6
My site: www.1904ryderz.com

On the right side, under 'The Crew', click on "Nino". When you click on the image, the lightbox opens up within the frame. It suppose to open regularly to view the entire image. How can I fix this?

This is the iframe script I used:

http://www.dynamicdrive.com/dynamici...ramescroll.htm

This is the lightbox script I used:

http://www.dynamicdrive.com/dynamicindex4/lightbox2/

If you need any other information, I'll provide ASAP.


Thanks!
Dante
dbirosel is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Old 05-07-2008, 07:00 PM Re: Iframe Interferes with Lightbox Image
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Welcome to Van SEO Design
Posts: 8,103
Name: Steven Bradley
Location: Boulder, Colorado
Lightbox is opening the larger image on the same page where the thumbnail exists and in this case that's inside the iframe. Lightbox is doing exactly what it should be doing.

You'll either need to recode "The Crew" so it's not using an iframe or modify the lightbox script to open the image in the parent window instead of the iframe.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-07-2008, 07:03 PM Re: Iframe Interferes with Lightbox Image
Novice Talker

Posts: 6
Quote:
Originally Posted by vangogh View Post
Lightbox is opening the larger image on the same page where the thumbnail exists and in this case that's inside the iframe. Lightbox is doing exactly what it should be doing.

You'll either need to recode "The Crew" so it's not using an iframe or modify the lightbox script to open the image in the parent window instead of the iframe.
Thank you for the response. Yes, lightbox is doing what it suppose to, but is there a way around it? How do I modify the lightbox script to open the image in the parent window instead of the iframe?

or

On my site, looking at the "The Crew" section, it's pretty obvious on what I am trying to accomplish. Am I doing it the hard way? Is there a better and more easier way of organizing it?


Thanks!!
dbirosel is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 07:29 PM Re: Iframe Interferes with Lightbox Image
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Welcome to Van SEO Design
Posts: 8,103
Name: Steven Bradley
Location: Boulder, Colorado
If it were me I wouldn't use the iframe for "The Crew" section. You should be able to have essentially the same functionality by using a div and then making use of the overflow property in your css file. The default will give you a scrollbar instead of the up/down links, but the script controlling the scroll should be able to be modified to work with overflow instead of the iframe.

It might be easy to change the lightbox script to open in the parent frame instead of the iframe, but I couldn't say for certain. It's a big script and I'm not familiar enough with its inner workings to tell you specifically what to change. However if you later changed to a different version of lightbox you'd need to change the new version too, which is one reason I think it better not to use the iframe.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to Iframe Interferes with Lightbox Image
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.14448 seconds with 15 queries