Popup a Menu on MouseOver of A Image

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dvtusa
Beginner
Beginner
Posts: 2
Joined: Fri Oct 31, 2003 4:23 am

Popup a Menu on MouseOver of A Image

Post by dvtusa » Fri Oct 31, 2003 4:34 am

I've just purchased a license today and follow the instructions but it doesn't work for me. Basically, I want a menu to popup whenever my mouse is moved over an image. I got Object not found when in try to invoke the function popdown() and popup(). A simple example is at

http://www.realtimerealty.net:8080/site ... t/test.jsp

All the JS files are located in the same directory.

Thanks

User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John » Fri Oct 31, 2003 6:19 am

Getting 404s when looking for your Milonic menu files in that directory.

Did you look at http://milonic.com/menusample.php?sampleid=24?
John

User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 » Fri Oct 31, 2003 6:32 am

Hi,

Are you sure the .js files are in the same directory? That's where you're trying to load them form, true. But the page is behaving as if the scripts are not being found. For example, you src a menu_data.js file, but no menu appears. I also can't find any of the three script files manually (404 errors). I'd check that first.

Another thing I notice: In your <img> tag, you have name="Image39" and id="calc", but the sample page uses the same value for both id and name (id="milonicmenu" and name="milonicmenu"). I've had success using just the id in the <img>; don't know if you need to use name as well, but it might be necessary for some cross-browser compatibility. I've also gotten it to work by simply calling the popup() and popdown() functions with the onmouseover and onmouseout events in the <img> tag; that makes more logical sense to me, since the menu opens with respect to the image and not the <a> tag. But both approaches should work.

Hope that helps,

Kevin

dvtusa
Beginner
Beginner
Posts: 2
Joined: Fri Oct 31, 2003 4:23 am

Post by dvtusa » Fri Oct 31, 2003 7:14 pm

The menu_data.js has not been posted due to permission problem. The file is now uploaded. It works !!! Thank you all.

Donald

Post Reply