Home › Forums › JavaScript › thumbnails won't enlarge in same window › Reply To: thumbnails won't enlarge in same window
January 6, 2015 at 2:10 pm
#192425
Participant
You’re right, my mistake.
First thing to do, make sure you only load ONE jQuery library.
Second, make sure that your script comes AFTER loading your jQuery library.
Maybe that helps.
It’s also possible that all the extensions in your code are all caps:
<a href="gallery/amberhall.JPG" alt="garage"><img src="gallery/amberhall.JPG" alt="garage"></a>
But in your script they’re lower caps:
var imageLinks = $('a[href$=".png"], a[href$=".jpg"], a[href$=".gif"], a[href$=".bmp"]');
So try to change it in your script to this:
var imageLinks = $('a[href$=".PNG"], a[href$=".JPG"], a[href$=".GIF"], a[href$=".BMP"]');