69 users online (0 members and 69 guests)  


  Results 1 to 2 of 2

Related

  1. css not loading in FF, fine in IE    Forum: CSS Forum
    Replies: 3
  2. Help with an non loading website!?!    Forum: HTML Forum
    Replies: 5
  3. Replies: 0
  4. sound not loading    Forum: HTML Forum
    Replies: 6
  5. Loading a file from subfolder    Forum: HTML Forum
    Replies: 2
  1. #1
    ahmedm177's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2008
    Posts
    1

    how can i do (loading...)

    hello,

    i made a php code
    i want to add a javascript file so when i click on button in my page so
    before results appear, i want something like "please wait ..." appear or image.
    i think it is very easy code but i dont know it
    so how can i do that.

  2. #2
    fric's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Apr 2007
    Location
    Mauritius
    Posts
    25

    Re: how can i do (loading...)

    hope this help


    Code:
    <html>
    <head>
    <title>Loading</title>
    <SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
    
    <!-- PreLoad Wait - Script -->
    
    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>
    </head>
    
    <BODY onLoad="waitPreloadPage();">
    <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>
    
    The page content  here
    </body>
    
    </html>
    Last edited by vinyl-junkie; 01-16-2008 at 07:12 AM. Reason: Added code tags



Tags for this Thread