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 

Sub menu of menu with images.

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





PostPosted: Fri Jun 13, 2003 3:57 pm    Post subject: Sub menu of menu with images. Reply with quote

Hi, Newly registered user of jsMenuPRO here, with a quick question:

My top level of menu's is images, and the submenu's should be text...

{ "code":"", url:"#", "format":{"itemoff":[0,92],"size":[25,68],"image":"menu3.gif","oimage":"menu3a.gif","imgsize":[25,68]},
"sub":[
{"itemoff":[25,0]},
{code:"Requirements Builder", url:"#"},
{code:"Process Applicants", url:"#"},
]

How would I go about changing this to work? The sub items show up as duplicates of the top level item, images with rollovers.

Thanks
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Fri Jun 13, 2003 4:11 pm    Post subject: Reply with quote

Try to do it like this:
Code:
{"code":'<img src="menu3.gif" width="68" height="25">',
"ocode":'<img src="menu3a.gif" width="68" height="25">', url:"#", "format":{"itemoff":[0,92],"size":[25,68]},
   "sub":[
      {"itemoff":[25,0]},
      {code:"Requirements Builder", url:"#"},
      {code:"Process Applicants", url:"#"},
   ]
},
Back to top
Fosco
Guest





PostPosted: Fri Jun 13, 2003 4:38 pm    Post subject: Reply with quote

Thanks Much! Works!
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