/    Sign up×
Community /Pin to ProfileBookmark

tree menu, images don’t work

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
——

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@phil_philspeakmauthorDec 19.2002 — <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>
Copy linkTweet thisAlerts:
@KimberlinaOct 24.2003 — 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:

[URL=http://www.javafile.com/menuing/foldermenu/foldermenu.php?cat=Menuing]http://www.javafile.com/menuing/foldermenu/foldermenu.php?cat=Menuing[/URL]
×

Success!

Help @phil_philspeakm spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.14,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...