/    Sign up×
Community /Pin to ProfileBookmark

Please help, desperate! Galleries won’t work now.

Hi.
I appreciate your help.
My galleries worked perfectly, all of a sudden they don’t now. ?
The idea was to click on the pic and the title of the pic and author appears under it. The pic works OK, not the title.

The javascript is:

over = function() {
var sfEls = document.getElementById(“nav”).getElementsByTagName(“LI”);
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=” over”;
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(” overb”), “”);
}
}
}
if (window.attachEvent) window.attachEvent(“onload”, over);

function doPic(obj, url) {
document.images[‘mainpic’].src = url;
document.getElementById(‘maintitle’).innerHTML = obj.alt;
return true;
}

The table row:

<td><img src=”images/ediddiv/1/thumbs/d1.jpg” border=”0″ alt=””Golden Hills” – Anne &copy;”
onclick=”return doPic(this, ‘images/ediddiv/1/large/d1.jpg’)” /></td>

My website is: [url]http://www.a-p-s.org.au/edidgallery1.html[/url]

I don’t understand why it won’t work. By the way I’m not expert in scripting, I’ve required help with javascript before.

Thanks for your help if you can. ?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@vwphillipsJun 21.2006 — [CODE]<td><img src="http://www.a-p-s.org.au/images/ediddiv/1/thumbs/d1.jpg" border="0" alt="'Golden Hills' - Anne Specht &copy;"
onclick="return doPic(this, 'http://www.a-p-s.org.au/images/ediddiv/1/large/d1.jpg')" /></td>[/CODE]


not the " and ' in alt
Copy linkTweet thisAlerts:
@apsauthorJun 21.2006 — Thank you.

What a clutz!
×

Success!

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