Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:24

PROBLEM


Poster: cejko1
Dated: Wednesday July 23 2003 - 14:30:30 BST

if I use an image in the head menu :

,"<img src=mail.gif border=0>","info __at__ info.com swapimage=pics/mail_b.gif;offfunction=undefined;",,,0

it opens two blank mail forms instead of one ...


if I replace the image with text, it works fine:

,"mail","info __at__ info.com swapimage=pics/mail_b.gif;offfunction=undefined;",,,0


any idea how to solve this problem ?


Poster: Ruth
Dated: Thursday July 24 2003 - 1:19:44 BST

I'm not very knowledgeable about codes and such, so I'm not sure what you mean by head? Header or just the main menu? Anyway, as I've had nothing to do all day :roll:, I messed with it and tried the code using an image and the swap, it worked fine as long as I took out the part about
offfunction=undefined which kept giving me an error message saying undefined was undefined.....probably because I didn't have whatever in the menu that defined it or something, anyway, without that in the image showed and it swapped and when clicked only gave me one mail form.

putting the image in was with this code img src=whatever.gif border=0 surrounded by the brackets <. of course

Ruth[/code]


Poster: cejko1
Dated: Thursday July 24 2003 - 8:06:26 BST

HI Innkeeper !

I meant the header menu.

Can you try this code?

I realy can't make it work corectly. This problem occur also without the swap function.

I belive that this is a bug.

menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<scr"+"ipt language=JavaScript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/scr"+"ipt>";_d.write(mt)}

if(navigator.appVersion.indexOf("MSIE 6.0")>0){effect = "Fade(duration=0.2);Alpha(style=0,opacity=95);Shadow(color='#777777', Direction=135, Strength=5)"}
else{effect = "Shadow(color='#777777', Direction=135, Strength=5)"}

timegap=500
followspeed=5
followrate=40
suboffset_top=10
suboffset_left=10

menu_header=["ff0000","0","FFFFFF","FFC600","","11","normal","bold","Arial",,"pics/arrow.gif",1,"ffff00","ccffff",,,,"ffffff","000099",,]

addmenu(menu=["menu",
302,6,,0,,menu,1,,,1,,1,,,0,0,,,0,,

//not working
,"<img src=pics/mail.gif border=0>","info __at__ info.com swapimage=pics/mail.gif;",,,0

//not working
,"<img src=pics/mail.gif border=0>","info __at__ info.com",,,0

//working
,"mail","info __at__ info.com swapimage=pics/mail.gif;",,,0
])

dumpmenus();


Poster: Ruth
Dated: Wednesday August 6 2003 - 21:26:13 BST

I put a page up for you to check. I got it to work. Try this and see if that is usuable for you.
http://www.poems2u.com/test/swapimagetest.htm

Ruth