/    Sign up×
Community /Pin to ProfileBookmark

URGENTE – Help with javascript for image replacement

Hi,

I’m preparing a special webpage for my personal site and I need a javascript that allow the visitors to mouseover an image and then other image appears replacing the first image … in order to get back to the first image the visitor have to click in the second image too … something like that:

Moment 0 – Image 1 is in the page;

Moment 1 – Visitor click on image 1;

Moment 2 – Image 2 replaces image 1;

Moment 3 – Visitor click on image 2;

Moment 4 – Image 1 replaces image 1.

I found a javascript ([url]http://www.charlesdias.net/contato_files/home.html[/url]) of the “mouseover” type that does the image replacement but just when mouse pointer is over the image.

[COLOR=Red] Can anyone help me to get the right javascript that does what I need or altere the one I already have to do what I need, please ???[/COLOR]

Thanks,

Charles

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@ellanabNov 05.2005 — A couple of great sites for good javascripting like you're asking for are:

[B]The Javascript Source:[/B] http://javascript.internet.com/

[B]The Javascript Kit:[/B] http://javascriptkit.com/

[B]Hotscripts:[/B] http://www.hotscripts.com/index.html
×

Success!

Help @charlesdias 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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