Aiken Full Member
Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 34 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Reposition Element (11th Jan 10 at 5:49pm UTC) | | You'd need to give the element some form of positioning - absolute or fixed etc... | |
|
Aiken Full Member
Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 34 Joined:
pmskypemsnyahooxfire | |
dog199200 Guest | Re: Reposition Element (11th Jan 10 at 6:25pm UTC) | | i'm assume by the positioning is in the onclick feature?
the 50,50 ? | |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Reposition Element (11th Jan 10 at 6:28pm UTC) | | Is it working? | |
|
Aiken Full Member
Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 34 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Reposition Element (11th Jan 10 at 6:45pm UTC) | | What's the forum link so that I can take a look. | |
|
Aiken Full Member
Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 34 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Reposition Element (11th Jan 10 at 7:09pm UTC) | | You don't actually need the code that you have in there at the moment from the looks of it,it doesn't do anything! O.o | |
|
Aiken Full Member
Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 34 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Reposition Element (11th Jan 10 at 7:20pm UTC) | | Code: - <script>
- function RePos(WinID,X,Y){
- get(WinID,'id').style.top = Y;
- get(WinID,'id').style.left = X;
- }
- </script>
-
- <div id = 'x' onclick = "RePos('x', '500px', '500px');" style = 'position: fixed; padding: 50px; border: 1px solid #000000; background: #800000; color: #FFFFFF;'>
- This is a repositionable box!
- </div>
That code works fine. | |
|
Aiken Full Member
Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 34 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Reposition Element (11th Jan 10 at 7:25pm UTC) | | You'll need to include the 'numberpx' in it. Without the px declaration it won't recognise what you want to do. At least my testing revealed that. You can either throw it into the function, or the call. | |
|
Aiken Full Member
Posts: 333 Status: Offline Gender: Male Location: In a very lonely place, the domain of despair Age: 34 Joined:
pmskypemsnyahooxfire | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: Reposition Element (11th Jan 10 at 8:08pm UTC) | | Good to know! | |
|