/    Sign up×
Community /Pin to ProfileBookmark

Simple Problem – I’m not a developer

Hey guys, so I am a designer (not a developer) doing a site for someone.
I am playing with some simple free javascripts.

I have lightbox and toggler. Both work great individually.
They are conflicting and everywhere online says to set the both to onLoad in the body tag.
Sounds easy enough.

But I can’t seem to figure out the call for this script:

<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”></script>
<script type=”text/javascript” src=”../js/expand.js”></script>
<script type=”text/javascript”>

$(function() {
$(“h2.expand”).toggler({method: “fadeToggle”});
});
//–><!]]>
</script>

<body onload=”toggler();initLightbox()”> is what is seems like it should be for me. But that isn’t working at all.

Please help!

I feel like I have tried every possible name with the toggler()…
the other script is initLightbox().

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

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