I have a very simple problem, but I have spent over three days to find the solution, but unsuccesfully.
I have a variable a.
If a=1 while loading the page I want a text and an image to show on my web page.
If a=0 while loading the page I want the text and image to remain hidden.
With text I do it like this:
______________________________________________
<SCRIPT LANGUAGE="JavaScript">
if (a==1) document.write("This is the text");
</SCRIPT>
______________________________________________
However i seem not to be able to include an image in the
write() function. Nor can I use the 'if'-statement in HTML.
How can I solve this?
I hope you can help me.
I have a variable a.
If a=1 while loading the page I want a text and an image to show on my web page.
If a=0 while loading the page I want the text and image to remain hidden.
With text I do it like this:
______________________________________________
<SCRIPT LANGUAGE="JavaScript">
if (a==1) document.write("This is the text");
</SCRIPT>
______________________________________________
However i seem not to be able to include an image in the
write() function. Nor can I use the 'if'-statement in HTML.
How can I solve this?
I hope you can help me.