I ask for some help on the Post/request a Script sub group. I never did get a reply. But while I was waiting I started working on changing the VBscript to JavaScript. I'm happy to say I now have a working JavaScript that does the same thing that the VBscript was doing. The only thing is that it only works for IE.
When I run it with NS I get javascript error line 47: pic is not defined. "pic" is the Id for my background image
At line 47: cx = wW/3-pic.width
48: cy = wH/3-pic.height
61: pic.style.left=x;
62: pic.style.top=y;
So it looks like NS does not like the terms pic.width, pic.height, pic.style.left and pic.style.top So what should I use for Netscape.
I have attached the complete page as a text file and here is the url to see how the page works right now:
When I run it with NS I get javascript error line 47: pic is not defined. "pic" is the Id for my background image
At line 47: cx = wW/3-pic.width
48: cy = wH/3-pic.height
61: pic.style.left=x;
62: pic.style.top=y;
So it looks like NS does not like the terms pic.width, pic.height, pic.style.left and pic.style.top So what should I use for Netscape.
I have attached the complete page as a text file and here is the url to see how the page works right now:
Comment