JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Advance Borders

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
Tyronne



Joined: 02 Feb 2006
Posts: 2

PostPosted: Fri Feb 03, 2006 1:51 pm    Post subject: Advance Borders Reply with quote

Hi!

I have the pro version and have recently updated to the last version.

I want to use Advance borders but i cant get it to work. Here is the code:

Code:

BLANK_IMAGE = 'Menu/images/b.gif';

var STYLE = {border:0,shadow:0,color:{border:'#666666',shadow:'#DBD8D1',bgON:'#CCCCCC',bgOVER:'#CCCCCC'},css:{ON:'clsCMOn',OVER:'clsCMOver'}};
var STYLE_V_FIRST = { border:1, borders:[1,1,1,0], shadow:0, color:color2, css:css };
var STYLE_V_MIDDLE = { border:1, borders:[1,0,1,0], shadow:0, color:color2, css:css };
var STYLE_V_LAST = { border:1, borders:[1,0,1,1], shadow:0, color:color2, css:css };


it just the header, but when my page won´t been shown right if have the 3 STYLE_V code on the page. If I delete the code, my pgae show the meny.

What´s wrong?

here is the complete code
Code:

BLANK_IMAGE = 'Menu/images/b.gif';

var STYLE = {border:0,shadow:0,color:{border:'#666666',shadow:'#DBD8D1',bgON:'#CCCCCC',bgOVER:'#CCCCCC'},css:{ON:'clsCMOn',OVER:'clsCMOver'}};
var STYLE_V_FIRST = { border:1, borders:[1,1,1,0], shadow:0, color:color2, css:css };
var STYLE_V_MIDDLE = { border:1, borders:[1,0,1,0], shadow:0, color:color2, css:css };
var STYLE_V_LAST = { border:1, borders:[1,0,1,1], shadow:0, color:color2, css:css };

//items and formats
var MENU_ITEMS = [
   {pos:'relative', itemoff:[0,80], leveloff:[0,0], style:STYLE, size:[16,80]},
   {code:'Hotellet','url':'default.asp', 
      sub:[
         
         {itemoff:[16,0], leveloff:[17,0],size:[16,60]},
         {code:'Rum','url':'hotell/rum.asp'},
         {code:'Priser','url':'hotell/priser.asp'}
         
      ]
   },
   {code:'Paket','url':'paket.asp'

   },
   {code:'Konferens','url':'konf.asp',
      sub:[
         {itemoff:[16,0], leveloff:[17,0],size:[16,80]},
         {code:'Lokaler','url':'konf/lokaler.asp'},
         {code:'Aktiviteter','url':'konf/aktiv.asp'},
         {code:'Priser','url':'konf/priser.asp'}
         
      ]
   },
   {code:'Restaurang','url':'rest.asp',
      sub:[
         {itemoff:[16,0], leveloff:[17,0]},
         {code:'Affärs lunch','url':'rest/affar.asp'},
         {code:'A la carte','url':'rest/meny.asp'}
      ]
   },
   {code:'Wärdshuset','url':'ward.asp',
      sub:[
         {itemoff:[16,0], leveloff:[17,0]},
         {code:'Veckans meny','url':'ward/veckans.asp'}
      ]
   },
   {code:'Grupper','url':'grupper.asp',
      sub:[
         {itemoff:[16,0], leveloff:[17,0],size:[16,100]},
         {code:'Sevärdigheter','url':'grupper/sevardigheter.asp'},
         {code:'Priser','url':'grupper/priser.asp'}
      ]
   },
   {code:'Kontakt/Boka','url':'kontakt.asp',
      sub:[
         {itemoff:[16,0], leveloff:[17,0]},
         {code:'Broschyrer','url':'kontaktbok/broschyr.asp'},
         {code:'Boka','url':'kontaktbok/formular.asp'}
      ]
   },
   {code:'Karta/Länkar','url':'karta.asp',
      sub:[
         {itemoff:[16,0], leveloff:[17,0]},
         {code:'Länkar','url':'grupper/sevardigheter.asp'}
      ]
   },
   {code:'Aktuellt','url':'aktuellt.asp',
      sub:[
         {itemoff:[16,0], leveloff:[17,0]},
         {code:'Lediga tjänster','url':'aktuellt/lediga.asp'}
      ]
   }
];


/Tyronne
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sat Apr 29, 2006 1:32 am    Post subject: Reply with quote

And where are definitions of "color2" and "css" variables?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1