can sum1 whoi knows java script help me plz. im doing a web page with java script included but the java script functions are not working. plz tell me wuts wrong with this page
Code:
<?php
include("config.php");
header("content-type: application/xhtml+xml; charset=utf-8");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
?>
<!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" xml:lang="en" >
<head>
<title>Fun Mobile ™</title>
<script language="javascript">
himg1 = new Image();
himg1.src = "images/h1.png";
himg2 = new Image();
himg2.src = "images/h2.png";
function swapImg(el,newone)
{
iml = "url('"+newone+"')"
el.style.backgroundImage = iml;
}
function gotourl(loc)
{
window.location = loc;
}
</script>
<link rel="StyleSheet" type="text/css" href="style/1.css" />
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />
</head>
<body link="#CC0000" vlink="#CC0000" alink="#CC0000" bgcolor="#555555" bottommargin="0" topmargin="0">
<table width="800" border="0" bordercolor="#000000" style="border-collapse:collapse" align="center" bgcolor="#F0F0F0">
<tr>
<td width="800" height="150" background="images/logo.png" colspan="7">
</td>
</tr>
<tr>
<td width="97" height="31" background="images/1.png">
</td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="218" height="31" background="images/1.png">
</td>
</tr>
<tr>
<td colspan="7" width="800" height="500" valign="top">
<table width="780" border="0" style="border-collapse:collapse" cellspacing="0" cellpadding="0">
</table>
</td>
</tr>
</table>
</body>
</html>


Comment