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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:30

IMAGE menu property - can't get it to work


Poster: tepidarium
Dated: Wednesday May 5 2004 - 20:50:17 BST

Hi All,

I am trying to get the image menu item property to function, but the image is not showing up. the code snippet is:

Code:
with(milonic=new menuname("history")){
style=menuStyle;
aI("text=We Built New York;url=http://library.citytech.cuny.edu/webuiltny/;target=_blank; image=/images/arrow2.gif;");
}


The associated url is:
http://www.citytech.cuny.edu/menutest/menu.html

The image should appear under the following submenu:

About Us> Heratige & History > (image) We Built NY


Any ideas?

Thanks :D


Poster: Ruth
Dated: Thursday May 6 2004 - 6:53:54 BST

Check the path to the image. And, also put a ; after the image code. image=whateverpath/arrow2.gif;");


Poster: tepidarium
Dated: Thursday May 6 2004 - 15:56:56 BST

Ruth wrote:
Check the path to the image. And, also put a ; after the image code. image=whateverpath/arrow2.gif;");


Hi,

The path to the image is correct. I have tried both styles, i.e. "/images/arrow2.gif" and
"http://www.citytech.cuny.edu/images/arrow2.gif"

neither work.

At first I did use the closing ";" but then I went to the main Milonic site and saw that for the image tag, milonic's main site menu does not use the ";" at the end so I took mine out.
My could does not work with the ";" present or absent".

I cannot figure out what is wrong.


Poster: John
Dated: Thursday May 6 2004 - 16:02:06 BST

You've got a space in there after target=_blank;. Drops the rest of the line, so it never read image=. See http://www.west.asu.edu/sa/testsite/cuny/.

For some reason I can't get imagealign=right; to work. I'll leave that up to you for the space thing! :D


Poster: Ruth
Dated: Thursday May 6 2004 - 18:45:32 BST

Unless there has been a change, then the way to get the image to the right of the text is to use html img tags to place the image in the menu item. http://www.milonic.com/forum/viewtopic.php?t=3995 Has more info. I also found that I had to declare an itemwidth when using the html coding in a particular menu or the image wrapped in ie5.5 win98

Ruth


Poster: John
Dated: Thursday May 6 2004 - 19:35:05 BST

Good, Ruth, thanks. I forgot about that little snafu.


Poster: tepidarium
Dated: Thursday May 6 2004 - 22:29:02 BST

I'm going to take a look at this tomorrow. Thanks Ruth& John for your help. I'll report back here :D


Poster: tepidarium
Dated: Friday May 7 2004 - 15:38:19 BST

Ruth wrote:
Unless there has been a change, then the way to get the image to the right of the text is to use html img tags to place the image in the menu item. http://www.milonic.com/forum/viewtopic.php?t=3995 Has more info. I also found that I had to declare an itemwidth when using the html coding in a particular menu or the image wrapped in ie5.5 win98

Ruth


Ruth can you elaoborate on your "itemwidth" statement. Do you mean the width of the image in html in the <img> tag, or do you mean declaring an itemwidth for the menu item?

If it's for the menu item I'm not sure what you mean, can you provide a small code example?

Thank you :D


Poster: Ruth
Dated: Friday May 7 2004 - 17:51:45 BST

It's the menu itemwidth. For example:
Code:
aI("text=<img src=imageName.gif border=0 align=right>Item Text;url=whatever.htm;");
If you just code it that way, the image sits to the right of the text but sits right on top of it, rather than moving to the end of the item, or in some cases it 'wraps'. That's what it does in my ie5.5 and win98. So, adding an itemwidth resolves those issues.
Code:
aI("text=<img src=imageName.gif border=0 align=right>Item Text;url=whatever.htm;itemwidth=150;");
As you see the itemwidth is coding right in that particular aI string, not for the whole menu. Though perhaps if you have itemwidth coded for the menu that would also resolve the issue. I didn't try that. :)

Ruth


Poster: tepidarium
Dated: Friday May 7 2004 - 21:17:56 BST

Ruth wrote:
As you see the itemwidth is coding right in that particular aI string, not for the whole menu. Though perhaps if you have itemwidth coded for the menu that would also resolve the issue. I didn't try that. :)

Ruth



Hi Ruth,

Thanks, I think I understand now...although if one sets the itemwidth at a certain figure, if other items are not as long as this item it will stretch the whole menu, no?

Anyhow, I've implemented the code with the image= option and it's alright. I'm not sure that I need the image on the right but it's good to know how to do it :-)
Thank you!


Poster: Ruth
Dated: Friday May 7 2004 - 21:42:28 BST

If you put the itemwidth in the particular aI string then no, it will only make that item the width listed, and not affect the other items.

Ruth