...

View Full Version : if statement wont work



Squishinator
06-20-2009, 07:23 PM
Here is my code.


<script type="text/javascript">
var change1 = 1;
function changeDiv1()
{
if (change1 == 1)
{
change1 = 2;
document.getElementById("Left").style.width = "15px";
document.getElementById("Right1").style.width = "930px";
document.getElementById("X").innerHTML = "||";
{
}

Philip M
06-20-2009, 07:59 PM
document.getElementById("X").innerHTML = "||";
{ // should be }
}

Have you left off the closing </script> tag?


It is your responsibility to die() if necessary….. - PHP Manual



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum