/    Sign up×
Community /Pin to ProfileBookmark

Fading/Scrolling Images

I work with Web Services at Elizabeth City State University, in Elizabeth City, NC. If you go to our homepage [url]http://www.ecsu.edu[/url] you will see fading images; we built this using javascript the issue that we’re having is that we want the images to link directly to their relevance and not just to one site.. does anyone have any suggestions?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@toicontienSep 14.2006 — I don't see any fading images. I'm using Firefox and the page looks kinda messed up.
Copy linkTweet thisAlerts:
@MinuauthorSep 14.2006 — We're still working on the site to make it compatible with Firefox.
Copy linkTweet thisAlerts:
@toicontienSep 14.2006 — And as strange as it may sound, if you code sites for Firefox, Opera and Safari (i.e. the standards) you'll only have to keep Internet Explorer in line. That aside, the images do switch, just not fade.

Back to the problem at hand. An array of images is created. Then only the image inside the anchor tag is changed. Your best bet is to give the <a> tag that encompasses the fading image an Id. Then you should create two parellel arrays, one with the images, the other with the URLs that the image should link to.

Then when an image is changed, the index used to display the image can also be used on the URLs array to change the href of the <a> to point to the proper page. Then using the Id you gave the <a> tag, change the actual href attribute value.

Those being my own two cents. ? My apologies for not giving any concrete code, but technically I'm at work right now ?
×

Success!

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