Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 22:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Lade-Animation â la YT-Industries?

Discussion on Lade-Animation â la YT-Industries? within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1


 
aiimsh0ckz's Avatar
 
elite*gold: 158
Join Date: Apr 2012
Posts: 606
Received Thanks: 76
Unhappy Lade-Animation â la YT-Industries?

Moin Coder & Coderinnen.

Kurz und knackig, wie's der Titel sagt:

Wie bekommt man Lade-Animationen hin, die "abgespielt" werden, bis eine Seite geladen ist?



Kollege meinte, das sollte alles mit PHP/JS/Ajax gehen - er weiß aber nicht selbst wie und im Web werde ich darüber auch nicht schlüssig.

Kann mir da jemand helfen?

Greez, aiimsh0ckz.
aiimsh0ckz is offline  
Old 05/06/2016, 15:02   #2



 
ElDiabolus's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 1,458
Received Thanks: 277
Denke mal alles ausblenden, deine Warteanimation einblenden, dann mit JQuery auf

warten und dann wieder alles einblenden und die Warteanimation ausblenden. So würde ich es spontan probieren.
ElDiabolus is offline  
Old 05/06/2016, 23:13   #3
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 701
turk55 is offline  
Old 06/16/2016, 16:13   #4

 
Punisher.biz's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 978
Received Thanks: 160
turk55, kompletter Schwachsinn.

ElDiabolus liegt da schon ganz richtig.

Würde aber nutzen.
Punisher.biz is offline  
Thanks
1 User
Old 06/18/2016, 21:55   #5
 
elite*gold: 0
Join Date: Apr 2015
Posts: 428
Received Thanks: 361
Sonst die Kompenenten in JavaScrpt:

um zu Prüfen, ob die Seite geladen wurde...

PHP Code:
window.onload = function () {} 
PHP Code:
window.addEventListener('load', function (e) { e.preventDefault(); } //Mit Standartangaben 
PHP Code:
window.attachEvent('load', function (e) { e.preventDefault(); } //Mit Standartangaben 
Um einen Setter oder Getter zu machen...

PHP Code:
Object.prototype.__defineGetter__ Object.prototype.__defineGetter // Alternativ auch setzbar mit [ Object.defineProperty / get / set ] 
oder...

PHP Code:
window.firstPart false// <- global
window.secondPart false// <- global
 
firstSetter(); // firstSetter wird sofort ausgeführt
 
setTimeout(function() { secondSetter() }, 1000); // <- secondSetter wird nach einer Sekunde ausgeführt
 
function firstSetter() {
    
window.firstPart true;
 
    if (
window.secondPartstartApplication() // Wenn secondPart == true ist, starte die Funktion start()
}
 
function 
secondSetter() {
    
window.secondPart true;
 
    if (
window.firstPartstartApplication() // Wenn firstPart == true ist, starte die Funktion start()
}
 
 
function 
startApplication() {
    
alert('Beide sind angekommen!'// Wird ausgeführt, wenn firstPart == true und secondPart == true

Somit kannst du dies dann verbinden
#Metho is offline  
Reply




All times are GMT +2. The time now is 22:16.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.