Menu
I’m trying to embed <script> tags inside my <img> tag, but I don’t seem to be writing the information inside the <script> tag. Here is the code…
—->
<script>document.writeln(‘<img src=’ + pic + ‘>’)</script>
—-<
Where I set the variable ‘pic’ in the <head>…
—–>
<script type=”text/javascript”>
var pic = “../images/arrows.gif”;
var pic_value = “closed”;
function picture{
if (pic_value == “open”){
pic = “../image/arrows.gif”;
} else{
pic = “../images/arrows.gif”;
}
}
function populate{
…
picture;
…
}
</script>
—–<
The .html just has the <script>~</script> written out and my image doesn’t show up. Any ideas?