/    Sign up×
Community /Pin to ProfileBookmark

HELP. popup menu rollover layers wont go !


——————————————————————————–

I have a page I am helping someone with. The pop up menus appear when you roll onto the relevant menu item but dont dissapear !!! why oh why ???

please look & let me know if you can help. heres the javacode in both an event & the functions

<a href=”javascript:;” onMouseOver=”MM_swapImage(‘Image3′,”,’../Images/Main%20Nav%20Images/3_Groups_hot.gif’,1);MM_showHideLayers(‘AboutUs’,”,’hide’,’Groups’,”,’show’,’Projects’,”,’hide’,’Calendar’,”,’hide’)” onMouseOut=”MM_swapImgRestore()”><img src=”../Images/Main%20Nav%20Images/3_Groups.gif” name=”Image3″ width=”134″ height=”20″ border=”0″ id=”Image3″></a><br>

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf(“?”))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

please help – here is an example
[url]http://www.xtab.co.uk/daresbury/astec%20-%20tonya/home.shtml[/url]

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@VladdyMay 27.2004 — Have you seen your page in Mozilla?

Seems like you got bigger problems to solve....
Copy linkTweet thisAlerts:
@tonyaauthorMay 27.2004 — this test page is better - am online working on this now - help appreciated - has to be done today if poss !!

http://www.xtab.co.uk/daresbury/astec%20-%20tonya/test.shtml
Copy linkTweet thisAlerts:
@tonyaauthorMay 27.2004 — actually i have stripped out all graphics & content etc etc etc just to simplify the file to concentrate on the menu problem

the rest of the page works fine in full version honestly !!

sorry should have explained that ?
Copy linkTweet thisAlerts:
@VladdyMay 27.2004 — Have you tried using your page with javascript disabled?

Seems like you have even bigger problem.
Copy linkTweet thisAlerts:
@tonyaauthorMay 27.2004 — no i havnt i simply saved the original template file stripped out the graphics etc i didnt want so i could get the javascript sorted. i dont need it towork in mozilla as the final version will be on a closed intranet with everyone on same version of ie.

would it be easier if i went through file & stripped all but one link graphic with one event & removed all other content so as just to get to point which is menu or are you trying to tell me that the other problems are what is causing the menu layers to not work ??

It isnt my original code I have stepped in to try & help with deadline as original coder has gone off sick & its being delivered on friday ! eeek
Copy linkTweet thisAlerts:
@tonyaauthorMay 27.2004 — thats tommorrow eeeek
Copy linkTweet thisAlerts:
@tonyaauthorMay 27.2004 — I solved it

it needed the show hide layers function asking them all to be hidden adding to all the events ! that was it after all that panic. that & setting default value to hidden in first place !!

http://www.xtab.co.uk/daresbury/astec%20-%20tonya/test2.shtml

stripped of all but buttons which now work !!
Copy linkTweet thisAlerts:
@tonyaauthorMay 27.2004 — ah **** - it doesnt work completely - i now have it so layers dissapear when not required but now you cant get on the layer at all apart from top one

yikes !!!!!!!!!

http://www.xtab.co.uk/daresbury/astec%20-%20tonya/test2.shtml
×

Success!

Help @tonya 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...