jefals — 2010-12-24T09:38:38-05:00 — #1
jake_arkinstall — 2010-12-24T09:49:01-05:00 — #2
It's actually classed as bad practise to have inline onmouseover events nowadays. If they're defined in a script file, it saves one repeating code.
ralphm — 2010-12-24T09:49:47-05:00 — #3
Hi jefals, welcome to SitePoint!
Here is some more info from the SP reference:
jefals — 2010-12-24T12:15:08-05:00 — #4
I appreciate the help!
felgall — 2010-12-24T14:44:03-05:00 — #5
you can use
document.getElementById('xx') = x;
jefals — 2010-12-24T17:50:10-05:00 — #6
yes, I agree, re. keeping it in a separate script file. But I know I will see these types of statements in the htmls, so I am thankful to these forums where I can ask the pros, and get some understanding. I guess the best way to learn is in a classroom where, when you have questions, there's an instructor right there to answer -- but this is a pretty good substitute!.