how to switch the backgroung to image

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
orislasi
Beginner
Beginner
Posts: 1
Joined: Wed Aug 11, 2004 5:29 pm

how to switch the backgroung to image

Post by orislasi »

hi to all,

i would like to know how i can change the backgroung of the manu to a pic or a flash bottom.

i have a ready pic and i would like to know if it is possible and how to do it.

until now i magaed to add the pic next to the manu, i would like to have a pic as a background and the text on it.

thanks for your answer.

ori
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

To put a background image into the menu you use the code

Code: Select all

menubgimage="whateverimage";
in the menu style, same place yo have the onbgcolor/offbgcolor etc. If you use an image as a background it will appear in each menu/submenu that uses that style in the menu. Also, background images will repeat, just as a webpage background repeats, so let's say the image is 50px wide and 100px high, and that the menu at a 'usual' font size is the same size, then everything would be fine, but if someone uses a large font size because of visual need, then the menu background image would start to repeat when the menu gets bigger. If the menu doesn't double in size it would only repeat part of the image. You'd have to experiment to see how it would work out.

Ruth
Post Reply