Guest swb147 Posted March 10, 2006 Share Posted March 10, 2006 (edited) Hi I would like to have strict xhtml coding on this java script. Can anyone help?I know that fptype is not right but what do I need to do to correct it?If you like you can take a look at the page it is on Things to do inBelow is the code I am currently using <script language="JavaScript" fptype="dynamicanimation"><!--function dynAnimation() {}function clickSwapImg() {}//--></script><script language="JavaScript1.2" fptype="dynamicanimation" src="../animate.js"></script></head><body bgcolor="#FFFFF0" onload="dynAnimation()"><div align="center"> <table border="2" width="100%" background="" height="42"> <tr> <td width="100%" height="36"> <p align="left"><img border="0" src="Graphics/things.jpg" width="610" height="92"></p> </td> </tr> </table></div><div align="center"> <center> <table border="2" width="100%"> <tr> <td width="16%" valign="top" align="center"> <p align="center"><b><u><font face="Arial" color="#FF6600" size="5">ACTIVITIES</font></u></b> <p align="center"> <a onmouseover="document['fpAnimswapImgFP3'].imgRolln=document['fpAnimswapImgFP3'].src;document['fpAnimswapImgFP3'].src=document['fpAnimswapImgFP3'].lowsrc;" onmouseout="document['fpAnimswapImgFP3'].src=document['fpAnimswapImgFP3'].imgRolln" href="cricket.htm"> <img border="0" src="Buttons/cricket1.gif" id="fpAnimswapImgFP3" name="fpAnimswapImgFP3" dynamicanimation="fpAnimswapImgFP3" lowsrc="Buttons/cricket2.gif" width="165" height="37"></a><br> Edited March 13, 2006 by Jonas Link to comment Share on other sites More sharing options...
sbrownii Posted March 11, 2006 Share Posted March 11, 2006 maybe I don't understand the question... but...the language attribute is not supported for the script element in XHTML STRICTthere is no such thing as fptype... atleast I never heard of itsomething that could work <script type="text/javascript"></script> <script type="text/javascript" src="script.js"/> there are too many other errors... sojust run your page through the validator at http://validator.w3.org and read the errors. You have used many attributes that are not allowed (don't exist) in XHTML 1.0 Strict. You failed to include some attributes that are required. You failed to close some tags, such as <img/> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now