G
Glen Watkins
Function setToWidth()
{
var x = 0
.........code......code........code.........
return x;
}
<body>
document.write("<IMG SRC='myimage.jpg' width='setToWidth()' height='100'>");
</body>
------
I was hoping to set the width to the returned value from the function.
The function was tested and works perfectly.
Any help would be appreciated.
Thanks
{
var x = 0
.........code......code........code.........
return x;
}
<body>
document.write("<IMG SRC='myimage.jpg' width='setToWidth()' height='100'>");
</body>
------
I was hoping to set the width to the returned value from the function.
The function was tested and works perfectly.
Any help would be appreciated.
Thanks