Hi,

I have something like this on my page:

<body>
<div id="p1" style="position: absolute; width: 40px; height: 40px; z-index:
1">TEST</div>
</body>

The question is: how do I move it from its position, let's say, 15 pixels
right and 30 pixels down?

I'm using vbscript.

Thanks,
Eugene

Re: move page elements with vbscript? by Stefan

Stefan
Wed May 30 03:15:17 CDT 2007

Change it to
<div id="p1" style="position: absolute; width: 40px; height: 40px; z-index: 1; left:15px; top:30px">TEST</div>
or just drag it on the design view
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


"Eugene" <Eugene@discussions.microsoft.com> wrote in message news:9D225889-E152-408F-9D9A-54FC6BBEC9EF@microsoft.com...
| Hi,
|
| I have something like this on my page:
|
| <body>
| <div id="p1" style="position: absolute; width: 40px; height: 40px; z-index:
| 1">TEST</div>
| </body>
|
| The question is: how do I move it from its position, let's say, 15 pixels
| right and 30 pixels down?
|
| I'm using vbscript.
|
| Thanks,
| Eugene



Re: move page elements with vbscript? by Eugene

Eugene
Thu May 31 00:26:01 CDT 2007

Well, I know how to position this on the page.
But how to move it from its position to whatever I want, using vbscript?
These things didn't help me:

1) document.getElementByID("p1").offsetleft = 15
2) document.getElementByID("p1").currentstyle.left =
document.getElementByID("p1").currentstyle.left + 15

thanks in advance,
Eugene

"Stefan B Rusynko" wrote:

> Change it to
> <div id="p1" style="position: absolute; width: 40px; height: 40px; z-index: 1; left:15px; top:30px">TEST</div>
> or just drag it on the design view
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> _____________________________________________
>
>
> "Eugene" <Eugene@discussions.microsoft.com> wrote in message news:9D225889-E152-408F-9D9A-54FC6BBEC9EF@microsoft.com...
> | Hi,
> |
> | I have something like this on my page:
> |
> | <body>
> | <div id="p1" style="position: absolute; width: 40px; height: 40px; z-index:
> | 1">TEST</div>
> | </body>
> |
> | The question is: how do I move it from its position, let's say, 15 pixels
> | right and 30 pixels down?
> |
> | I'm using vbscript.
> |
> | Thanks,
> | Eugene
>
>
>