/    Sign up×
Community /Pin to ProfileBookmark

help with time delay onclick scriptaculous function

hello. sorry if this is a repost in anyways, i did look and couldn’t find anything.

what i am trying to do is run three sets of functions on one onclick, a script.aculo.us slide effect, a basic hide other/show layer set of functions for the content, and a time delay function that will delay the show layer function. i’ve got the first two working.

here is my onclick currently

[CODE]<a href=”#” onclick= “Effect.SlideDown(‘jG6kDlo0’); hideAll(); showLayer(‘shows’); stopTime(); return false; “>shows</a>[/CODE]

it’s calling to external javascript files. the effect.slide down is working fine, it’s the show layers function that i want to be able to delay. here is there show layers function

[CODE]function showLayer(layerName) {
if(check) {
if (what ==”none”) {
return;
}
else if (what == “dom1″) {
document.getElementById(layerName).style.visibility=”visible”;
}
else {
eval(layerRef+'[“‘+layerName+'”]’+styleSwitch+’.visibility=”visible”‘);
}
}
else {
return;
}
}
[/CODE]

if you go to [url]http://www.dorisdelay.com/index2.php[/url], you can probably visually see the effect that i am going for. sorry, i haven’t formatted the css yet.

thanks so so much
matthew

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@matthewstokeleyauthorMar 03.2006 — sorry i didn't indent! all the parenthesis etc. should right be.
×

Success!

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