Code: Select all
<img alt='' src='kitchen_1/4.jpg' name='4' onmouseover='lightup("kitchen_1/4");' onmouseout='lightoff("kitchen_1/4");' />Code: Select all
function lightup(imgName) {
document[imgName].src= eval(imgName + "s.jpg");
}
function lightoff(imgName) {
document[imgName].src= eval(imgName + ".jpg");
}Error: missing ; before statement
Source File: --omitted--
Line: 2, Column: 11
Source Code:
kitchen_1/4s.jpg
I need this to be really simple. I'm going to have 50--give or take--files that auto-create the images and such for different rooms.
e.g.
Code: Select all
print ('...stuff here...' . img(4,true) . '...more stuff...');