I've been "fooling around" with other browsers and cheating on my beloved FireFox. There's a right-click menu item in Opera that sends the page you're looking at to validator.w3.org/check ... I've always tried to write good code, at least to the best of my knowledge, but never made an effort to validate my pages. Suddenly, it takes a lot less effort.
I was hoping people could help me understand the proper way to attach javascript code to events? I found this site struggling with png files and IE 6, and wound up sticking around ... people and the great advice they share here have convinced me to purge my site of tables, understand how to create a good navigation structure, really it's amazing how much I've learned here. And it's not for lack of trying elsewhere; people are really good ( and kind ) about figuring out the parts I don't understand and explaining those. I've learned a lot from tutorials as well, but being able to come back and ask questions sets this place apart.
So on that note, I was hoping people could help me understand how to fix the two validation errors on this page?
http://forrestcroce.com/Photos/Daddys-Little-Girl.html
Line 1 is okay: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Error 1: <body onLoad="ShowPortraits()"> there is no attribute "onLoad".
Error 2: <a ="..." onMouseOver="ShowPhotoGalleries()"> there is no attribute "onMouseOver".
So how do I attach code to different browser events? I've seen more C# like coding, where you call out to an external javascript file in the head section, that has some code like document.body.load = "xxx()", and I'm wondering if that's the way to go? This page is a portrait, so it shows that slice of my navigation, but landscape photos and galleries call a different function when they load. And if I'm forced to use that style of coding, how do I deal with my nav links ( which don't have IDs )?
Sorry for the basic question, but any light people can shed will be very much appreciated.