mazer
03-14-2006, 03:04 PM
I'm trying to validate all the pages on my site as XHTML 1.0 Transitional but I don't know much javascript so I'm totally stuck on this error:
The tag: "img" doesn't have an attribute: "onload" in currently active versions.[XHTML 1.0 transitional]
can anyone help me rewrite this, any help would be greatly appreciated.
I marked the "onload attribute" in red
<table border=0 cellspacing=1 cellpadding=0 width=195>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/mcfarlane_figures.asp" onMouseOver="F_roll('NavigationButton2',1)" onMouseOut="F_roll('NavigationButton2',0)"><IMG ID="NavigationButton2" NAME="NavigationButton2" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/McFarlane_Figures_Np1b.gif" onLoad="F_loadRollover(this,'McFarlane_Figures_NRp2.gif',0)" BORDER=0 ALT="McFarlane Figures"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/magic_the_gathering.asp" onMouseOver="F_roll('NavigationButton3',1)" onMouseOut="F_roll('NavigationButton3',0)"><IMG ID="NavigationButton3" NAME="NavigationButton3" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Magic_the_Gathering_Np1b.gif" onLoad="F_loadRollover(this,'Magic_the_Gathering_NRp2.gif',0)" BORDER=0 ALT="Magic The Gathering Cards"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/news_and_reviews.asp" onMouseOver="F_roll('NavigationButton4',1)" onMouseOut="F_roll('NavigationButton4',0)"><IMG ID="NavigationButton4" NAME="NavigationButton4" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/News_and_Reviews_Np1b.gif" onLoad="F_loadRollover(this,'News_and_Reviews_NRp2.gif',0)" BORDER=0 ALT="Comic News and Reviews"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/publishers.asp" onMouseOver="F_roll('NavigationButton5',1)" onMouseOut="F_roll('NavigationButton5',0)"><IMG ID="NavigationButton5" NAME="NavigationButton5" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Publishers_Np1b.gif" onLoad="F_loadRollover(this,'Publishers_NRp2.gif',0)" BORDER=0 ALT="Comic Publishers"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/Contact_Us.html" onMouseOver="F_roll('NavigationButton6',1)" onMouseOut="F_roll('NavigationButton6',0)"><IMG ID="NavigationButton6" NAME="NavigationButton6" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Contact_Np1b.gif" onLoad="F_loadRollover(this,'Contact_NRp2.gif',0)" BORDER=0 ALT="Contact Us"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/Grading_Standards.asp" onMouseOver="F_roll('NavigationButton7',1)" onMouseOut="F_roll('NavigationButton7',0)"><IMG ID="NavigationButton7" NAME="NavigationButton7" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Grading_Np1b.gif" onLoad="F_loadRollover(this,'Grading_NRp2.gif',0)" BORDER=0 ALT="Comic Grading Standards"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/Postage_and_Terms.html" onMouseOver="F_roll('NavigationButton8',1)" onMouseOut="F_roll('NavigationButton8',0)"><IMG ID="NavigationButton8" NAME="NavigationButton8" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Postage_Np1b.gif" onLoad="F_loadRollover(this,'Postage_NRp2.gif',0)" BORDER=0 ALT="Postage and Terms"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/Links.asp" onMouseOver="F_roll('NavigationButton9',1)" onMouseOut="F_roll('NavigationButton9',0)"><IMG ID="NavigationButton9" NAME="NavigationButton9" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Links_Np1b.gif" onLoad="F_loadRollover(this,'Links_NRp2.gif',0)" BORDER=0 ALT="Links"></A></TD>
</TR>
The tag: "img" doesn't have an attribute: "onload" in currently active versions.[XHTML 1.0 transitional]
can anyone help me rewrite this, any help would be greatly appreciated.
I marked the "onload attribute" in red
<table border=0 cellspacing=1 cellpadding=0 width=195>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/mcfarlane_figures.asp" onMouseOver="F_roll('NavigationButton2',1)" onMouseOut="F_roll('NavigationButton2',0)"><IMG ID="NavigationButton2" NAME="NavigationButton2" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/McFarlane_Figures_Np1b.gif" onLoad="F_loadRollover(this,'McFarlane_Figures_NRp2.gif',0)" BORDER=0 ALT="McFarlane Figures"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/magic_the_gathering.asp" onMouseOver="F_roll('NavigationButton3',1)" onMouseOut="F_roll('NavigationButton3',0)"><IMG ID="NavigationButton3" NAME="NavigationButton3" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Magic_the_Gathering_Np1b.gif" onLoad="F_loadRollover(this,'Magic_the_Gathering_NRp2.gif',0)" BORDER=0 ALT="Magic The Gathering Cards"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/news_and_reviews.asp" onMouseOver="F_roll('NavigationButton4',1)" onMouseOut="F_roll('NavigationButton4',0)"><IMG ID="NavigationButton4" NAME="NavigationButton4" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/News_and_Reviews_Np1b.gif" onLoad="F_loadRollover(this,'News_and_Reviews_NRp2.gif',0)" BORDER=0 ALT="Comic News and Reviews"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/publishers.asp" onMouseOver="F_roll('NavigationButton5',1)" onMouseOut="F_roll('NavigationButton5',0)"><IMG ID="NavigationButton5" NAME="NavigationButton5" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Publishers_Np1b.gif" onLoad="F_loadRollover(this,'Publishers_NRp2.gif',0)" BORDER=0 ALT="Comic Publishers"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/Contact_Us.html" onMouseOver="F_roll('NavigationButton6',1)" onMouseOut="F_roll('NavigationButton6',0)"><IMG ID="NavigationButton6" NAME="NavigationButton6" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Contact_Np1b.gif" onLoad="F_loadRollover(this,'Contact_NRp2.gif',0)" BORDER=0 ALT="Contact Us"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/Grading_Standards.asp" onMouseOver="F_roll('NavigationButton7',1)" onMouseOut="F_roll('NavigationButton7',0)"><IMG ID="NavigationButton7" NAME="NavigationButton7" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Grading_Np1b.gif" onLoad="F_loadRollover(this,'Grading_NRp2.gif',0)" BORDER=0 ALT="Comic Grading Standards"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/Postage_and_Terms.html" onMouseOver="F_roll('NavigationButton8',1)" onMouseOut="F_roll('NavigationButton8',0)"><IMG ID="NavigationButton8" NAME="NavigationButton8" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Postage_Np1b.gif" onLoad="F_loadRollover(this,'Postage_NRp2.gif',0)" BORDER=0 ALT="Postage and Terms"></A></TD>
</TR>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=195 HEIGHT=30><A HREF="./html/Links.asp" onMouseOver="F_roll('NavigationButton9',1)" onMouseOut="F_roll('NavigationButton9',0)"><IMG ID="NavigationButton9" NAME="NavigationButton9" HEIGHT=25 WIDTH=170 SRC="./assets/images/autogen/Links_Np1b.gif" onLoad="F_loadRollover(this,'Links_NRp2.gif',0)" BORDER=0 ALT="Links"></A></TD>
</TR>