I am trying to change a graphic by selecting a thumbnail from a menu.
The menu image has an onclick function which calls a javascript function and passes the number of the menuitem.
onclick="changeImage(1)"
The image is located in an ASP array created from a database when the page is opened, the javascript function is as follows:
function changeImage(i){
window.idBigPicURL.innerHTML="<img src='../images/gallery/<%=arrMenuData(7," + i + ")%>' />"
}
When I load the page the load ends here. If I take this function out the page loads ok but of course the onclick does nothing. Also if replace the ASP with <%=arrMenuData(7,2)%> every thing works ok.
So my question is how do I use the ASP with the number passed to the javascript function?
This is found on
www.cjmnew.cjmgraphics.com.
Make the menu selection for either 'Digital Art' or 'Photographic Prints'.
Terry Migliorino
[email protected]