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:11
Separating image from text in Collapse Menu
Poster: jeffda
Dated: Thursday March 9 2006 - 22:12:38 GMT
Hello, I'm trying to use a Collapse Menu and I can't seem to find where to separate the left image from the text. Here's a link to what menu I'm trying to use: http://www.milonic.com/treemenu/collapse/
and here's the link to download the script: http://www.milonic.com/treemenu/collapse/collapse.zip
Thanx for any help anyone can give!!
Poster: Migru
Dated: Thursday March 9 2006 - 23:44:14 GMT
Hi,
the menu_data are in that file:
http://www.milonic.com/treemenu/collapse/collapse_data.js
and the "left"image is not really "separated" as you assume.
Look at the aI(".." string:
Code:
aI("text=News;showmenu=News;type=tree;image=blue_blip.gif;overimage=red_blip.gif");
The images are red_blip and blue_blip, both 16px wide by 14px high. And the size (width) controlls what you call separation from the text. The color of those images may be transparent gifs or show any other color.
Hope this helps
Michael
Sorry, I should have specified better...
Poster: jeffda
Dated: Thursday March 9 2006 - 23:46:21 GMT
...I want the text to be a link to a specific page and the image to be the "button" that opens the collapsable menu. Thanx for your input though!
Poster: Migru
Dated: Thursday March 9 2006 - 23:54:47 GMT
Hi
as in any other milonic menu (You may study the samples) in this menu too, links are placed by a url within the aI(".." ; ) ; string. If text is there or not, or image/overimage are placed. You can even show a submenu and at the same time have a link set to a page by a url . For a combination of overimage and image, shaped like a button, just omitt the text and place the images there...whatever you want.
Michael
soo...
Poster: jeffda
Dated: Friday March 10 2006 - 0:18:35 GMT
...you're saying to put an "aI()" for the image, and then one for the text that displays just to the right of the image? If so, I tried that, and it just puts the image in its own space and then the text in its own space right below the image space.
Poster: Migru
Dated: Friday March 10 2006 - 1:02:26 GMT
Hi
it is better you start setting up your file, provide a url of your site or you send your menudata. It seems not to be the right way just to describe, there is too much misunderstanding.........
It depends on what you want, text over an image, then you have to use bgimage and overbgimage and text ; or text next to an image then you use image and overimage and text. Or images without text,just omitt the text, keep images only.
Michael
Poster: jeffda
Dated: Friday March 10 2006 - 23:21:58 GMT
Okay, go to: http://www.milonic.com/treemenu/collapse/
and that's exactly what I'm talking about...when you put your mouse over one of the options there, you'll see that the entire bar (image, text, and just blank space) is all one link. I would like it so that if there is a sub menu for one of the links that the image is what opens the submenu rather than clicking on the text or the blank space to do the exact same thing. (currently you can click either the image, text, or the blank space to open the submenu) I'm just wanting the image ONLY to open the sub menu and then the text ONLY to be a link to another page rather than opening a submenu...but have the option to open the submenu by clicking on the image to the left of the text! Does that make sense!?
Poster: Migru
Dated: Saturday March 11 2006 - 1:01:26 GMT
Hi,
I´m sorry, but even now, don´t understand.
It is not the text, not an image and not blank space or whatever which "is a link".
The menu item is composed by a string, the aI("..." ; ); string.
And in that string you can have e.g.
text,image,arrow,url-link,showsub,backgroundimage,separators,function call etc.,type setting
So it is on YOU to have one of these properties within the item string or a combination of these properties. And it is in no case the "image only" which opens a sub, but the showmenu definition in that string. If you want the bar subdivided into several links, that is not possible with this menu only. (Or is it feasible to have a horizontal menu be part of an item ?? This I don´t know and haven´t thought of it at all!!)
Your question
Quote:
Does that make sense!?
in this regard does not make any sense.
Michael