Jump to content

Lightbox & <iframe> - Request solution


Quakis

Recommended Posts

I have no clue as to where I could have posted website related issues, please move where it should be.

It's something I've just noticed recently, I'm using the javascript "Lightbox" to load up 800*600 images from a thumbnail, however all my content is set within a small

Is it not possible to force Lightbox to load these images OUTSIDE the

website in question is here; http://qshockwave.planetduke.gamespy.com/gallery/

please note the colour scheme is most likely going to change real soon. :cool:

Link to comment
Share on other sites

or: dont use an iframe!

Obviously, but how the site is currently put together I'd have constantly add any changes to the main page (say adding a new link) then make that same change to the others. With a

there was some invention called PHP or maybe even wordpress :X

Link to comment
Share on other sites

I don't think it's possible for lightbox to ignore the frame it's in, since it's bound to it. You’d have to link the images normally with target="_parent" or target="_top,” which isn’t what you want.

But you can get rid of those iframes without making updating the site unmanageable. I'm pretty sure your server will allow PHP or Server Side Includes, just make a header and footer file that incorperates everything of your design except for the actual page and put those two at the beginning and end of each file.

To use PHP your pages might need to end in .php, depending on the server. The PHP one would just be:


<?php @include("header.php"); ?>


- Page stuff -


<?php @include("footer.php"); ?>

To do it with SHTML (which may need a .shtml extension) use:



- Page stuff -



Link to comment
Share on other sites

there was some invention called PHP or maybe even wordpress :X

Your talking to a guy who still uses the Build Engine. :D Besides, I didn't really want another Wordpress installed on my site since I use one for reviewing map/mods and wanted project related stuff seperate.

But you can get rid of those iframes without making updating the site unmanageable. I'm pretty sure your server will allow PHP or Server Side Includes, just make a header and footer file that incorperates everything of your design except for the actual page and put those two at the beginning and end of each file.

To use PHP your pages might need to end in .php, depending on the server. The PHP one would just be:

The obvious can hurt. This method was a much better approach, everything works the way intended (offline right now) Thanks =x

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...