Click to See Complete Forum and Search --> : tree menu, images don't work


phil@philspeakm
12-19-2002, 09:28 AM
i got this script from javafiles - it works, but the images aren't working, any help would be much appriciated,
-------
head stuff
-------
<script language="javascript">
<!--
var Open = ""
var Closed = ""

function preload(){
if(document.images){
Open = new Image();
Closed = new Image();
Open.src = "open.gif";
Closed.src = "closed.gif";
}
}

function showhide(what,what2){
if (what.style.display=='none'){
what.style.display='';
what2.src=Open.src
}
else{
what.style.display='none'
what2.src=Closed.src
}
}
------
code on page
------

phil@philspeakm
12-19-2002, 09:29 AM
<span id="menu1" onClick="showhide(menu1outline,menu1sign)" style="cursor:hand;><font style="text-decoration:none"><img id="menu1sign" img src="closed.gif" valign="bottom">
Mail Services</span><br>
<span id="menu1outline" style="display:'none'">
<a href="http://mail.yahoo.com" target="_blank">Yahoo Mail</a></span>

Kimberlina
10-24-2003, 06:41 AM
I am having the same problem (ditched the last script) as above.

Thing is, the script works in their website. Why??

Have a looksie here:
http://www.javafile.com/menuing/foldermenu/foldermenu.php?cat=Menuing