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 

Make Top Level menus items with no images

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
dengel



Joined: 22 Nov 2005
Posts: 1

PostPosted: Tue Nov 22, 2005 9:31 pm    Post subject: Make Top Level menus items with no images Reply with quote

I'm trying to find a way to make the top-level menu items have no images on them, while the rest of the sub-items would have images. A crude drawing is below:



Any ideas? In the first image, you'll see that I statically hid the first image with a div positioned on top of the image. I'd much rather have everything move to the left though like at the the end of the animation above.

One thing I was thinking would be to buy pro, encase it in a DIV, and clip off the left 16-20 PX of the menu - the images would still be there, but the user couldn't see them.

That approach seems kludgy, though. Any better ideas?
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sat Apr 29, 2006 12:08 am    Post subject: Reply with quote

Try this:

Code:
['My special node w/o buttons', 'some.html', null, {format:{nobuttons:true}}],


"nofolders" options also exists. These options are available since 2.3.3.
Back to top
parallon



Joined: 27 Jan 2006
Posts: 10

PostPosted: Fri Jun 01, 2007 11:08 pm    Post subject: Reply with quote

Is it possible to do this for childless nodes? I am using images for my background, and it seems that when I turn "Explorer Mode" on, all parent nodes are fine except the ones with no children; they have the icon next to them. The reason there is no child is because it is a link to the Home Page.

Thanks,

Parallon
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Tue Jun 05, 2007 10:09 am    Post subject: Reply with quote

Please, consider this demo (and "isFolder" property):

http://javascript.cooldev.com/scripts/cooltree/demos/individual/
Back to top
parallon



Joined: 27 Jan 2006
Posts: 10

PostPosted: Tue Jun 05, 2007 2:13 pm    Post subject: Reply with quote

Thank you. I will gice that a try.

Parallon
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1