Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Alright this question is pretty complicated to explain, so please bear with me.

I'm using a jquery slider on my portfolio site to display my work. I've implemented a lightbox (I used this tutorial) because I'd like the user to be able to click on any image in the slider and then be presented with a lightbox gallery.

I've implemented the following code and it is working in IE, but it's not working in Chrome/FF. When you click on a portfolio project on my site you should be able to click on any of the images in the slider, however this functionality only works in IE.

<a href="<?php echo '' . $image_details[0]; ?>" rel="portfolio-gallery">
<img width="<?php echo $desired_width; ?>" height="<?php echo $desired_height; ?>" class="slider-img" src="<?php echo get_template_directory_uri() . '/timthumb.php?src=' . $image_details[0]; ?>&amp;h=<?php echo $desired_height; ?>&amp;w=<?php echo $desired_width; ?>&amp;q=90" alt="<?php the_title(); ?>" />
</a>                                                          
<?php } else { ?>                                                           
<a href="<?php echo '' . $image_details[0]; ?>" rel="portfolio-gallery">
<img width="<?php echo $image_full_width; ?>" height="<?php echo $image_full_height; ?>" class="slider-img" src="<?php echo $portfolio_img_url; ?>" alt="<?php the_title(); ?>" />
</a>

I've narrowed the cause down to the way that the browser is interpreting the initial portfolio links - IE actually navigates to another page while Chrome/FF load the portfolio link in the same page for some reason. For example, clicking on the first project does not navigate away from the homepage in Chrome/FF, it stays on this URL:

http://www.siteurl.com/wordpressdirectory/

Here is how it shows up in IE:

http://www.siteurl.com/wordpressdirectory/?portfolio=project-name-is-inserted-here

Edit: probably should have mentioned I'm using IE8 (8.0.7600.16385), Chrome 24 (24.0.1312.52m) and FF 18 (18.0.1).

share|improve this question
The web developer's mantra: "If it works in IE, but not the other browsers, your code is wrong." Never, ever use IE as a reference for how things should work. – Rob Jan 22 at 3:49

closed as off topic by John Conde Jan 21 at 23:44

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

Browse other questions tagged or ask your own question.