Javascript Help - Post ID 281458

User 47216 Photo


Registered User
205 posts

Need help with a javascript that I have used on numerous pages but having trouble on a different site (where I used a purchased template with other java scripts on it) The javascript I have used is "image viewer" for opening up photos. Here you can see an example of how it is supposed to work.
http://www.trentonsoftballhalloffame.com/gallery_2018_scholarship_awards_dinner.php

No, when I use the same script and files on my other site it does not work as it is supposed to. In addition the other java scripts on the web page cease working.

Here you can see the page in question without the image viewer javascript so you can see what happens with the 2 menu options at the top right when you mouse over them http://btscf.com/scholarships.php

Now on this page you can see what happens when i put in the image viewer script ...... the script for opening the photo does not work and the mouse over feature for the two menu items (sports program, site navigation) stop working.
http://btscf.com/scholarships2.php

All files for the image viewing script are loaded on the server properly and the coding is placed within the <head> as I have used it successfully on other sites. The code for it can be viewed in lines 55-58

Any help would be appreciated.
User 187934 Photo


Senior Advisor
20,190 posts

Try moving the google jquery script link to the head above all other scripts.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 47216 Photo


Registered User
205 posts

OK I moved that google jquery script up into the head above all the other scripts in the file http://www.btscf.com/scholarships2.php and the function for the photo to open properly now works but it still is disabling the correct java script for expanding the menu on the two items at the top right (sports programs and site navigation) Apparently those two menu items are controlled by that google jquery

User 187934 Photo


Senior Advisor
20,190 posts

You have some other js errors that maybe blocking them from working.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.