mailto: PROBLEM

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
cejko1
Beginner
Beginner
Posts: 6
Joined: Thu Sep 05, 2002 3:16 pm

mailto: PROBLEM

Post by cejko1 »

if I use an image in the head menu :

,"<img src=mail.gif border=0>","mailto:info@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","mailto:info@info.com swapimage=pics/mail_b.gif;offfunction=undefined;",,,0


any idea how to solve this problem ?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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]
cejko1
Beginner
Beginner
Posts: 6
Joined: Thu Sep 05, 2002 3:16 pm

Post by cejko1 »

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>","mailto:info@info.com swapimage=pics/mail.gif;",,,0

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

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

dumpmenus();
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Post Reply