Jump to content
Sign in to follow this  
zNowkid

Loading Page

Recommended Posts

in exemplul dat de tine, acolo nu este folosit un script ce site-ul este facut in flash.

dar uite si un script numit PreLoad Wait care s-ar putea sa te ajute. ce face el ?

Afiseaza mesajul 'Loading - please wait' pana cand pagia se incarca complet.

Mesajul de 'Loading - please wait' va disparea cand pagina s-a incarcat complet.

E destul de simplu de instalat, urmeaza pasii indicati mai jos.

============================================================

PARTEA I.

Coopiza codul de mai jos dedesubtul tagului <HEAD> in pagina pe care vrei sa folosesti scriptul.

============================================================

<script TYPE="text/javascript" LANGUAGE="javascript">

<!-- PreLoad Wait - Script -->
<!-- http://pctroubleshooting.ro -->

function waitPreloadPage() { //DOM
if (document.getElementById){
document.getElementById('prepage').style.visibility='hidden';
}else{
if (document.layers){ //NS4
document.prepage.visibility = 'hidden';
}
else { //IE4
document.all.prepage.style.visibility = 'hidden';
}
}
}
// End -->
</SCRIPT>[/code] ============================================================ PARTEA II. Adauga codul de mai jos intre tagurile <BODY> </BODY>: ============================================================
[code]<BODY onLoad="waitPreloadPage();">
============================================================ PARTEA III. Copiaza codurile de ,mai jos imediat dupa tagul <BODY> ============================================================
<DIV id="prepage" style="position:absolute; font-family:arial; font-size:16; left:0px; top:0px; background-color:white; layer-background-color:white; height:100%; width:100%;"> 
<TABLE width=100%><TR><TD><B>Loading ... ... please wait!</B></TD></TR></TABLE>
</DIV>[/code] sau uite un alt script care afiseaza un pop-up atunci cand intri pe pagina respectiva, fereastra se poate redimensiona, si el afiseaza mesajul "Page Loading - please Wait ... " [b]Pasul 1.[/b] Copiaza codul de mai jos in pagina pe care vrei sa apara mesajul.
[code]<script language="javaScript">
var processing =
window.open("preview.htm","processing","width=80,height=40")
</script>
Pasul 2. Intre tagurile <body> </body> adauga acest cod:
<body onload="processing.close()">
Creaza o pagina numita preview htm, sau html dar trebuie sa modifici in primul script lina asta:
window.open("preview.htm","processing","width=80,height=40")
unde scrie preview.htm, daca pagina ta este hmtl mai adaugi un l. in pagina creata adauta urmatoarele coduri:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-weight: bold;
}
body {
background-color: #000000;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>
<center>
<span class="style1">Page Loading - please Wait ...</span>
</center>
</body>
</html>[/code]

Bineinteles ca poti modifica dupa bunul plac. Succes :*

Share this post


Link to post
Share on other sites

pai, poti face dar trebuie sa faci un intro in flash, sau pur si simplu tot site-ul in flash...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×