<script language=html>
function mover() {
document.getElementById(<?php echo $isp ?>).style.color="red";
document.getElementById(<?php echo $isp ?>).style.font-size="18";
}
</script>
Need a little help
I can't figure out why this function won't work. The php variable is valid, and when I take away the font-size changing part it works. How can I change the font size through this?
You may need the parameter to getElementById() to be in quotes:
Also be sure there's actually elements that exist in the document with that ID [wink]
<script language=html>function mover() {document.getElementById("<?php echo $isp ?>").style.color="red";document.getElementById("<?php echo $isp ?>").style.font-size="18";}</script>
Also be sure there's actually elements that exist in the document with that ID [wink]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement