That bit about enable in menu_com.js is only an instruction for those folks that want to try to use this feature in Netscape version 4. You do not need to worry about it. Now, let's get back to exmplmenu_var.js and using background images. It is simpler than you are making it out to be. Here is an example menu entry without the background image:
Code:
Menu2_1=new Array("General","blank.htm","",5,20,150);
and here is the same one with a background image:
Code:
Menu2_1=new Array("General","blank.htm","some.gif",5,20,150);
The image must be in the same directory as exmplmenu_var.js or use an absolute path, like:
Code:
Menu2_1=new Array("General","blank.htm","http://www.somewhere.com/images/some.gif",5,20,150);
If you want the same background image for all the menu items and don't want to spend the time editing each entry, then you can open up menu_com.js and go to line #395:
Code:
if(eval(WhatMenu+'[2]'))this.style.backgroundImage="url(\'"+eval(WhatMenu+'[2]')+"\')";
Change it to something like this:
Code:
this.style.backgroundImage="url(\'some.gif\')";
Bookmarks