Results 1 to 3 of 3

Thread: Stay On Top Script (on page load)

  1. #1
    Join Date
    May 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Stay On Top Script (on page load)

    1) Script Title: Stay on Top content script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici.../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!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm inside the .js file try finding the below line:

    Code:
    jQuery(document).ready(function($){
    and replace that with:

    Code:
    jQuery(window).bind('load', function(){
    DD Admin

  3. #3
    Join Date
    May 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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?).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •