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

topbarimage missing in source code


Poster: mivilleb
Dated: Wednesday June 25 2003 - 19:07:16 BST

Hi,

Here is a possible bug.

I downloaded version 4.0 Beta 1.12 and in the function mm_style you are collecting the value of subimage but not the value of topbarimage. The top bar image value is given the same value as subimage in your source code.

I was using the horizontal_data.js file where topbarimage is given a value arrow_down.gif (which does not exists by the way in your images directory, it should be arrowdn.gif) but the value is not used in your source code.

http://www.milonic.com/4beta/horizontal.htm

Thanks,

Bernard


Poster: Andy
Dated: Friday June 27 2003 - 12:19:47 BST

This is something we have changed.

What you can do now is create copies of styles, change just 1 property and then this becomes a completely different style.

Here's the code.

Code:
with(vertStyle=new mm_style()){
     onbgcolor = "#ffffcc";
       oncolor = "#000000";
    offbgcolor = "#7799ff";
      offcolor = "#00008b";
   bordercolor = "#000000";
   borderstyle = "solid";
      subimage = "images/arrow.gif";       
}

horizStyle=new copyOf(vertStyle)
horizStyle.subimage="images/3darrow.gif";
horizStyle.onsubimage="images/3darrow_down.gif";


What this does is create 2 styles. I know it's more code and probably not as simple as before but it is so much more felxible.

Cheers
Andy


Poster: Romeo
Dated: Wednesday July 2 2003 - 8:45:13 BST

Hi Andy
Where do you place :

horizStyle=new copyOf(vertStyle)
horizStyle.subimage="images/arrowdn.gif";
horizStyle.onsubimage="images/downarrow.gif";

and do I need to rem out the standard syntax as below ?

//topbarimage = "images/arrowdn.gif";
//topbarimageloc = "right"
//subimage = "images/arrow.gif";
//subimageloc = "center;middle"

As I am still only showing one arrow regardless of what level you view.


Poster: Andy
Dated: Wednesday July 2 2003 - 10:45:14 BST

If anything is rem'ed out in the data file it's not needed so can be deleted.

I'll get a demo of top bar image posted to the beta hopefully later today.

Cheers
Andy


Poster: John
Dated: Wednesday July 2 2003 - 15:22:17 BST

Very cool code, Andy. Now we really need those docs!