27 users online (1 members and 26 guests)  


  Results 1 to 12 of 12

Related

  1. urgent xml / xsl help    Forum: HTML Forum
    Replies: 0
  2. Need help on buttons --> very urgent    Forum: HTML Forum
    Replies: 8
  3. Need urgent help.    Forum: HTML Forum
    Replies: 0
  4. Photo Rating Requirement    Forum: PHP Forum
    Replies: 2
  1. #1
    Mr.Chaotix's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    14

    Arrow Urgent requirement

    This one is really urgent.
    Can some one give me a script with which-
    An image gets displayed..ONLY after it is completely loaded.
    That is, the progressive image display should never take place.
    My requiremnt is to start a timer accurate to milliseconds after the image is displayed completely. The progressive display(partial display) always gets the timer wrong.
    Plz Help!

  2. #2
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Urgent requirement

    Hi there Mr.Chaotix,

    try this example it may suit your requirements...
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <title>no images until fully loaded</title>
    <base href="http://coothead.homestead.com/files/"/>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
    <meta name="Content-Script-Type" content="text/javascript"/>
    <meta name="Content-Style-Type" content="text/css"/>
    <style type="text/css">
    <!--
    body {
    margin:0px;
    padding:0px;
    background-color:#666;
    color:#fff;
    }
    #timer_container {
    width:100px;
    margin:5px auto;
    }
    #img_container {
    width:740px;
    visibility:hidden;
    margin:auto;
    }
    #img_container img {
    border:3px double #000;
    }
    #timer {
    width:100px;
    text-align:center;
    font-family:courier,monospace;
    font-size:18px;
    color:#fff;
    border:none;
    background-color:#666;
    }
    -->
    </style>
    <script type="text/javascript">
    <!--
    var mins='0'+0;
    var secs='0'+0;
    var ms=0;
    var starter;
    var stop=2;
    function showImages() {
    document.getElementById('img_container').style.visibility="visible";
    startTimer();
    }
    function  startTimer() {
    document.getElementById('timer').value=mins+'.'+secs+'.'+ms;
    if(mins==stop) {
    clearTimeout(starter);
    return;
    }
    ms++;
    if(ms>9) {
    ms=0;
    secs++
    if(secs<10){secs='0'+secs}
    }
    if(secs>59) {
    ms=00;
    secs=00;
    mins++;
    if(mins<10){mins='0'+mins}
    }
    starter=setTimeout('startTimer()',100);
    }
    onload=showImages;
    //-->
    </script>
    </head>
    <body>
    <div id="timer_container">
    <input id="timer" type="text" value="00.00.00"/>
    </div>
    <div id="img_container">
    <img src="apple0.jpg" alt=""/>
    <img src="apple1.jpg" alt=""/>
    <img src="apple2.jpg" alt=""/>
    <img src="apple3.jpg" alt=""/>
    <img src="apple4.jpg" alt=""/>
    <img src="apple5.jpg" alt=""/>
    </div>
    </body>
    </html>

  3. #3
    Mr.Chaotix's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    14

    Re: Urgent requirement

    Thanks friend, am tryin it!

  4. #4
    Mr.Chaotix's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    14

    Re: Urgent requirement

    Checked it out, nut as divs are nor supported by all browsers, it would be great to get an implementation thats more generic.

  5. #5
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Urgent requirement

    Hi there Mr.Chaotix,
    as divs are nor supported by all browsers, it would be great to get an implementation thats more generic
    You are, of course, extracting the urine.
    And if you are not, could you let the members here have the names of these underprivileged browsers.

  6. #6
    Mr.Chaotix's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    14

    Re: Urgent requirement

    I wuz refering to ol versions of browsers that do not support Divs.

  7. #7
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Urgent requirement

    I wuz refering to ol versions of browsers that do not support Divs
    Please do not prevaricate, name these miscreant browsers.

  8. #8
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Urgent requirement

    Hi there Mr.Chaotix,

    Just to show you that I am in a benevolent mood today...

    All modern browsers support the DIV element, but it is not supported by older browsers, such as...
    • Mosaic 2.0
    • Netscape Navigator 1.1
    • Internet Explorer 2.0.

    So, go on, make my day, and tell me that you really are planning to code for these dinosaurs.

  9. #9
    Mr.Chaotix's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    14

    Re: Urgent requirement

    Yeah! got some old info...yeah! tats right and am usin these on muh page! tanx m8!

  10. #10
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Urgent requirement

    Hi there Mr.Choatix,
    Yeah! got some old info...yeah! tats right and am usin these on muh page! tanx m8!
    I am an old man, perhaps you could take this into account and provide me with a translation of your street talk.

  11. #11
    Mr.Chaotix's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    14

    Thumbs up Re: Urgent requirement

    Basically!
    A HUGE Thanks!!!

  12. #12
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Urgent requirement

    Hi Mr.Chaotix,

    tanx m8!, muh gr&kids r givin me help wiv it 2.



Tags for this Thread