Jump to content

Loading Page


zNowkid

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 :*

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.