Click to See Complete Forum and Search --> : Dhtml folding menu tree


ennui
10-18-2003, 02:03 AM
ok i know its kinda weak but hey lol.. I got this script from dynamic drive to make a folding tree menu..the question is how do i remove the pictures in from of menu choices that dont have sub menus any ways you can check the code out <<<HERE>>> (http://www.bspassoc.com/gal.html)

thanks in advance

96turnerri
10-18-2003, 03:51 PM
find this bit in your code

var head="display:''"
img1=new Image()
img1.src="fold.gif"
img2=new Image()
img2.src="open.gif"

make it this now

var head="display:''"
img1=new Image()
img1.src=""
img2=new Image()
img2.src=""

this will display black dot and a black circle is you dont want that make a gif called pic.gif that the same colour as background of menu

and do this

var head="display:''"
img1=new Image()
img1.src="pic.gif"
img2=new Image()
img2.src="pic.gif"

hope this answers you q
good luck
Rich

96turnerri
10-18-2003, 03:52 PM
o and by the way, this menu wont work for 13% of users becasuse java wont be enabled

ennui
10-18-2003, 10:27 PM
well if it works for 87% of people then its all good lol:D

96turnerri
10-19-2003, 08:56 AM
that true, but your limiting you users may i suggest a no script alternative

so you have your menu

<script>
blah blah blah
</script>
<noscript>
<a href="page1.htm">Page1</a>
<a href="page2.htm">Page2</a>
<a href="page3.htm">Page3</a>
</noscript>

This way users with java disabled can still use your site ??

Rich