The problem is as I suspected but couldn't be sure without seeing it. In addition to the change I recommended, you made the button/images links. Using href="#" for those links causes the page to reload from the top. Either get rid of the link and apply the rollover effects directly to the image/buttons or add 'return false;' to the onclick event. Also, if you add a title to the images, they will give the tool tip in other browsers (alt only behaves that way in IE). So, I'd suggest this:
HTML Code:
<p align="center">
<a href="#" OnMouseOut="na_restore_img_src('image2', 'document')"
OnMouseOver="na_change_img_src('image2', 'document', 'grfx/arrow-prev-blu.gif', true);">
<img id="btnPrev" src="grfx/arrow-prev-red.gif" onclick="Prev();return false;"
title="Previous" alt="Previous Button" name="image2" border="0" width="37" height="35">
</a>
<a OnMouseOut="na_restore_img_src('image3', 'document')"
OnMouseOver="na_change_img_src('image3', 'document', 'grfx/arrow-mid-blu.gif', true)"
href="photos_main.htm"><img src="grfx/arrow-mid-red.gif" border="0" alt="Back to Photo Menu"
name="image3" width="37" height="35">
</a>
<a href="#" OnMouseOut="na_restore_img_src('image1', 'document')"
OnMouseOver="na_change_img_src('image1', 'document', 'grfx/arrow-next-blu.gif', true);">
<img id="btnNext" src="grfx/arrow-next-red.gif" onclick="Next();return false;" title="Next"
alt="Next Button" name="image1" border="0" width="37" height="35"></a></p>
as a drop in replacement for your existing controls. Now, your images are not showing up because they are not in the:
http://www.c-c-p-c.net/../gary/pics/
directory (as indicated by your code) but in the:
http://www.c-c-p-c.net/pics/
directory. So (for your demo page's location on the server) you could use this type of path for the images:
Code:
g_ImageTable[g_imax++] = new Array ("pics/logo_deadpets.gif", "Dead Pets");
g_ImageTable[g_imax++] = new Array ("pics/pics_deadpets-01.jpg", "");
g_ImageTable[g_imax++] = new Array ("pics/pics_deadpets-02.jpg", "");
g_ImageTable[g_imax++] = new Array ("pics/pics_deadpets-03.jpg", "");
g_ImageTable[g_imax++] = new Array ("pics/pics_deadpets-04.jpg", "");
g_ImageTable[g_imax++] = new Array ("pics/pics_deadpets-05.jpg", "");
g_ImageTable[g_imax++] = new Array ("pics/pics_deadpets-06_crowd.jpg", "");
etc . . .
except for the very last image, '_blank.jpg', which appears to be missing altogether.
Bookmarks