Lovely813
02-13-2005, 04:26 PM
Hello there,
I am a beginner when it comes this, and I am having a problem just getting this code to work, as downloaded from your site.
I don't understand the "dynloadarea"'s as shown below:
<a href="#" onMouseover="modifyimage('dynloadarea', 0)">image 1 (onmouseover)</a><br>
<a href="#" onMouseover="modifyimage('dynloadarea', 1)">image 2 (onmouseover)</a><br>
<a href="#" onClick="return modifyimage('dynloadarea2', 2)">image 3 (onclick)</a><p>
<div id="dynloadarea" style="width:80px;height:225px"></div>
<div id="dynloadarea2" style="width:80px;height:200px"></div>
Is some of the code for use with the links, or is it ALL needed for just the photos that I want to use?, and it is just shown for reference?
I have tested it, and when I view it in iexplorer 6.0, on the right side of the page it shows links instead of the larger picture and says "image 1" and "image 2".
And what is the difference between " ="modifyimage('dynloadarea', 0)"> " and " ="modifyimage('dynloadarea', 1)"> "??
For the thumbnail on the left, will the code always be 'dynloadarea, 0'?
My other issue is that I can't tell if this section (as shown directly below) is for the LARGE image or the actual THUMBNAIL:
//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
dynimages[0]=["photo1.jpg", "http://www.cnn.com"]
dynimages[1]=["photo2.jpg", "http://www.yahoo.com"]
dynimages[2]=["photo3.jpg", "http://www.google.com"]
Where in the code do you reference the large picture from the thumbnail?
I really need some help getting this to work .. I have 24 thumbnails that I would like to use on this page. Below is an example of how I'm trying to edit the code to work:
for the HEAD SECTION....
<script type="text/javascript">
/***********************************************
* Image Thumbnail Viewer II script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
dynimages[0]=["W_TESTING_SITE/PJ1.jpg", ""]
dynimages[1]=["W_TESTING_SITE/PJ2.jpg", ""]</SCRIPT>
</HEAD>
for the BODY SECTION....
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="20%">
<a href="#" onMouseover="modifyimage('dynloadarea', 0)"><img border="0" src="W_TESTING_SITE/PJ1T.jpg" width="78" height="66" style="margin-bottom: 5px"></a><br>
<a href="#" onMouseover="modifyimage('dynloadarea', 1)"><img border="0" src="W_TESTING_SITE/PJ2T.jpg" width="78" height="66" style="margin-bottom: 5px"></a><br>
Thanks very very much in advance for any help provided.
Have a great day!
I am a beginner when it comes this, and I am having a problem just getting this code to work, as downloaded from your site.
I don't understand the "dynloadarea"'s as shown below:
<a href="#" onMouseover="modifyimage('dynloadarea', 0)">image 1 (onmouseover)</a><br>
<a href="#" onMouseover="modifyimage('dynloadarea', 1)">image 2 (onmouseover)</a><br>
<a href="#" onClick="return modifyimage('dynloadarea2', 2)">image 3 (onclick)</a><p>
<div id="dynloadarea" style="width:80px;height:225px"></div>
<div id="dynloadarea2" style="width:80px;height:200px"></div>
Is some of the code for use with the links, or is it ALL needed for just the photos that I want to use?, and it is just shown for reference?
I have tested it, and when I view it in iexplorer 6.0, on the right side of the page it shows links instead of the larger picture and says "image 1" and "image 2".
And what is the difference between " ="modifyimage('dynloadarea', 0)"> " and " ="modifyimage('dynloadarea', 1)"> "??
For the thumbnail on the left, will the code always be 'dynloadarea, 0'?
My other issue is that I can't tell if this section (as shown directly below) is for the LARGE image or the actual THUMBNAIL:
//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
dynimages[0]=["photo1.jpg", "http://www.cnn.com"]
dynimages[1]=["photo2.jpg", "http://www.yahoo.com"]
dynimages[2]=["photo3.jpg", "http://www.google.com"]
Where in the code do you reference the large picture from the thumbnail?
I really need some help getting this to work .. I have 24 thumbnails that I would like to use on this page. Below is an example of how I'm trying to edit the code to work:
for the HEAD SECTION....
<script type="text/javascript">
/***********************************************
* Image Thumbnail Viewer II script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
dynimages[0]=["W_TESTING_SITE/PJ1.jpg", ""]
dynimages[1]=["W_TESTING_SITE/PJ2.jpg", ""]</SCRIPT>
</HEAD>
for the BODY SECTION....
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="20%">
<a href="#" onMouseover="modifyimage('dynloadarea', 0)"><img border="0" src="W_TESTING_SITE/PJ1T.jpg" width="78" height="66" style="margin-bottom: 5px"></a><br>
<a href="#" onMouseover="modifyimage('dynloadarea', 1)"><img border="0" src="W_TESTING_SITE/PJ2T.jpg" width="78" height="66" style="margin-bottom: 5px"></a><br>
Thanks very very much in advance for any help provided.
Have a great day!