You get the number as an integer and put it through the following function:
function zero(number) {
return (number < 10) ? "0" + number : number;
}
However, be aware that this will return a string rather than an integer.
Hope this helps,
Spiny
Use an array of <td>s by giving them all the same ID. This will make it much easier to isolate the one yuou want. It also stops the need to have a counter and incrementor in your php.
<td id="tableCell"> </td>
The above td will be tableCell[0]
<td id="tableCell"> </td>
The above td...
Personally, I'd forget CGI and use ASP. It's more like VBScript, ties in perfectly with VBScript, and is a lot less hassle in the long run. And if you can do VBScript, then you can do ASP. The only problem is finding a host.
Hope this helps,
Spiny
Retrieve it like this:
var imgLeft=document.all.imageName.style.left;
var imgTop=document.all.imageName.style.top;
that's asuming they're positioned absolutely.
Hope this helps,
Spiny
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.