View Single Post
Old 09-12-2008, 11:27 AM   #1
student101
 
Join Date: Dec 2007
Posts: 379
Question validating javascript onmouseover?

How to validate the javscript parts?
I know of the
Code:
<!-- // and end in // --> or 
//<![CDATA[ and end in //]]>
Using xhtml1-transitional DOCTYPE
Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
PHP Code:
<a href="page.php" onmouseover="showtext('&lt;div style=&quot;padding-left:40px&quot;><a href=\'link1.php\'>Link1</a> | <a href=\'link2.php\'>Link2</a> | <a href=\'link3.php\'>Link3</a></div>','a', 'No')" onmouseout="hidetext()">Page1</a><img src="img/submenu.gif" alt=" " name="a" border="0" /> 
I managed to get it down to 29 Errors, 28 warning(s) , complaining about;
Quote:
character "<" is the first character of a delimiter but occurred as data
Cheers
__________________
Amateurs ... Built the ark.
Professionals ... Built the Titanic.
specificity [sound like spe-sifis-ity]
student101 is offline   Reply With Quote