http://dynamicdrive.com/dynamicindex1/davidmenu.htm
Okay, a simple question... will I be able to use inner html for this menu? ANd how do I change the colors of the side bar multiple colors like this site?
http://dynamicdrive.com/dynamicindex1/davidmenu.htm
Okay, a simple question... will I be able to use inner html for this menu? ANd how do I change the colors of the side bar multiple colors like this site?
Anyone, help?
Probably but, not in all places, just what do you mean by inner html? If you mean using tags in the menu items, I'd say yes. As for different colors (like in the example link you gave), use a small .gif or .png, make sure you capitalize the IMG in the image tag where it shows you can use it. Html (other than an IMG tag) won't work there, as it will get parsed as text to be displayed vertically.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Inner html such as this site:
http://www.freewebs.com/nevermores-lounge/
The script is an external file, so I don't know...![]()
innerHTML, as mentioned on the page you cite, is simply a javascript property of a given element. It can be manipulated and/or queried for various script effects and/or operations. Any element accessible to javascript in the slide in menu will have its innerHTML accessible to further javascript use of your choosing.
The most common use of innerHTML is to insert text or images into an element once it has been parsed by the browser ex:This will change the text displayed by the above span element to 'and Welcome!' after a 5 second delay.Code:<span id="greeting">Hello</span> <script type="text/javascript"> setTimeout("document.getElementById('greeting').innerHTML='and Welcome!'",5000); </script>
You will not be able to use innerHTML for the vertical text part of the slide in menu without a moderately major rewrite of the menu's script because, as currently written - and as I mentioned before, it will parse anything other than an IMG tag that uses the capital letters 'IMG' (ex:<IMG src="some.gif">) as text to be displayed vertically, one character at a time. If you want an effect that cycles the letters through various colors, use the IMG tag with an animated gif.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks