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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.