robsta117
07-14-2003, 08:56 PM
Hi-
I downloaded a multiple-image rollover script from Javascript Source and modified it to work with a layout I'm designing.
The script enables me to mouseover an image, so that a rollover occurs elsewhere on the page. The "mouse-dover" images don't change.
Q: How can I modify the script below so that the "moused-over" images perform a rollover, in addition to handling the rollover event in the other location?
Please feel free to visit the page I'm working on at: MultipleImageSwop (http://www.fond-regards.com/MultipleImgSwop3.html)
(The images that need the rollover event are the one's in the left-side column).
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var img1a = new Image();
var img1 = new Image();
var img2a = new Image();
var img2 = new Image();
var img3a = new Image();
var img3 = new Image();
img1a.src = "imgs/text1.jpg";
img1.src = "img/image1.jpg";
img2a.src = "imgs/text2.jpg";
img2.src = "imgs/image2.jpg";
img3a.src = "imgs/text3.jpg";
img3.src = "imgs/image3.jpg";
function doButtons(picimage) {
document['picture'].src=picimage;
}
// End -->
</script>
Any and all suggestions will be greatly appreciated -
Robsta
I downloaded a multiple-image rollover script from Javascript Source and modified it to work with a layout I'm designing.
The script enables me to mouseover an image, so that a rollover occurs elsewhere on the page. The "mouse-dover" images don't change.
Q: How can I modify the script below so that the "moused-over" images perform a rollover, in addition to handling the rollover event in the other location?
Please feel free to visit the page I'm working on at: MultipleImageSwop (http://www.fond-regards.com/MultipleImgSwop3.html)
(The images that need the rollover event are the one's in the left-side column).
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var img1a = new Image();
var img1 = new Image();
var img2a = new Image();
var img2 = new Image();
var img3a = new Image();
var img3 = new Image();
img1a.src = "imgs/text1.jpg";
img1.src = "img/image1.jpg";
img2a.src = "imgs/text2.jpg";
img2.src = "imgs/image2.jpg";
img3a.src = "imgs/text3.jpg";
img3.src = "imgs/image3.jpg";
function doButtons(picimage) {
document['picture'].src=picimage;
}
// End -->
</script>
Any and all suggestions will be greatly appreciated -
Robsta