styleBunny
Technical User
Hi there,
I haven't done any js for ages and i canna work out why this function wont swap the image AND write a new line of text! They both work fine by themselves, but when slapped together, there is no love. i get the feeling it does the image swap, then gets rid of it and writes the text. Wierd. Any help is appreciated.
Cheers
Paul.
<SCRIPT LANGUAGE = Javascript>
function ChangeImage(x)
{
document.IMG1.src = "gif/image" + x + ".gif";
document.writeln("hello");
}
</SCRIPT>
I haven't done any js for ages and i canna work out why this function wont swap the image AND write a new line of text! They both work fine by themselves, but when slapped together, there is no love. i get the feeling it does the image swap, then gets rid of it and writes the text. Wierd. Any help is appreciated.
Cheers
Paul.
<SCRIPT LANGUAGE = Javascript>
function ChangeImage(x)
{
document.IMG1.src = "gif/image" + x + ".gif";
document.writeln("hello");
}
</SCRIPT>