I'm creating what should be a very simple popup menu script for a client, using a visibility switch on an existing div and writing the content to the div from a selected string, so the client can enter menu parameters easily. The menus are generating and positioning correctly, but the links generated aren't functioning properly. More details on what it's doing below.

There are 2 problems actually occurring. The links in the menus don't operate as they should, although I've used the document.write you can see commented out to validate the HTML code in the menus and it's fine. Clicking on a link, however, only flashes the link in the status bar and doesn't go anywhere. Oddly enough, right-clicking on a link and selecting the options from the menu does work.

The second problem is that the mouseout from a menu should hide the menu and perform an image swap, which works correctly on the page menus, but not on the generated menus.

The test page for this is online at http://patientpal.com/test.htm and only the HEAD and NECK menus are active at this time. Note that the menus and image rollover effects work from both the sidebar menu and the illustration.

I'm a PHP and Perl programer, with a little bit of JavaScript exeperience, so I'm probably missing something obvious here. Any help will be greatly appreciated.

Thanks,
Doc

subhailc

01-28-2006, 09:06 AM

why do you have an onclick with location and an href? why not just the href?

doccee

01-28-2006, 09:19 AM

The onClick was added to see if it would work while the href wasn't. It does the same thing without it.