Java newbie needs help please

This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.


Thread Starter
Nov 28, 2001
I have a web site, designed by a company that no longer exists, which has a java menu on its page2. I used FTP to download all the pages to my hard drive, and the entire website works great here. I changed web hosts, so uploaded all files to the new host (SBC) with *no changes* to any files. On the new site at SBC, the java powered drop down menu does not appear at all, just a big empty area where you're supposed to see the choices. I have verified several times that all files transferred. SBC wants all files in /webroot directory, but I also had to put them in the main directory for the pics to show up. I am a novice to JAVA, so I didn't know how to change the code to look in the /webroot directory, so putting second copies of all files was just easier for me. I am thinking the JAVA menu may be a similar thing, where I just need it in another directory, but I don't know what directory its looking for. Any help out there?
May 28, 2003
I'm no expert either but could you post the URL of the page in question so that the source code can be viewed? Someone here is more likely to identify what the issue could be.
Apr 14, 2001
The problem lay in this area at the bottom of your webpage:
<!-- ******** BEGIN ALLWEBMENUS CODE FOR almenu ******** --><img SRC="menupath.gif" NAME="awmMenuPathImg-almenu" ALT="" id="awmMenuPathImg-almenu" width="1" height="1" ><script type='text/javascript'>var MenuLinkedBy='AllWebMenus [2]', awmBN='456'; awmAltUrl='';</script>

<script src='almenu.js' language='JavaScript1.2' type='text/javascript'></script>

<script type='text/javascript'>awmBuildMenu();</script>

<!-- ******** END ALLWEBMENUS CODE FOR almenu ******** -->

lets make sure that you have in your root folder the image named:
if not add the relative location to the image. (eg images/menupath.gif)

In your webfiles and folders look for the external script 'almenu.js' and ensure again that you have the correct relative path to it in the code above. If there is no file called almenu.js in the root directory, then you need to place it there, or change the path of the script above.

try moving that entire code between your <head> </head> tags and see if the script loads.


Thread Starter
Nov 28, 2001
Sequal7- thanks for the reply. The files menupath.gif and almenu.js are both in the root directory. So I moved the code to between the <head> </head> tags. But cascade menu is still not there. Here is the code for almenu.js, does that help?

//----------DHTML Menu Created using AllWebMenus ver 2.0-#456---------------
var awmMenuName='almenu';
var awmLibraryPath='/./';
var awmImagesPath='/./';
var awmSupported=(navigator.appName + navigator.appVersion.substring(0,1)=="Netscape5" || document.all || document.layers)?1:0;
if (awmAltUrl!='' && !awmSupported) window.location.replace(awmAltUrl);
if (awmSupported){
var awmMenuPath;
if (document.all) mpi=document.all['awmMenuPathImg-almenu'].src;
if (document.layers) mpi=document.images['awmMenuPathImg-almenu'].src;
if (navigator.appName + navigator.appVersion.substring(0,1)=="Netscape5") mpi=document.getElementById('awmMenuPathImg-almenu').src;
var nua=navigator.userAgent,scriptNo=(nua.indexOf('Gecko')>-1)?2:((document.layers)?3:((nua.indexOf('Opera')>-1)?4:((nua.indexOf('Mac')>-1)?5:1)));
document.write("<SCRIPT SRC='"+awmMenuPath+awmLibraryPath+"/awmlib"+scriptNo+".js'><\/SCRIPT>");
var n=null;

var awmSubmenusFrame='';
var awmSubmenusFrameOffset;
var awmOptimize=0;
function awmBuildMenu(){
if (awmSupported){
awmCreateCSS(1,2,1,'#FFFFFF','#FFFFFF',n,'4mm sans-serif',n,'none',2,n,0,4)
awmCreateCSS(1,2,1,'#000000',n,n,'4mm sans-serif',n,'none',1,n,0,1)
awmCreateCSS(0,2,1,'#FFFFFF','#000080',n,'4mm sans-serif',n,'none',1,n,0,1)
awmCreateCSS(0,2,1,'#FFFFFF','#408080',n,'4mm sans-serif',n,'none',1,n,0,1)
awmCreateCSS(0,2,1,'#FFFFFF',n,n,'4mm sans-serif',n,'none',1,n,0,1)
awmCreateCSS(1,2,1,'#FFFFFF','#FFFFFF',n,'4mm sans-serif',n,'none',2,n,0,0)
awmCreateCSS(1,2,0,'#0000A0',n,n,'3mm Arial',n,'none',1,n,1,1)
awmCreateCSS(0,2,0,'#0000A0','#CFCFCF',n,'bold 3mm Arial',n,'none',1,n,1,1)
var s0=awmCreateMenu(0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,n,"",n,1,0,1,0,n,n);
var s1=it.addSubmenu(0,0,-30,2,0,0,1,7,6,n,"",n,1,0,1,0,n,n);
it=s1.addItem(8,9,9,"&nbsp Alpha-Lift",n,n,"","",n,n,n,"allift.htm",n);
it=s1.addItem(8,9,9,"&nbsp Alpha-Perm",n,n,"","",n,n,n,"alperm.htm",n);
it=s1.addItem(8,9,9,"&nbsp Alpha-Mill",n,n,"","",n,n,n,"almill.htm",n);
it=s1.addItem(8,9,9,"&nbsp Alpha-Mill 1-2-3",n,n,"","",n,n,n,"alpha123.htm",n);
it=s1.addItem(8,9,9,"&nbsp Alpha-Power Mill &nbsp",n,n,"","",n,n,n,"powmill.htm",n);
it=s1.addItem(8,9,9,"&nbsp Alpha-Grind",n,n,"","",n,n,n,"algrind.htm",n);
it=s1.addItem(8,9,9,"&nbsp Alpha-Turn",n,n,"","",n,n,n,"alturn.htm",n);
it=s0.addItemWithImages(2,5,5,"","","","",8,9,9,0,0,0,n,n,n,"",n,n,n,"mailto:[email protected]",n);;
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online