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:26

CLick Bg


Poster: WLQ
Dated: Sunday November 25 2007 - 13:30:15 GMT

clickbgimage='image.format';

There is such function, but I'm kind of using Java navigation and I need so only 1 item can be clicked at one time. I mean if you put this function in the style menu, then you can click on each items and everywhere image will be changed to click image (if you click). But I need so only one can be changed at one time. For example you click on first item image changed, you click on 5 item image changed and image from 1 item changed to a normal. So only one clickbgimage should be alive and all others with a click on other item should get back to a normal bgimage.

Re: CLick Bg


Poster: WLQ
Dated: Monday November 26 2007 - 17:53:38 GMT

is it even possible?

Re: CLick Bg


Poster: Ruth
Dated: Monday November 26 2007 - 19:26:38 GMT

Hi,

Take a look at the links below my name to style, menu and itemproperties. Many of the style properties are also item properties, this means they can be either set in the style section and will apply to all items in all menus that use that style, or they can be put into a single item and would only show for that item. In this instance clickbg is an item property, also, as are clickcolor and other click properties.

Ruth

Re: CLick Bg


Poster: WLQ
Dated: Tuesday November 27 2007 - 16:18:01 GMT

That's not what I ment, each item has to have clickbg function. So when you click on the item click bg function stays on that item, until I click on other item. The Same as in Windows Media Player, when you click on Library, image changes, when you click on Now Playing, item image changes and Library button back to normal.

Re: CLick Bg


Poster: Ruth
Dated: Wednesday November 28 2007 - 4:38:57 GMT

Hi,

Well, I'm not sure what you want. The Windows Media Player action is like a tab menu. There is such a menu available and it acts like that, unless of course you are going to another page, then the menu would be a 'new' menu in the sense that a new page is loaded so the menu is loaded with the page. This is the Amazon Style Tab menu sample when you click an item it opens a submenu and the tab top changes. Is this what you mean? If not, I think you're going to have to give me a sample explaining what you want it to do and I'll see if I can figure out something.

http://www.milonic.com/menusample74.php

Re: CLick Bg


Poster: WLQ
Dated: Friday November 30 2007 - 18:51:44 GMT

Yes this is what I need, but this click function only works if there is a sub menu, can I do so it just works by clicking on it and doesn't matter that there's no sub menu?

Re: CLick Bg


Poster: Ruth
Dated: Friday November 30 2007 - 19:00:08 GMT

Hi,

Please, what is happening when you click on the item? I have to know that to tell you if it will do it. If you are going to a new page, then no, it won't since when you get to the new page the menu is back at the original state. I can't keep guessing what you want. Are you clicking and loading something in a frame, in an iframe, in a div? Then probably yes, it will work, but without something with which to experiment I can't be positive. Please understand, as I have said before, I don't work for milonic, am not a programmer and don't do functions, so what I figure out as to solutions I do by experimentation. Since I am not a programmer and don't know the ins and outs of the menu programming I cannot just say, yes, based on the menu programming you can do a b or c.

Ruth

Re: CLick Bg


Poster: John
Dated: Friday November 30 2007 - 19:24:35 GMT

Ruth is not the only one who does not understand what you're trying to do. :?

Did you try the function she suggested to see if it will work the way you want it to?

You need to provide some type of code that shows what you're trying to accomplish. Right now Ruth has no starting point at all.

Otherwise, if you have a Milonic Pro license or above, please contact Milonic Support directly at http://www.milonic.com/support/.

Re: CLick Bg


Poster: WLQ
Dated: Saturday December 1 2007 - 16:37:56 GMT

Well I need exactly kind of tab menu that is in Windows Media Player. Absolutely the same just when you click on tab menu item there is my ajax function instead of a normal url=. So what I need is the same menu that is in Windows Media Player, no sub menus.

Re: CLick Bg


Poster: Ruth
Dated: Sunday December 2 2007 - 1:01:21 GMT

Hi,

Well, there is no way I can set up a menu that when you click a button that says now playing it will play a video or some music. The menu isn't a 'player'. I could set it up to open a submenu which has a webpage in it with an swf music file on it which would play as long as that particular submenu was open, or I could even put the swf music file in the menu but it would still be a submenu opening though the swf would play. So telling me it needs to be exactly like the windows media player doesn't help since that is a media player and the menu is a navigation system. And, that is where our problem is occuring. The menu will either, open a submenu, go to a webpage, open a file, open a program. It has to open something and I don't know what you want it to do so I can't set some kind of example up for you to look like what you want.

I can for example give you this to test, a swf music file to open with the menu, but you'd need to put a flash music file in changing the swf file name from the comb5.swf to whatever you use and you'd have to change the menuwidht and menu height and whatever other widths and heights I have set to 250 which is what the combo5 is.

Just open the menu_data.js file from the tab sample and paste these two in it to replace the menus that are there and then save it as tab_flash.js. Make sure that the line for the flash does not wrap, it's one long line.


Code:
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
openstyle="tab";
orientation="horizontal";
screenposition="center";
style=menuStyle;
top=10;
align="center";
aI("text=Check Out the Music Section;showmenu=about;openonclick=1;closeonclick=1;keepalive=1;");
}

with(milonic=new menuname("about")){
style=submenuStyle;
menuwidth=260;
menuheight=250;
aI("text=<center><OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 height=250 width=250 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME='movie' VALUE='combo5.swf'><PARAM NAME='quality' VALUE='high'><PARAM NAME='wmode' VALUE='opaque'><embed scr='combo5.swf' quality='high' wmode=transparent pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='250' height='250'></embed></OBJECT></center>;type=html;");
}
drawMenus();


The page is as follows, though you can code the old way if you need to support NS4.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
   <title>Untitled</title>
</head>
<body>
<script type="text/javascript" src="milonic_src.js"></script>   
<script type="text/javascript" src="mmenudom.js"></script>
<script type="text/javascript" src="tab_flash.js"></script>   
</body>
</html>


As you can see it still opens a submenu, it just happens to be the flash object that opens and plays, but it's not the menu that is playing it, it is the flash player on my computer. So, that gives you a sample of 'not' opening a submenu, though it really is a submenu.

There is an ajax menu in your download in the extras folder. You keep mentioning ajax so I thought I'd mention it. I guess since I have no idea what it is you want to do, what you want to happen when you click your tab you'll have to contact Milonic. Perhpas they can figure it out for you.

Ruth

Re: CLick Bg


Poster: WLQ
Dated: Monday December 3 2007 - 8:29:01 GMT

That's right but that is not exactly what I wanted. I just need a Windows Media Player menu. Nothing else. So what I need is a menu that has rollover function and click function that is only alive one time. Like in tab menu. About the music and anything else, everything will be opened in a frame, the best part of it you don't have to do it. I'm asking to do just a WMP menu, don't spend time on making screen shots just put any picture you want. I could do it myself but I don't understand how. The tab menu is what I need but when you erase sub menus (I don't need sub menus) then the click function disabled, and I need it.

So only the menu. When I move my mouse over any items in the menu, image automatically changes to "rollover function". When I click on any items image changes to image in "click function" and a simple url= function goes. When I click on other item the same there, but previous item changes to normal picture. Something about forget click value.

Don't spend time on making url= because I allredy have it.

Here is the menu code:

Code:
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;


forgetClickValue="true";


with(menuStyle=new mm_style()){
bgimage="images/button.jpg";
fontfamily="Verdana, Tahoma, Arial";
fontsize="65%";
fontstyle="normal";
fontweight="bold";
itemheight=26;
itemwidth=79;
offcolor="#000000";
oncolor="#000000";
openonclick=1;
subimagepadding=2;
itemheight=32;
itemwidth=103;
overbgimage="images/button_over.jpg";
clickbgimage="images/button_push.jpg";
}

with(submenuStyle=new mm_style()){
styleid=1;
align="center";
bgimage="/menuimages/tab_subback.gif";
fontfamily="Verdana, Tahoma, Arial";
fontsize="65%";
fontstyle="normal";
fontweight="bold";
itemheight=29;
offbgcolor="#006699";
offcolor="#ffffff";
oncolor="#ffffff";
ondecoration="underline";
openonclick=1;
padding=6;
separatorimage="/menuimages/tab_subback_sep.gif";
separatorsize=3;
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
openstyle="tab";
orientation="horizontal";
screenposition="center";
style=menuStyle;
top=190;
aI("align=center;keepalive=1;text=MILONIC;");
aI("align=center;keepalive=1;text=PARTNERS;");
aI("align=center;keepalive=1;text=LINKS;");
aI("align=center;keepalive=1;text=MYMILONIC;");
}


drawMenus();


No url= now we don't need it yet. As you cn see the click function doesn't work when there is no sub menus.