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 

images in menus

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





PostPosted: Sat Oct 11, 2003 5:06 pm    Post subject: images in menus Reply with quote

I have an image as node, but how can I replace the sublinks by images?

{code:'<img src="images/archiv.gif">', ocode:'<img src="images/archiv.gif">',
sub:[
{"size":[25,100],"itemoff":[24,0],"leveloff":[24,0],"style":CM_STYLE},
{code'<img src="images/archiv.gif">', url:"2002.htm", "target":"mainFrame"}
]
},

Is this right?

tHanks
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sat Oct 11, 2003 5:13 pm    Post subject: Reply with quote

Sorry, not clear what does "replace the sublinks by images".
Your code contains a typo: it laks colon after the 'code' keyword in the submenu.
Back to top
Guest






PostPosted: Sun Oct 12, 2003 10:22 am    Post subject: Reply with quote

I mean, instead of the text in the submenu I want to have an image.
For example:

{code:'<img src="images/aktuell.gif">', ocode:'<img src="images/1.gif">',
sub:[
{"size":[25,100],"itemoff":[24,0],"leveloff":[24,0],"style":CM_STYLE},
{code:'<img src="images/1_1.gif" />', format:{size:[2,121]}, url:"1_1.htm", "target":"mainFrame"},
{code:'<img src="images/1_2.gif" />', format:{size:[2,121]}, url:"1_2.htm", "target":"mainFrame"},
{code:'<img src="images/1_3.gif" />', format:{size:[2,121]}, url:"1_3.htm", "target":"mainFrame"},
{code:'<img src="images/1_4.gif" />', format:{size:[2,121]}, url:"1_4.htm", "target":"mainFrame"}
]
},

I want an image as the first node (here: 1) which has the submenu 1_1 to 1_4. These links should be gif-images, too.
Back to top
Guest






PostPosted: Sun Oct 12, 2003 10:27 am    Post subject: I got it Reply with quote

Oh sorry,
I've just seen that I did a mistake with the size of each item. I got it now. Thanks
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