Wer ist online

Gäste online: 1
Mitglieder online: 0

Letzte Mitglieder
Julian888
Offline
Denni234
Offline
Harlekin
Offline
tanzi
Offline
Schwarze
Offline
Haschi
Offline
sternklar
Offline
djmartin
Offline
Rene Weber
Offline
RPB
Offline
Mehr anzeigen


Wir suchen...

Moderator
Gast Moderator
Spezial Moderator
DJ
Chat Wache
Sponsor
Techniker
Grafiker

Jetzt Bewerben!

Shoutbox

Du musst eingeloggt sein um eine Nachricht zu schreiben.

Schwarze
Schwarze
aus
30. April 2024 01:47
Offline
Verwarnstatus: warningwarningwarningwarning

Michael71
Michael71
aus
08. August 2023 17:02
Offline
Verwarnstatus: warningwarningwarningwarning
hallo suche PHP

Layout-24
Layout-24
aus
01. Januar 2022 18:37
Offline
Verwarnstatus: warningwarningwarningwarning
Wir von layout-24 wünschen euch ein frohes neues Jahr 2022. Bleibt gesund.

Shoutbox Archiv

Shoutbox Beiträge: 531
©


Thema ansehen

PHPFusion-4you.de » PHP-Fusion v7 -Hilfe und Support » MODS/Hacks V7
 Thema drucken
Bitte warten wird geladen
maxxe
ich hab hier folgendes script es soll zeigt mir eine Text/Bild während die seite geladen wird wenn sie fertig geladen hat soll es per body onload ein den Div inhalt ändern. und anstatt dem Bittewarten in dem div sollen dann die Werte von der Datenbank erschienen.
hab das mal so gemacht klappt aber nicht!
oder geht das nicht mit bodyonload?


Download Code  GeSHi: PHP
  1. <body onload="loadImages(document.getElementById("bilder"));">
gewandelt in 0.017 Sekunden, benutzt wurde GeSHi 1.0.8.10



Download Code  GeSHi: PHP
  1. <script type="text/javascript">
  2. function loadImages(fromURL){
  3.  
  4. document.getElementById("bilder").innerHTML = "Bitte warten, es werden neue Bilder gleaden";
  5.  
  6. var xmlHttp = null;
  7. // Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
  8. if (typeof XMLHttpRequest != 'undefined') {
  9. xmlHttp = new XMLHttpRequest();
  10. }
  11. if (!xmlHttp) {
  12. // Internet Explorer 6 und älter
  13. try {
  14. xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
  15. } catch(e) {
  16. try {
  17. xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  18. } catch(e) {
  19. xmlHttp = null;
  20. }
  21. }
  22. }
  23. if (xmlHttp) {
  24. xmlHttp.open('GET', fromURL, true);
  25. xmlHttp.onreadystatechange = function () {
  26. if (xmlHttp.readyState == 4) {
  27. document.getElementById("bilder").innerHTML = xmlHttp.responseText;
  28. }
  29. };
  30. xmlHttp.send(null);
  31. }
  32.  
  33. }
  34. </script>
gewandelt in 0.018 Sekunden, benutzt wurde GeSHi 1.0.8.10



hier mein div


Download Code  GeSHi: PHP
  1. echo '<div id="bilder" style="border:1px solid gray; width:auto;padding: 10px ">';
  2.  
  3.  
  4.  
  5. echo "<div id='tcontent1' class='tabcontent'>
  6.  
  7.  
  8.  
  9. <table width='30%' align='left' style='border:1px; border-color:#000000; border-style:solid;' cellpadding='0' cellspacing='0' >
  10. <tr>
  11. <td>";
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. // download count
  19. echo "
  20. <tr><td align='left' class='tbl2' width='20%'>".$locale&#91;'PDP004'&#93;.":<td align='center' class='tbl2'>"
  21. .$data&#91;'count'&#93;."</td>
  22. </tr>";
  23.  
  24. // File Grö�e
  25. if(!empty($result1&#91;'file_size'&#93;) ) {
  26. echo "<tr><td align='left' class='tbl1' width='20%'>"
  27. .$locale&#91;'PDP029'&#93;.": <td align='center' class='tbl1'>".$result1&#91;'file_size'&#93;."</td>";
  28. }
  29.  
  30.  
  31. //Passwort
  32. if(!empty($result1&#91;'file_pw'&#93;) ){
  33.  
  34. echo "<tr><td align='left' class='tbl2' width='20%'>Passwort:<td align='center' class='tbl2'>".$result1&#91;'file_pw'&#93;." </td>";
  35.  
  36. }
  37.  
  38. else
  39. {
  40. echo"
  41. <tr><td align='left' class='tbl2' width='20%'>Passwort:<td align='center' class='tbl2'>keins</td>";
  42.  
  43. }
  44.  
  45. //Sprache
  46.  
  47.  
  48. echo " <tr><td align='left' class='tbl1' width='20%'> Sprache:<td align='center' class='tbl1'><img src='".$result&#91;'dl_lang'&#93;."'>";
  49.  
  50.  
  51. // Uploader
  52. echo "<tr><td align='left' class='tbl2' width='20%'>Uploader:<td align='center'class='tbl2'>"
  53. .($data&#91;'user_id'&#93;
  54. ? "<a href='profile.php?id=".$data&#91;'user_id'&#93;."'>"
  55. .$data&#91;'user_name'&#93;."</a>"
  56. : "")."</td>\n";
  57.  
  58.  
  59. //Hochgeladen
  60. echo "<tr><td align='left' class='tbl1' width='20%'>Hochgeladen:<td align='center'class='tbl1'>"
  61. .showdate("shortdate", $data&#91;'mtime'&#93;)."</td>\n";
  62.  
  63.  
  64.  
  65.  
  66.  
  67. render_download_rating($id);
  68.  
  69.  
  70. echo" </td></tr></table>";
  71.  
  72.  
  73.  
  74. echo "<table width='50%' border='0' align='right' cellpadding='0' cellspacing='0'>
  75. <tr>
  76. <td><font size='2' color='#000000'>Herzlich Willkommen
  77.  
  78. </td></tr></table><p>&nbsp;</p>";
  79. echo "<p>&nbsp;</p>";
  80. echo "<div align='center' style='top: 160px; padding-top: 160px;' ><table width='50%' border='0' height='190' align='center' cellpadding='0' cellspacing='0' valign='bottom'>
  81. <tr>
  82. <td class='dl_back'>";dl_download_rating($id);
  83.  
  84. echo "<a href='nojavascript...urlwechsel()'>
  85. <h2>Download</h2>
  86. </a>";
  87.  
  88. echo "</td></tr></table></div>";
  89. echo "</div>";
  90.  
  91. echo '<div id="tcontent2" class="tabcontent">
  92.  
  93. <a href="javascript:show();">Bilder laden ...</a><br />Tab content 2 here<br />
  94. </div>
  95.  
  96. <div id="tcontent3" class="tabcontent">
  97. Tab content 3 here<br />Tab content 3 here<br />
  98. </div>';
  99.  
  100. echo "<div id='tcontent4' class='tabcontent'><div><center><pre><smallfont>NFO:</smallfont><hr><font style='font-size:10pt; line-height:12pt;' face='Terminal'>".$result&#91;'dl_nfo'&#93;."</font><hr></pre></center>
  101. </div>";
  102.  
  103. echo '</div>';
gewandelt in 0.025 Sekunden, benutzt wurde GeSHi 1.0.8.10
Teile diesen Forenbeitrag:
Facebook Google Windows-Live Twitter Yahoo
 
Rick
das Problem, wird bereits auf einer anderen Seite diskutiert

http://www.phpfus...ost_145495

Bearbeitet von emblinux am 16. Juni 2009 17:52

Teile diesen Forenbeitrag:
Facebook Google Windows-Live Twitter Yahoo
 
http://www.phpfusion-4you.deWeb
Pitti2
Sind jedoch auch auf kein Ergebnis gekommen, suche auch diesen Ladebalken für den Login! zB. wie hier!
 
Rick
Hier mal die die ganze setuser.php,
An der stelle wo "echo '<img border="0" src" steht müsst hier euren Image von der Wartegrafik einbinden, das in Zeile 39.
Die Grö�e der Grafik kann in "width="100" height="15" angepasst werden, jedoch sollte keine all zu gro�e Grafiken verwendet werden.

Hier der Code:

Download Code  GeSHi: PHP
  1. <?php
  2. /*-------------------------------------------------------+
  3. | PHP-Fusion Content Management System
  4. | Copyright (C) 2002 - 2008 Nick Jones
  5. | http://www.php-fusion.co.uk/
  6. +--------------------------------------------------------+
  7. | Filename: setuser.php
  8. | Author: Nick Jones (Digitanium)
  9. +--------------------------------------------------------+
  10. | This program is released as free software under the
  11. | Affero GPL license. You can redistribute it and/or
  12. | modify it under the terms of this license which you
  13. | can read by viewing the included agpl.txt or online
  14. | at http://www.gnu.org/licenses/agpl.html. Removal of this
  15. | copyright header is strictly prohibited without
  16. | written permission from the original author(s).
  17. +--------------------------------------------------------*/
  18. require_once "maincore.php";
  19. include THEME."theme.php";
  20.  
  21. echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
  22. echo "<html>\n<head>\n";
  23. echo "<title>".$settings&#91;'sitename'&#93;."</title>\n";
  24. echo "<meta http-equiv='Content-Type' content='text/html; charset=".$locale&#91;'charset'&#93;."' />\n";
  25. echo "<meta http-equiv='refresh' content='2; url=".$settings&#91;'opening_page'&#93;."' />\n";
  26. echo "<meta name='description' content='".$settings&#91;'description'&#93;."' />\n";
  27. echo "<meta name='keywords' content='".$settings&#91;'keywords'&#93;."' />\n";
  28. echo "<style type='text/css'>html, body { height:100%; }</style>\n";
  29. echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css' />\n";
  30. if (function_exists("get_head_tags")) { echo get_head_tags(); }
  31. echo "</head>\n<body class='tbl2 setuser_body'>\n";
  32.  
  33. echo "<table style='width:100%;height:100%'>\n<tr>\n<td>\n";
  34.  
  35. echo "<table cellpadding='0' cellspacing='1' width='80%' class='tbl-border center'>\n<tr>\n";
  36. echo "<td class='tbl1'>\n<div style='text-align:center'><!--setuser_pre_logo--><br />\n";
  37. echo "<img src='".BASEDIR.$settings&#91;'sitebanner'&#93;."' alt='".$settings&#91;'sitename'&#93;."' /><br /><br />\n";
  38.  
  39. echo '<img border="0" src="http://www.DEINE Domain/GRAFIK.gif " width="100" height="15"><br /><br />';
  40.  
  41. if (iMEMBER && (isset($_REQUEST&#91;'logout'&#93;) && $_REQUEST&#91;'logout'&#93; == "yes")) {
  42. header("P3P: CP='NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'");
  43. setcookie(COOKIE_PREFIX."user", "", time() - 7200, "/", ".phpfusion-4you.de", "0");
  44. setcookie(COOKIE_PREFIX."lastvisit", "", time() - 7200, "/", ".phpfusion-4you.de", "0");
  45. $result = dbquery("DELETE FROM ".DB_ONLINE." WHERE online_ip='".USER_IP."'");
  46. echo "<strong>".$locale&#91;'global_192'&#93;.$userdata&#91;'user_name'&#93;."</strong><br /><br />\n";
  47. } else {
  48. if (isset($_GET&#91;'error'&#93;) && $_GET&#91;'error'&#93; == 1) {
  49. echo "<strong>".$locale&#91;'global_194'&#93;."</strong><br /><br />\n";
  50. } elseif (isset($_GET&#91;'error'&#93;) && $_GET&#91;'error'&#93; == 2) {
  51. echo "<strong>".$locale&#91;'global_195'&#93;."</strong><br /><br />\n";
  52. } elseif (isset($_GET&#91;'error'&#93;) && $_GET&#91;'error'&#93; == 3) {
  53. echo "<strong>".$locale&#91;'global_196'&#93;."</strong><br /><br />\n";
  54. } else {
  55. if (isset($_COOKIE&#91;COOKIE_PREFIX.'user'&#93;)) {
  56. $cookie_vars = explode(".", $_COOKIE&#91;COOKIE_PREFIX.'user'&#93;);
  57. $user_pass = preg_check("/^&#91;0-9a-z&#93;{32}$/", $cookie_vars&#91;'1'&#93;) ? $cookie_vars&#91;'1'&#93; : "";
  58. $user_name = preg_replace(array("/\=/","/\#/","/\sOR\s/"), "", stripinput($_GET&#91;'user'&#93;));
  59. if (!dbcount("(user_id)", DB_USERS, "user_name='".$user_name."' AND user_password='".md5($user_pass)."'")) {
  60. echo "<strong>".$locale&#91;'global_196'&#93;."</strong><br /><br />\n";
  61. } else {
  62. $result = dbquery("DELETE FROM ".DB_ONLINE." WHERE online_user='0' AND online_ip='".USER_IP."'");
  63. echo "<strong>".$locale&#91;'global_193'&#93;.$_GET&#91;'user'&#93;."</strong><br /><br />\n";
  64. score_positive("LOGIN");
  65. }
  66. }
  67. }
  68. }
  69.  
  70. echo $locale&#91;'global_197'&#93;."<br /><br />\n";
  71. echo "</div>\n</td>\n</tr>\n</table>\n";
  72.  
  73. echo "</td>\n</tr>\n</table>\n";
  74.  
  75. echo "</body>\n</html>\n";
  76.  
  77.  
  78. ?>
  79. <img src='images/loading.gif'>
gewandelt in 0.032 Sekunden, benutzt wurde GeSHi 1.0.8.10

Liebe Grüße,
Rick

KEIN Support per Mail, ICQ oder PN

[ Project Manager ]*
 
http://www.phpfusion-4you.deWeb
gccfunclan
moin,
bin durch zufall drauf gestoÃ?en. hat mir auf jedenfall weiter geholfen echt super funzt 1a
 

Thema verlinken
Soziale Netzwerke: Facebook Google Windows-Live Twitter Yahoo
URL:
BBcode:
HTML:
Facebook Like:


Springe ins Forum:

Ähnliche Themen

Thema Forum Antworten Letzter Beitrag
eigene Seite erstellen - Adminpasswort wird nicht angenommen Allgemeine Fragen und Probleme für V7 1 25. Oktober 2021 08:19
seite wird mit www. nicht gefunden Installation und Update V7 7 01. Januar 2012 02:29
Sicherheitscode wird nicht angezeigt Allgemeine Fragen und Probleme für V7 3 30. Dezember 2010 13:07