JavaScript.CoolDev.Com Support Forums
Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com
| Author |
Message |
Babe Guest
|
Posted: Sat Oct 11, 2003 5:06 pm Post subject: images in menus |
|
|
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
|
Posted: Sat Oct 11, 2003 5:13 pm Post subject: |
|
|
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
|
Posted: Sun Oct 12, 2003 10:22 am Post subject: |
|
|
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
|
Posted: Sun Oct 12, 2003 10:27 am Post subject: I got it |
|
|
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 |
|
 |
|
|