Link to home
Start Free TrialLog in
Avatar of MMsabry
MMsabry

asked on

onload attribute not valid xhtml strict? what can i replace this with?

I am trying to make my code xhtml strict compliant - however, i receive an error message that:

"You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. "

Can anyone explain to me how I can solve this? Should i change my doc type to transitional? Or is there another way I can change the code to keep this doc type?

my code is:

<td width="328" height="19" align="center" valign="middle"><img src="images/Karnak_jpg.jpg" name="karnak" width="300" height="300" id="karnak" alt="karnak temple" onload="P7_Snap('karnak','Layer1',-7,303)" /></td>
            </tr>

i'm using dreamweaver, with an extension i downloaded from projectseven.com called "snap layers"

does anyone have a suggestion?
ASKER CERTIFIED SOLUTION
Avatar of Zyloch
Zyloch
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MMsabry
MMsabry

ASKER

thanks, that did it!