L
Leoa
Hi All,
I'm having a hard time figuring out the DOM syntax to get one frame
that has thumnails of images to display at full size in another frame
(onmouseover).
I looked at a couple tutorials and have come up with the broken script
below. Please Help.-
------------------------------------------
master_frame.html------------------------------
<html>
<head>
<title>Frames Set, Index with Bannere and Footer</title>
</head>
<frameset rows="64,*,64">
<frame name="top" scrolling="no" noresize src="top.html">
<frameset cols="150,*">
<frame name="index" src="index.html">
<frame name="main" src="main.html">
</frameset>
<frame name="bottom" scrolling="no" noresize src="bottom.html">
</frameset>
</html>
---------------------------------------------
index.html------------------------------------
//contains thumbnails
<html>
<head><title> Event 1</title>
<script language="javascript" type="text/javascript">
<!-- hide script from old broswers
if (document.images)
{
image1= new Image;
image2= new Image;
image3= new Image;
image1.src="images/large/1.gif";
image2.src="images/large/2.gif";
image3.src="images/large/3.gif";
}
else{
image1="";
image2="";
image3="";
document.placeholder="";
}
//-->
</script>
</head>
<body>
<h2> Event 1</h2>
<div class="content">
<img src="images/placeholder.gif" name="placeholder">
<a href="#"
onMouseover="parent.main.getElementByID('overimage').src=image3.src"
onMouseout="document.placeholder.src=image3.src"><img src="images/
thumb/1t.gif"></a>
</body>
</html>
----------------------------------------
main.html-----------------------------------
//large image display
<html>
<body>
<img id="overimage">
</body>
</html>
I'm having a hard time figuring out the DOM syntax to get one frame
that has thumnails of images to display at full size in another frame
(onmouseover).
I looked at a couple tutorials and have come up with the broken script
below. Please Help.-
------------------------------------------
master_frame.html------------------------------
<html>
<head>
<title>Frames Set, Index with Bannere and Footer</title>
</head>
<frameset rows="64,*,64">
<frame name="top" scrolling="no" noresize src="top.html">
<frameset cols="150,*">
<frame name="index" src="index.html">
<frame name="main" src="main.html">
</frameset>
<frame name="bottom" scrolling="no" noresize src="bottom.html">
</frameset>
</html>
---------------------------------------------
index.html------------------------------------
//contains thumbnails
<html>
<head><title> Event 1</title>
<script language="javascript" type="text/javascript">
<!-- hide script from old broswers
if (document.images)
{
image1= new Image;
image2= new Image;
image3= new Image;
image1.src="images/large/1.gif";
image2.src="images/large/2.gif";
image3.src="images/large/3.gif";
}
else{
image1="";
image2="";
image3="";
document.placeholder="";
}
//-->
</script>
</head>
<body>
<h2> Event 1</h2>
<div class="content">
<img src="images/placeholder.gif" name="placeholder">
<a href="#"
onMouseover="parent.main.getElementByID('overimage').src=image3.src"
onMouseout="document.placeholder.src=image3.src"><img src="images/
thumb/1t.gif"></a>
</body>
</html>
----------------------------------------
main.html-----------------------------------
//large image display
<html>
<body>
<img id="overimage">
</body>
</html>