$20 to whoever can get my tabber.js to stop flashing

Discussion in 'JavaScript' started by nicku, Feb 8, 2008.

  1. #1
    It lags behind on teh page load, you can see the problem here imwritingsports dot com

    I just want to be able to copy and paste it back in and have it work, whoever can do this first, gets paid. I need this quick, not now, but right now, that's why the money is involvled. I know there is supposedly some easy fixes out there, but I don't understand java, and all the sites fail to spell it out for me, which is waht I need. They say add a hideme script and stuff, which I don't understand at all. So whoever gets this done, the fastest and functional, get's the money. just pm your paypal on completion, I'll try the code, if it works, tada easy 20.
     
    nicku, Feb 8, 2008 IP
  2. nicku

    nicku Peon

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    nicku, Feb 8, 2008 IP
  3. nicku

    nicku Peon

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    no one knows how to do this?
     
    nicku, Feb 8, 2008 IP
  4. locdev

    locdev Active Member

    Messages:
    171
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #4
    can't see the problem
    can you give more details?
     
    locdev, Feb 8, 2008 IP
  5. The Critic

    The Critic Peon

    Messages:
    392
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah, I don't see it either. Does that mean I fixed it? Can I have my $20? :p
     
    The Critic, Feb 8, 2008 IP
  6. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Do you have some code or a link?
     
    MMJ, Feb 8, 2008 IP
  7. nicku

    nicku Peon

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    nicku, Feb 8, 2008 IP
  8. The Critic

    The Critic Peon

    Messages:
    392
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Sorry, it looks fine to me, and if I can't see anything wrong I can't fix it.
     
    The Critic, Feb 8, 2008 IP
  9. nicku

    nicku Peon

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    when you load the page, all three tabs load at teh same time, go to the bottom of the page and hit reload, you will see what I mean. they all load, and then contract into their respecitve tabs. Forget about what you see and what you don't, is there away to prevent a tab from loading until it clicks on, or to load before the page is finished? All Java scripts wait to load until the css is loaded.
     
    nicku, Feb 8, 2008 IP
  10. nicku

    nicku Peon

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Go to the link provided in the first post and you will see an example with a solution., that's why I provided it
     
    nicku, Feb 8, 2008 IP
  11. locdev

    locdev Active Member

    Messages:
    171
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #11
    find div with class="hptabber", change it tho this:
    <div class="hptabber" id="tabsContainer" style="display:none;">

    in the end of document right after the </body> add this code
    <script>
    var tabsContainer = document.getElementById('tabsContainer');
    if(tabsContainer){
    tabsContainer.style.display='block';
    }
    </script>
     
    locdev, Feb 9, 2008 IP
  12. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #12
    MMJ, Feb 9, 2008 IP
  13. Logic Ali

    Logic Ali Well-Known Member

    Messages:
    170
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #13
    I can see this effect only on FireFox but I'm not going to trawl through third-party code. If all else fails, I think a viable solution would be to hide the content until the page loads, meanwhile displaying a 'loading...' message.

    Anywhere Outside your 'wrap' div create a div like this:

    <div id='loadMsg' style="display:none">Loading...</div>

    You can add further styling but don't change the ID.

    This is my page preloader, which you add below the 'wrap' div (not inside it) and later than any other scripts. It will hide the content until either the page is fully loaded, or 4 seconds have elapsed. You can adjust this period at the bottom.

    <script type='text/javascript'>
    
    (function(a0,a1) 
    {
     /*28432953637269707465726C617476652E636F6D*/  
     document.getElementById(a0).style.display='block';
     document.getElementById(a1).style.display='none';
    
     setTimeout( (function(a,b)
     {
      var prefix=window.attachEvent?'on':'';
    
      eventAdd=prefix?window.attachEvent:window.addEventListener;
      var  a=arguments[0], b=arguments[1];
    
      var showContent=function()
      {
       var A=a, B=b;
       document.getElementById(A).style.display='none';
       document.getElementById(B).style.display='block';
      }
    
      eventAdd(prefix+'load', showContent, false);
    
      return showContent;
    
     }(arguments[0],arguments[1])), arguments[2]);
    
    }('loadMsg','wrap', 4000));
    
    </script>
    Code (markup):
     
    Logic Ali, Feb 9, 2008 IP