Click to See Complete Forum and Search --> : runtime error
lyncleary@
11-25-2003, 08:45 PM
Help!
Graphic designer turned web designer who sometimes gets tangled in her own code can't get rid of runtime error!
Go here to check code (http://www.users.bigpond.com/lyncleary/)
Deadline looming please help!
lyncleary@
Khalid Ali
11-25-2003, 09:49 PM
instead of tyhis line
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
use it like this
changeImages.arguments[i].src = changeImages.arguments[i+1];
ray326
11-25-2003, 10:24 PM
You need Mozilla and its Javascript Console. When I mouse over your images it tells me:
Error: document[changeImages.arguments[i]] has no properties
Source File: http://www.users.bigpond.com/lyncleary/
Line: 22
lyncleary@
11-25-2003, 11:45 PM
Khalid Ali
Your code fixes the runtime error but I lose my rollovers.
Anyother ideas?
lyncleary@
Gollum
11-26-2003, 02:59 AM
Lyn, I think your problem stems from the following tag:
<IMG SRC="index_09.gif" ALT="" NAME="textbox" WIDTH=468 HEIGHT=174 id="textbox">
combined with javascipt like this:
changeImages('index_07', 'images/index_07-index_08_over.jpg', 'index_08', 'images/index_08-over.jpg', 'index_09', 'images/index_09.gif', 'index_11', 'images/index_11-index_08_over.gif', 'index_14', 'images/index_14.gif'); return true;
my guess is that if you changed the name of the <img> to 'index_09', it will all start working.