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 

Does the image HAVE to be defined?

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





PostPosted: Fri Jun 20, 2003 11:31 pm    Post subject: Does the image HAVE to be defined? Reply with quote

I don't want an image in my menu but when I don't define one it comes out like a broken image. What's the standard solution for this? Confused
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sat Jun 21, 2003 12:25 am    Post subject: Reply with quote

Sure, you can use menu without images. But there will always be one transparent image (b.gif). It is needed for alignment and sizing purposes. You have to put this image somewhere on your server, and then add the following line of code to the top of menuitems.js:

var BLANK_IMAGE="/full/path/to/b.gif";
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