You are viewing our Forum Archives. To view or take place in current topics click here.
[JS] Help needed for +rep
Posted:

[JS] Help needed for +repPosted:

Zion
  • TTG Addict
Status: Offline
Joined: Jul 03, 201013Year Member
Posts: 2,120
Reputation Power: 95
Status: Offline
Joined: Jul 03, 201013Year Member
Posts: 2,120
Reputation Power: 95
I'm just starting Javascript and I am trying to write a small image portfolio. It will have an image in the middle and two arrows on the side, which will lead the viewer to the previous or next picture. The arrow images are done and are already placed on the image. Each arrow(image) has an onClick to execute a left and right function.

I need help writing the onClick functions (left and right). They will be modifying the source of an image with the id of "realimage". Each image that I will be displaying has a number name, going from 0.jpg to 10.jpg.

If I need to explain better, just ask me and I'll do my best. Thanks!
#2. Posted:
Imp
  • Retired Staff
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
This should pretty much do as you need.

[ Register or Signin to view external links. ]
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.