Picture Gallery
22 posts by 8 authors in: Forums > CMS Builder
Last Post: November 9, 2012 (RSS)
Hi Greg
The script works fine on it's own, but as soon as I plug it into a layout with other code, it gets stuff up.
Two problems. Because I am using a include_header.php, I need to add the script in the header which is then more intensive for all pages (unless it doesn't matter??)
But when I get to the page itself, it's hiding behind - see http://owow1356.staging-cloud.netregistry.net/gallerynew.php
Any other suggestions?
Thanks
Carole
The script works fine on it's own, but as soon as I plug it into a layout with other code, it gets stuff up.
Two problems. Because I am using a include_header.php, I need to add the script in the header which is then more intensive for all pages (unless it doesn't matter??)
But when I get to the page itself, it's hiding behind - see http://owow1356.staging-cloud.netregistry.net/gallerynew.php
Any other suggestions?
Thanks
Carole
Re: [degreesnorth] Picture Gallery
It won't make that much difference to the speed of the page if the code is in the header for all pages, as the click event could never been run unless . When I want to only show something on a specific page that has to be in a include header, I do this:
In the Gallery file:
include_header.php file:
Could you give me a bit more clarification on the second point?
Thanks
In the Gallery file:
$isGalleryPage = true;
include('include_header.php');
include_header.php file:
<?php if(@$isGalleryPage ): ?>
<!-- Code to only appear on gallery page goes here -->
<?php endif; ?>
Could you give me a bit more clarification on the second point?
Thanks
Greg Thomas
PHP Programmer - interactivetools.com
PHP Programmer - interactivetools.com