G'day, movemap is a function that requires 2 parameters. This works ... <%movemap 20,20 %> This works <td><img src="<%= maparray(xloc-1,yloc-1)%>" onclick="history.go(-1)" ></td> This doesn't <td><img src="<%= maparray(xloc ,yloc-1)%>" onclick="<%movemap 20,20 %>" ></td> <td><img src="<%= maparray(xloc ,yloc-1)%>" onclick="<%=movemap(20,20)%>" ></td> Those lines add an extra "> in my display and don't call movemap. I have tried all the different syntax combinations except one ... the one that works.
here is a clear sample with javascript concerning the onclick http://forums.digitalpoint.com/showthread.php?t=99656 if you can't figure out how to do it, try to post some samples like a url, the script that does it all, etc....
My code is messy and includes several includes and some unwritten routines. Players click on a link in the menu to go to the map page. I read the database and finds out where they are. I use a 3 * 3 table to display the map squares using 9 jpg's. This works fine - see code in earlier post. Now comes the problem. The player will click on one of the 9 squares .... I have to update the database with his movement points and new x,y location I must then reload the page. If I knew which square he clicked in, I could use a case statement and update the database and reload the page.