ďťż

Preloader - co przeglądarka to co innego W IE źle się wyświetla,a w Operze wcale

       

Podstrony


telcocafe

Mam taki preloaderek z przekierowaniem. Czy mógłby ktoś na niego zerknąć, bo chodzi idealnie w Firefoxie, w IE zamiast po wyświetleniu tekstu zniknąć miga jeszcze raz tym tekstem, ale największy problem jest taki, że nie chodzi w Operze. Proszę o pomoc:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <head> <title>Preloader</title> </head> <body> <script> var message=new Array() message[0]="W Firefoxie idealnie, w IE z błędem, a w Operze nie działa!!!" var tickerwidth=400 var tickerheight=300 var tickerfont="Arial" var tickerfontsize=5 var tickerfontcolorpre="C12507" var tickerfontcolormark="#FFFFFF" var tickerfontcolorafter="#333333" var backgroundcolor="yellow" var pausebetweenwords=350 var pausebetweenmessages=1000 var pauseafterfade=1000 var linkurl="http://forumweb.e-vip.pl" var transparency=100 var transparencystep=5 var windowheight=0 var windowwidth=0 var x_pos=0 var y_pos=0 var i_message=-1 var messagesplit="" var i_messagesplit=0 var i_mark=0 var tickercontent var pausefade=40 var linkurlloaded=false var oneloopfinished=false var ns4=document.layers?1:0 var ns6=document.getElementById&&!document.all?1:0 var ie=document.all?1:0 function splitmessage() { transparency=100 if (ie) {  i_message++  if (i_message>=message.length) {oneloopfinished=true}  if (i_message>=message.length) {i_message=0}  i_mark=0  messagesplit=message[i_message].split(" ")  for (i=0;i<messagesplit.length;i++) {   messagesplit[i]=messagesplit[i]+" "  }  messagesplit[messagesplit.length]=" "  document.all.ticker.filters.alpha.opacity=transparency  if (oneloopfinished && linkurlloaded) {   document.location.href=linkurl  }  else {   runticker()  } } else if (ns6 || ns4) {  i_message++  if (i_message>=message.length) {document.location.href=linkurl}  else {   i_mark=0   messagesplit=message[i_message].split(" ")   for (i=0;i<messagesplit.length;i++) {   messagesplit[i]=messagesplit[i]+" "   }   messagesplit[messagesplit.length]=" "   if (ns6) {   document.getElementById('ticker').style.MozOpacity=transparency/100   }   runticker()  } } else {  document.location.href=linkurl } } function runticker() { if (i_mark<messagesplit.length) {  gettickercontent()    if (ie) {   ticker.innerHTML=tickercontent  }  if (ns6) {   document.getElementById('ticker').innerHTML=tickercontent  }  if (ns4) {   document.ticker.document.write(tickercontent)   document.ticker.document.close()  }   i_mark++     var tickertimer=setTimeout("runticker()",pausebetweenwords) } else {  clearTimeout(tickertimer)  setTimeout("fade()",pausebetweenmessages) } } function fade() { if (transparency>0){  transparency-=transparencystep  if (ie) {   document.all.ticker.filters.alpha.opacity=transparency  }  if (ns6) {   document.getElementById('ticker').style.MozOpacity=transparency/100  }  var fadetimer=setTimeout("fade()",pausefade) } else {  clearTimeout(fadetimer)  setTimeout("splitmessage()",pauseafterfade) } } function gettickercontent() {   tickercontent="<table width="+tickerwidth+" height="+tickerheight+" cellpadding=0 cellspacing=0 border=0><tr valign=middle><td align=center>" tickercontent+="<font face=\""+tickerfont+"\" size="+tickerfontsize+" color=\""+tickerfontcolorpre+"\">" for (i=0;i<i_mark;i++) {  tickercontent+=messagesplit[i] } tickercontent+="</font>" tickercontent+="<font face=\""+tickerfont+"\" size="+tickerfontsize+" color=\""+tickerfontcolormark+"\">" tickercontent+=messagesplit[i_mark] tickercontent+="</font>" tickercontent+="<font face=\""+tickerfont+"\" size="+tickerfontsize+" color=\""+tickerfontcolorafter+"\">" for (i=(i_mark+1);i<messagesplit.length;i++) {  tickercontent+=messagesplit[i] } tickercontent+="</font>" tickercontent+="</td></tr></table>" } setposition() function setposition() { if (ie) {  windowheight=document.body.clientHeight  windowwidth=document.body.clientWidth } if (ns6) {  windowheight=window.innerHeight  windowwidth=window.innerWidth } if (ns4) {  windowheight=window.innerHeight  windowwidth=window.innerWidth } x_pos=(windowwidth-tickerwidth)/2 y_pos=(windowheight-tickerheight)/2 document.bgColor=backgroundcolor } function jump() { linkurlloaded=true } if (ie) { document.write("<div id=\"ticker\" style=\"position:absolute;top:"+y_pos+"px;left:"+x_pos+"px;width: "+tickerwidth+"px;height:"+tickerheight+"px;overflow:hidden\;filter:alpha( opacity=100);-moz-opacity:100\">") document.write("</div>") document.write("<iframe onload=\"jump()\" src="+linkurl+" width=0 height=0></iframe>") splitmessage() } else if (ns6) { document.write("<div id=\"ticker\" style=\"position:absolute;top:"+y_pos+"px;left:"+x_pos+"px;width: "+tickerwidth+"px;height:"+tickerheight+"px;overflow:hidden\;-moz-opacity: 100\">") document.write("</div>") splitmessage() } else if (ns4) { document.write("<layer name=\"ticker\" width="+tickerwidth+" height="+tickerheight+" top="+y_pos+" left="+x_pos+">") document.write("tickercontent") document.write("</layer>") document.close() window.onload=splitmessage } else { document.location.href=linkurl } </script> </body> </html>[code]



file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html Inline script thread Error: name: TypeError message: Statement on line 59: Could not convert undefined or null to object Backtrace:  Line 59 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    document.all.ticker.filters.alpha.opacity = transparency; if (oneloopfinished && linkurlloaded)        else          Line 177 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    splitmessage(); file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html Inline script thread Error: name: TypeError message: Statement on line 59: Could not convert undefined or null to object Backtrace:  Line 59 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    document.all.ticker.filters.alpha.opacity = transparency; if (oneloopfinished && linkurlloaded)        else          Line 177 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    splitmessage(); file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html Inline script thread Error: name: TypeError message: Statement on line 58: Could not convert undefined or null to object Backtrace:  Line 58 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    document.all.ticker.filters.alpha.opacity = transparency;  Line 176 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    splitmessage(); file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html Unknown context Syntax error while loading: line 3 of inline script at file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html : var message=new Array[]; ------------------------^ file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html Unknown context Syntax error while loading: line 3 of inline script at file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html : var message=new Array[]; ------------------------^ file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html Unknown context Syntax error while loading: line 3 of inline script at file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html : var message=new Array[]; ------------------------^ file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html Inline script thread Error: name: TypeError message: Statement on line 144: Could not convert undefined or null to object Backtrace:  Line 144 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    windowheight = document.body.clientHeight;  Line 141 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    setposition(); file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html Inline script thread Error: name: TypeError message: Statement on line 144: Could not convert undefined or null to object Backtrace:  Line 144 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    windowheight = document.body.clientHeight;  Line 141 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    setposition(); file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html Inline script thread Error: name: TypeError message: Statement on line 59: Could not convert undefined or null to object Backtrace:  Line 59 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    document.all.ticker.filters.alpha.opacity = transparency; if (oneloopfinished && linkurlloaded)        else          Line 177 of inline#1 script in file://localhost/C:/Documents%20and%20Settings/Tomek/Pulpit/index.html    splitmessage();
To mi napisało w konsoli javascript w Operze :D
Jak już wykorzystujesz skrypty java to zamiast pisać posty na forum sprawdż najpierw czy sama przeglądarka nie zgłasza błędów a dopiero potem (gdy już wszystkie poprawisz) proś o pomoc na forum. Uwierz samodzielne sprawdzanie skryptów jest lepsze niż wykorzystywanie innych do tego celu. Ale tak jak mówię jeśli poproawione zostaną błędy ,które wymienia konsola to wtedy jest to już sytuacja nietypowa i można poprosić innych o rozwiązanie problemu. Co do explorera to nie wiem ale postaram się poszukac błędów to może pomoge. Pozdro ;)

Ja ci dobrze radze wyżuć ten skrypt w kubeł i tu masz Prosty i skuteczny!!

<html> <head> <style> #preloader { position: static; height: 100%; width: 100%; background: FF0000; display: block; z-index: 100; } #strona { display: none; } </style> <script> function schowaj(){ document.getElementById("preloader").style.display='none'; document.getElementById("strona").style.display='block'; } </script> </head> <body onload="javascript:schowaj();"> <div id="preloader"> <table width="100%" height="100%"><tr> <td width="100%" height="100%" align="center" valign="middle">  <h2>Trwa ładowanie strony</h2> </td> </tr></table> </div><div id="strona"> TU STRONA :) </HTML>

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • nvm.keep.pl

  • Sitedesign by AltusUmbrae.