Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 06-07-2007, 06:13 PM page loading...?
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
Hi,

i have seen on some site they have loading things

basically like what shows when u submit posts on here it shows a lil gif with loading page... or soemthing like that.

how would i do that and then when page loaded it goes
or even better is replaced with page loaded in: Xseconds.

does this make sense?...

Im no javscripter i only know the basics...

Thanks
Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
 
Register now for full access!
Old 06-20-2007, 03:55 PM Re: page loading...?
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
I'm not sure exactly what you mean but, I am inferring that they probably just pop up a floating div and count time.
If you know of a couple of sites, I could probably explain better or get a demo started for you
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 06-20-2007, 04:47 PM Re: page loading...?
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
That would be great, erm i cant honestly think of a site off the top of my head which does this, i think yahoo does one some pages (sorry i know thats not very helpful..)

Ok just had quick browse and i found something like what i mean on on www.sourceforge.net hopefully you have downloaded something from it and u will know what i mean.

on the a download page when u have the link to "select a differant mirror" which when you click it it does this loading thing which fades the page and shows the loading animation of circle of dots going round. etc...

anyway im guessing i kind of want two ways to do this, how sourceforget doe sit but like u open the page and it shows a loading gif like that where it fades screen while all images and everything on the page loads (if possible)

and also a way to have it maybe as in the page so u can hav at the top of the page, a lil loading animation (which ill probally get preloaded on the very first page...) which shows loading page... and then once everythings laoded it shows loaded in: 0.74 seconds lik that

Lol
sorry if u dont know what i mean im rubbish at explaining.

Thanks,
Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 06-25-2007, 11:09 AM Re: page loading...?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
In fact, it's pretty easy to do...
You can preview it there: http://webalis.com/wt/

I grabbed a gif from there:
http://www.napyfab.com/ajax-indicators/
for the loading indicator.

And here is the code:
HTML Code:
<html>
  <head>
    <title>test</title>
    <style type="text/css">
    #notice{
      position:absolute;
      align:center;
      width:100%;
      top:50%;
    }
    #notice img{
      margin:auto;
      display: block;
    }
    </style>
  </head>
  <body>
    <div id="notice" style="display:block"><img src="wait.gif" alt="loading..."/></div>
  </body>
  <script type="text/javascript">
  function toggleNotice(){
    if(document.getElementById('notice').style.display=="none"){
      var disp="block";
    }
    else{
      var disp="none";
    }
    
    //For seeing the effect in a empty page
    setTimeout('document.getElementById("notice").style.display="'+disp+'"',2000);
    
    //For the real effect
    //document.getElementById("notice").style.display=disp;
  }

  try{
    window.addEventListener('load', toggleNotice, true); 
  }
  catch(err){
    window.attachEvent('onload', toggleNotice);
  }
  </script>
</html>
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 06-25-2007, 12:44 PM Re: page loading...?
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
Lol, easy but i only know basic javascript lol, thanks a bunch for that way cool.

ill be testing that now. ... tested perfect TP coming your way.

Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 06-25-2007, 05:57 PM Re: page loading...?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Thanks !
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 06-25-2007, 06:02 PM Re: page loading...?
dansgalaxy's Avatar
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
Im happy to give when people are helpful which has been happeing quite alot recently its rather nice i been giving LOADs of TP! :d and taking some... ><

Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to page loading...?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28513 seconds with 12 queries