/    Sign up×
Community /Pin to ProfileBookmark

Tree menu tweaking needed

Hi !

I have some problems implementing a ASP generated tree menu. My problem is javascript related though.

A picture is worth a thousand words so you can take a look at my problem here :
[IMG]http://pages.infinit.net/rouxjean/bug.gif[/IMG]

The javascript i use is :
function swapTree(menuDiv,fol)
{
window.focus();
d = document.getElementById(menuDiv);
i = document.images[“img_“+menuDiv];
i1 = document.images[“img_
“+fol];
if (d.style.display==”none”)
{
d.style.display=”block”;
i.src=’../img/minus.gif’;
i1.src=’../img/foldero.gif’;
}
else
{
d.style.display=”none”;
i.src=’../img/plus.gif’;
i1.src=’../img/folder.gif’;
}

}

function toggleMenu(obj){
if(document.getElementById){
objMenu=document.getElementById(obj).style
if(objMenu.display==”block”){
objMenu.display=”none”
}else{
objMenu.display=”block”
}return false
}else{
return true
}}

Anybody has a clue ?

Thanks

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63May 29.2003 — Post a link to the real page that has the code.
Copy linkTweet thisAlerts:
@MotaboboauthorMay 29.2003 — I'm sorry i forgot to include it in my previous post. :o

Here we go :

[URL=http://www21.brinkster.com/rouxjean/explorer/tree/index.htm]http://www21.brinkster.com/rouxjean/explorer/tree/index.htm[/URL]

Thanks ?

Oh and how can i save the tree status in a cookie for both IE & NN ?
Copy linkTweet thisAlerts:
@MotaboboauthorMay 30.2003 — No one can help ?
×

Success!

Help @Motabobo 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.15,
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,
)...