English
<style type="text/css"><!-- .LoadBarDiv { BORDER-RIGHT: #777 1px dotted; BORDER-TOP: #777 1px dotted; DISPLAY: block; FONT-WEIGHT: normal; FONT-SIZE: 12px ; FILTER: Alpha(Opacity=80, FinishOpacity=10, Style=1, StartX=1, StartY=1, FinishX=1, FinishY=100); ; LEFT: expression ((this.parentElement.offsetWidth-this.offsetWidth) /2); VERTICAL-ALIGN: middle; BORDER-LEFT: #777 1px dotted; WIDTH: 250px; WORD-BREAK: break-all; BORDER-BOTTOM: #777 1px dotted; FONT-FAMILY: "??", " Arial", "Helvetica", "sans-serif"; POSITION: absolute; HEIGHT: 78px; BACKGROUND-COLOR: #f1f1f1 } --></style> <script language="JavaScript"> //¤¤¤¤¤ ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤Welcome to download the research^Thank you¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ // Congratulations on finding the address I must be very excited about this effect ^^ I have been doing it for a long time~ Hmm! My vision is wrong~~ // Just reference this function directly in the web page. Remember to load its css style before. I don’t understand. You can ask me~~ // == Page LoadBar == //:: Version.0.4 //:: Powered by Snow :: @ 2006.4.4 //:: QQ:49054026 :: //:: Mail: snow@xunuo.com :: //¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ ¤¤¤¤¤¤¤¤¤¤¤¤ //+(length and width compatibility function)+-------------------------- ----------------|| function scrollTop() //Browser scroll bar position { var scrollTop; if (document.documentElement && document.documentElement.scrollTop){ scrollTop = document. documentElement.scrollTop; }else if (document.body){ scrollTop = document.body.scrollTop; }else if (window.pageYOffset){ scrollTop = window.pageYOffset; } return scrollTop; } //Browser window parameter definition and acquisition Function, compatible with IE6 & MF by nokersang * function scrollX(){ if(document.documentElement.clientWidth<document.body.clientWidth&&document.documentElement.clientWidth){ theX = 'document.documentElement.clientWidth'; }else{ theX = 'document.body .clientWidth'; } if(document.documentElement.clientHeight<=document.body.clientHeight&&document.documentElement.clientHeight){ theY = 'document.documentElement.clientHeight'; }else{ theY = 'document.body.clientHeight'; } } //scrollX(); //--------------------------------------------- -------------|| //+(configuration function)+-------------------------- ----------------|| function LoadBar_setvalue(){ LoadBar_Div = document.getElementById('LoadBar'); LoadBar_Msg = document.getElementById("LoadBar_Message"); LoadBar_Top = 250; LoadBar_Div .style.top = LoadBar_Div.offsetTop + LoadBar_Top; LoadBar_Div.filters.alpha.opacity = 50; LoadBar_Delta = 0.05; LoadBar_breathstep = 1; LoadBar_hide_down_y_increase = 50; LoadBar_Hide_downDelta = 0.06; LoadBar_Hide_upDelta = 0.03; startalpha = 70; } //-- -------------------------------------------------- ---|| //+(Place LoadBar)+--------------------------------------------- --|| function LoadBar_writebar(){ document.writeln("<div>"); document.writeln("<div id="LoadBar" class="LoadBarDiv">"); document.writeln(" <div id="LoadBar_Message" align="center">"); document.writeln("<br>Test LoadBar<br />Middle LoadBar_Div <br /> Made by Snow <br /> [url]www.xunuo.com[/url] <br />"); document.writeln(" <font id=dot color=blue></font>"); document.writeln("</ div>"); document.writeln("</div>"); document.writeln("</div>"); } //---------------- ---------------------------------------|| //+(scroll with the scroll bar) +----------------------------------------|| function LoadBar_move() { if (LoadBar_Div.offsetTop != (scrollTop() + LoadBar_Top)) { var dy = (scrollTop() + LoadBar_Top - LoadBar_Div.offsetTop) * LoadBar_Delta; dy = (dy > 0 ? 1 : - 1) * Math.ceil(Math.abs(dy )); LoadBar_Div.style.top = LoadBar_Div.offsetTop + dy; } /* Note.. The offset may stop before the offset is completed... because the LoadBar_SetIV function clearInterval LoadBar_move if(LoadBar_Div.offsetLeft!=Math. round((eval(theX)-752)*0.25-50)){ var dx=((eval(theX)-752)*0.25-100-LoadBar_Div.offsetLeft) * LoadBar_Delta; dx=(dx>0?1: -1)*Math.ceil(Math.abs(dx)); LoadBar_Div.style.left=LoadBar_Div.offsetLeft+dx+"px"; } */ } //------------- ------------------------------------------|| //+(LoadBar Fading function)+----------------------------------|| var LoadBar_breath_b = 0, LoadBar_breath_c = true; function LoadBar_breath() { var n = LoadBar_breathstep,b = LoadBar_breath_b,c = LoadBar_breath_c; if(b>=90) {c = false;} if(c == false) {b-=n;} if(b<= 10) {c = true;} if(c == true) {b+=n;} LoadBar_Div.filters.alpha.opacity=b; LoadBar_breath_b = b; LoadBar_breath_c = c; } //-------- --------------------------------------------------|| / /+(LoadBar flash function)+----------------------------------|| var hide_upturn=false ; var hide_upturnnow = false; function LoadBar_Hide() { clearInterval(IV_LoadBar_move); clearInterval(IV_LoadBar_breath); LoadBar_Msg.innerHTML="<br><font color=red>Loading completed</font><br><font color=blue >Under testing..^_^<br>[url]www.xunuo.com[/url] </font>"; if(hide_upturn == false) { LoadBar_Div.filters.alpha.opacity = LoadBar_hide_startalpha; var dy = (scrollTop() + LoadBar_Top + LoadBar_hide_down_y_increase - LoadBar_Div.offsetTop) * LoadBar_Hide_downDelta; dy = (dy > 0 ? 1 : - 1) * Math.ceil(Math.abs(dy)); LoadBar_Div.style.top = LoadBar_Div.offsetTop + dy; if(dy <= 0) { hide_upturn = true; } } if(hide_upturn == true) { //I still have more to say~~ I have to move it to the center of the screen and then show it to you //The above is because the execution is started The move function has the latest scroll bar coordinates if (LoadBar_Div.offsetTop != (scrollTop() + LoadBar_Top) && hide_upturnnow != true) { var dy = (scrollTop() + LoadBar_Top - LoadBar_Div.offsetTop) * LoadBar_Delta; dy = ( dy > 0 ? 1 : - 1) * Math.ceil(Math.abs(dy)); LoadBar_Div.style.top = LoadBar_Div.offsetTop + dy; if(LoadBar_Div.offsetTop == (scrollTop() + LoadBar_Top)){ hide_upturnnow = true;} }else{ var dy = (scrollTop() - LoadBar_Div.offsetTop) * LoadBar_Hide_upDelta; dy = Math.ceil(Math.abs(dy)); LoadBar_Div.style.top = LoadBar_Div.offsetTop - dy; LoadBar_Div .filters.alpha.opacity = LoadBar_Div.filters.alpha.opacity-2; if(LoadBar_Div.filters.alpha.opacity <= 0) { clearInterval(IV_LoadBar_Hide); LoadBar_Div.style.display = "none"; } } } } //------------------------------------------------ -------|| //+(Place Interval)+---------------------------------- ------|| function LoadBar_SetIV(start){ if(start == "before onload"){ IV_LoadBar_move = setInterval("LoadBar_move()",20); IV_LoadBar_breath = setInterval("LoadBar_breath()",20) ; } else if (start == "after onload") { clearInterval(IV_LoadBar_move); clearInterval(IV_LoadBar_breath); IV_LoadBar_Hide = setInterval("LoadBar_Hide()",15); } } //--------- --------------------------------------------------|| // +(Come out~^^)+----------------------------------------- -|| function LoadBar_Start(){ LoadBar_writebar(); LoadBar_setvalue(); LoadBar_SetIV("before onload"); } //----------------------- --------------------------------|| //+(It's time to go~^^)+---- ----------------------------------------|| function LoadBar_End(){ LoadBar_SetIV("after onload "); } //---------------------------------------------------------- ----------|| //+(Initialization~^^)+-------------------------- ---------------|| LoadBar_Start();//Start~~~ //Anonymous function solves the problem that onload can only add function names window.attachEvent('onload',LoadBar_End) ; //-------------------------------------------------- --------|| //¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ 3Q /{ :: + Promise | SnoW + ::} //http://www.xunuo.com //:: Want to play World of Warcraft with me? :: //:: QQ:49054026 :: //¤¤¤¤¤ ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ </ script> <body> Let’s see the effect</body></html>