peteschulte
IS-IT--Management
Hello Coders and Problem-Solvers!
At the end of this, see the code for the entire page.
On an old web page, six thumbnails are visible on the right. On the left, one of them is displayed bigger, changing as the mouse moves over the thumbs.
We would like for the correct file name to appear under the big image as it changes. Instead, only the first file name appears and does not change.
The same variable is called for both operations, but only works for the picture display, not for the filename.
________________________________
The JavaScript variable is
Here is what picNameArray[] looks like, containing the file names of the thumbs.
________________________________
A script appends "A.jpg" to the filename, to display its image in 330 x 300 pixels.
________________________________
The following code is intended display the file name of the thumbnail images that has mouseOver focus
It displays only the first file name. You can change it manually.
How come the variable works to display the picture but not the file name?
How can I make it display the correct file name that is under the mouse pointer?
Thank you,
Peter
Pete S
At the end of this, see the code for the entire page.
On an old web page, six thumbnails are visible on the right. On the left, one of them is displayed bigger, changing as the mouse moves over the thumbs.
We would like for the correct file name to appear under the big image as it changes. Instead, only the first file name appears and does not change.
The same variable is called for both operations, but only works for the picture display, not for the filename.
________________________________
The JavaScript variable is
Code:
picNameArray[]
Here is what picNameArray[] looks like, containing the file names of the thumbs.
Code:
picNameArray = ['0865-02','172649','0863-11','172696','0863-28','0080-18']
A script appends "A.jpg" to the filename, to display its image in 330 x 300 pixels.
Code:
<td border="0" height="300"
width="300">
<center>
<script>document.write('<img src=images/gallery/'+picNameArray[0]+'A.jpg name="display" border=0 width=300 height=300 vspace=25 hspace=25>');
</script>
</center>
</td>
The following code is intended display the file name of the thumbnail images that has mouseOver focus
Code:
<td alignment="bottom" width="350">
<!-- We don't want to display the numbers, so remove from the following line after "460>" <CENTER>'+picNameArray[0]+'</CENTER> PJS 9-7-2013 !-->
<center>
<font monaco="" helvetica="" verdana="" face="arial," size="-1"><br>
<script>
document.write('<DIV ID="caption"><LAYER ID="cap" pagex=0 pagey=460><CENTER>'+picNameArray[0]+'</CENTER></Layer></DIV>');
</script>
<br>
</font>
</center>
</td>
It displays only the first file name. You can change it manually.
How come the variable works to display the picture but not the file name?
How can I make it display the correct file name that is under the mouse pointer?
Thank you,
Peter