PDA

View Full Version : Stay On Top Script (on page load)



Zanato
05-04-2010, 09:25 AM
1) Script Title: Stay on Top content script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/stayontop.htm

3) Describe problem: How would I get this script (and it's contents) to not load until the rest of the page has loaded? I'm getting a 'flicker' of the content div on slower connections until the script loads and then it fades in in it;s proper location.

Thank you!

ddadmin
05-05-2010, 08:30 AM
Hmm inside the .js file try finding the below line:


jQuery(document).ready(function($){

and replace that with:


jQuery(window).bind('load', function(){

Zanato
05-05-2010, 09:51 AM
Nah, not working I'm afraid. Changing the above code seems to cause the styling (position:fixed etc) to be omitted. The div is still rendered and fades but it is inline (if you know what I mean?).