Tuemmel
08-16-2004, 11:03 PM
I've searched your side a while and tried some things out, but nothing will work right.
I've a
js script in the head of the side:
----------------------------------------------------
<script language =javascript>
function newf(i)
{
var element = document.getElementById(i);
element.style.bgcolor='red';
}
</script>
----------------------------------------------------
and a php script that calls the function
----------------------------------------------------
$newcolor ="newf";
{echo "<td width = '18px'align = 'center' bgcolor = '$getit' id =$i name =$i javascript: onmouseover= $newcolor($i)>$dt.<td>";}
}
---------------------------------------------------------------------
but it's not working. The $i is an integer.
do you see the mistake?
I've a
js script in the head of the side:
----------------------------------------------------
<script language =javascript>
function newf(i)
{
var element = document.getElementById(i);
element.style.bgcolor='red';
}
</script>
----------------------------------------------------
and a php script that calls the function
----------------------------------------------------
$newcolor ="newf";
{echo "<td width = '18px'align = 'center' bgcolor = '$getit' id =$i name =$i javascript: onmouseover= $newcolor($i)>$dt.<td>";}
}
---------------------------------------------------------------------
but it's not working. The $i is an integer.
do you see the mistake?