/    Sign up×
Community /Pin to ProfileBookmark

Image Gallery

Ok,

I am using DOM Scripting as an example for this image gallery. I have gotten it to work in other examples but for my example I needed it to be slimmed down.

The obtrusive way works, as soon as I try and convert it to unobtrusive it seems to fail.

[url]http://www.peckfortoncastle.co.uk/weddingsGallery.html[/url]

Here are the scripts:

[url]http://www.peckfortoncastle.co.uk/_scripts/showPic.js[/url]
[url]http://www.peckfortoncastle.co.uk/_
scripts/global.js[/url]

Also it is the 2nd row and middle picture of the couple at night which is the active link. Anyone know what I am doing wrong?

Cheers

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@NickToyeauthorJul 30.2006 — Can anyone help me here?
Copy linkTweet thisAlerts:
@LogicianJul 31.2006 — Ok,

I am using DOM Scripting as an example for this image gallery. I have gotten it to work in other examples but for my example I needed it to be slimmed down.

The obtrusive way works, as soon as I try and convert it to unobtrusive it seems to fail.[/quote]
Whatever that means...Anyone know what I am doing wrong?[/QUOTE]You're not reading the console:

Peckforton Castle

http://www.peckfortoncastle.co.uk/weddingsGallery.html

Inline script thread

Error:

name: ReferenceError

message: Statement on line 26: Reference to undefined variable: addLoadEvent

Backtrace:

Line 26 of linked script http://www.peckfortoncastle.co.uk/_scripts/showPic.js

addLoadEvent(showPic);
Copy linkTweet thisAlerts:
@NickToyeauthorJul 31.2006 — i'm not an expert with JavaScript. So is this telling me that this part of the code has failed to execute?
Copy linkTweet thisAlerts:
@LogicianJul 31.2006 — i'm not an expert with JavaScript. So is this telling me that this part of the code has failed to execute?[/QUOTE]It's telling you that it can't find the function 'addLoadEvent', probably because it isn't loaded at the time it's called.
Copy linkTweet thisAlerts:
@NickToyeauthorJul 31.2006 — Yeah, I had the functions the wrong way around, but its cool now.
×

Success!

Help @NickToye 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.1,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

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