I have stumbled upon your great DragResize script, but I am having problems modifying it the way I want.
What I want is to move a div outside the screen (left: -2000px; top: -2000px) when the page is loaded, and after 4 seconds I want it to be moved back into the visible field (left: 0px; top: 0px; height: 100%; width: 100%;). The reason why I want this is that the div contains a mediaplayer object which I want to hide while it buffers.
Any ideas on how to modify the code to do this?
All answers appreciated!
2) Angus TurnbullGroup: Moderators Posts: 4235Joined: 7 Dec 2003Location: New ZealandIP: 202.137.--.--
Posted:
There's no reason why you need to use this script to accomplish that! Simply position it offscreen using CSS and use a short setTimeout() at some point to call a function that sets its position to where you want it.
However, that raises questions about accessibility. Most users are used to media players buffering, and 4 seconds is a rather arbitrary time (some of your users will be on dialup and some on 100mbit+ broadband, after all). Why not just leave it the way it is in the middle of the page like every other website?