View Full Version : Having trouble with java pop up menus
bnoon
06-05-2002, 08:20 PM
I'm having trouble getting a Fireworks generated hot spot menu to come up on my image that's on my page located here: http://www.bnmotorsports.com/contourparts.htm
The image works fine when I preview it in my Fireworks browser IE5 which is what I view the web in as well. When I preview it, the thing works. When I export it into Dreamweaver or to the web, it doesn't have the pop up menu. Can you guys give me any ideas? Getting frustrated over this one... TIA
P.S. Forgot to mention, the hot spots are working fine, only the pop up menus are missing once out of Fireworks... Thanks again.
Dr. Web
06-05-2002, 09:18 PM
well, then menu script doesn;'t load without errors. I get menu is undefined before the page is loaded completely. Did you get all the script over?
bnoon
06-05-2002, 09:26 PM
I'm pretty sure I did. Here's what I did in Fireworks and exported to a file on my C drive. In Dreamweaver, I then inserted an interactive fireworks image, named silvie3.htm which I now uploaded here http://www.bnmotorsports.com/silvie3.htm for you to look at. There's got to be some file I've missed between the two... Either that or I need to download a hidden "silvie3.htm files" folder or script or something...
Once it's inserted as an interactive image I don't need to load the silvie.htm to the net, right? Since the source code is pulled into the contourparts.htm once the image is inserted, I would think not, but I've been wrong before.
I've pulled my hair out enough tonight, I'll hit it again tomorrow some I hope. Thanks again for looking! ;)
bnoon
06-05-2002, 09:28 PM
I just looked at the silvie3.htm I loaded. It doesn't work either... time to search for the ".js" menu file I guess...
jonirvine
06-06-2002, 05:44 PM
Hi bnoon,
I think these should answer your problems.
1) http://www.bnmotorsports.com/contourparts.htm
The problem on this page is that you are missing two lines within the HTML. (This is why web designers should learn HTML rather than export/import..... it's easy!)
This line goes inbetween the <head> and </head> tags.
<script language="JavaScript1.2" src="fw_menu.js"></script>
And this one directly below needs to go directly below the <body> tag.
<script language="JavaScript1.2">fwLoadMenus();</script>
2) http://www.bnmotorsports.com/silvie3.htm
Now on this page you'll notice that the above 2 lines are included within the HTML, but my guess would be that you haven't uploaded the required js file (fw_menu.js) to the web server. (It's not a guess anymore - I checked and the file is missing).
The reason it wont work without this file is because fw_menu.js is the javascript file created by Fireworks that is needed to make your menus work. In the directory that you exported the page (from fireworks) you will find this file. Upload it to the root of the web server and you will see what I mean....silvie3.html should then work?
Hope you understand all this, if not send me an email and I'll gladly fix it for you.
Jon
bnoon
06-07-2002, 10:23 AM
Thanks Jon, that's the path I was on. In the first section, I had deleted and reinserted the script so many times I accidently deleted the section of code you listed. When I noticed the .js file was needed was when I uploaded the second htm file listed that had worked in preview browser mode. Thanks for confirming my thoughts. ;)
I have the basics on HTML, but am still learning the world of java one piece at a time. Since I created the picture html in Fireworks, I simply missed the portion of script requiring the .js file which is still on my home PC somewhere. The hardest part for me right now is to get the stupid coordinates right for the menus to line up correctly in the final HTML coding. That's why the js file is still not loaded...
Thanks again for the help! :D
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.