K
Karl
Hi,
Ok so on a given page I have 4 text links:
see it in black
see it in blue
see it in red
see it in green
using the standard swap image behavior, clicking on one of the above links
changes a displayed image to:
black.jpg
blue.jpg
red.jpg
green.jpg
So far no problem.
Now, I also have a set of images called:
blackL.jpg
blueL.jpg
redL.jpg
greenL.jpg
These are larger versions of the 4 images being swapped.
What I am trying to do is have a text link that says "Click to enlarge"
underneath the image on the page that when clicked will popup a window with
the corresponding "L" (large) image (I already know how to launch a popup).
So, someone clicks the text link for "see it in black", the default image
on the page swaps to "black.jpg" and the text link underneath would launch
a popup containing "blackL.jpg"
Same for see it in blue, see it in red, see it in green
I can't figure out how to make the "Click to enlarge" text link change the
popup it will call whenever someone clicks the corresponding text link
elsewhere on the page.
IOW, clicking "see it in black" makes this text link on the page:
<a href="javascript:;" Onclick="popupwindow(blackL.jpg)"Click to enlarge
</a>
clicking "see it in red" makes this:
<a href="javascript:;" Onclick="popupwindow(redL.jpg)"Click to enlarge</a>
That's pseudocode shorthand of course for an actual popup window behavior.
Did this make sense? Can someone help me?
I'm thinking I need to use an array somehow?
Ok so on a given page I have 4 text links:
see it in black
see it in blue
see it in red
see it in green
using the standard swap image behavior, clicking on one of the above links
changes a displayed image to:
black.jpg
blue.jpg
red.jpg
green.jpg
So far no problem.
Now, I also have a set of images called:
blackL.jpg
blueL.jpg
redL.jpg
greenL.jpg
These are larger versions of the 4 images being swapped.
What I am trying to do is have a text link that says "Click to enlarge"
underneath the image on the page that when clicked will popup a window with
the corresponding "L" (large) image (I already know how to launch a popup).
So, someone clicks the text link for "see it in black", the default image
on the page swaps to "black.jpg" and the text link underneath would launch
a popup containing "blackL.jpg"
Same for see it in blue, see it in red, see it in green
I can't figure out how to make the "Click to enlarge" text link change the
popup it will call whenever someone clicks the corresponding text link
elsewhere on the page.
IOW, clicking "see it in black" makes this text link on the page:
<a href="javascript:;" Onclick="popupwindow(blackL.jpg)"Click to enlarge
</a>
clicking "see it in red" makes this:
<a href="javascript:;" Onclick="popupwindow(redL.jpg)"Click to enlarge</a>
That's pseudocode shorthand of course for an actual popup window behavior.
Did this make sense? Can someone help me?
I'm thinking I need to use an array somehow?