Jump to content

Drop Down Menu Issues


Antec

Recommended Posts

Ok this file is too big to post here so i have had to zip it down and i have attached it...Here is my issue. On lines 557-1816 is the coding in question but the main issue comes from the script on lines 615-907...The issue is this: The script "thumbnailviewer works great as you can see buy following this link: http://tcu.cybersquads.com/index.php?view=Maps ...if you attend that site just choose "Socom: Combined Assault" and in the first table on the left you can click on the "map names" (ie...Citadel) and it will execute the script correctly, but if you choose "Summit" it is supposed to have a drop down menu, and it does (still working on the css) but when you click on one of the links on the drop down menu it should execute the thumbnail viewer to display the image like the links before it, but it does not it just forwards you to the image page...now im not sure how to fix this and any suggestions would be great.

 

Thank You

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/54851-drop-down-menu-issues/
Share on other sites

What happens is the thumb nail library you're using will look at the HTML (not javascript) code when the page loads to assign the onclick events to them. Since your drop down uses JavaScript to generate the links, you'll need to assign the onclick event from the library after the links are generated.

 

Or the easiest way is to create a hidden div with the link inside (as html) and use the javascript to show and hide that div rather than creating the whole thing.

Link to comment
https://forums.phpfreaks.com/topic/54851-drop-down-menu-issues/#findComment-272433
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.