Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Preload images

  1. #1
    Join Date
    Mar 2007
    Posts
    184
    Tokens
    0

    Default Preload images

    Is there anyway to preload images then show them all once they're loaded, instead of it loading up each one individually and showing the little loading image on each image, ty.
    Edited by Catzsy Forum Super Moderator: Your signature has been removed because
    It is against the rules to insult/bully other members by targetting them with personal remarks about them in your signature.

  2. #2
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    By using Javascript/AJAX and use a ajax loading image


  3. #3
    Join Date
    Mar 2007
    Posts
    184
    Tokens
    0

    Default

    Quote Originally Posted by Drompo View Post
    By using Javascript/AJAX and use a ajax loading image
    That kinda didnt help ;s

    HOW
    Edited by Catzsy Forum Super Moderator: Your signature has been removed because
    It is against the rules to insult/bully other members by targetting them with personal remarks about them in your signature.

  4. #4
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    I'm only just learning it myself, I don't know the code but others will


  5. #5
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    There is a way by using

    Code:
    <body onload="blahblah"
    I'm not sure of it but it's something like that.
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  6. #6
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Code:
    <script src="javascript.js"></script>
    <body onLoad="dopage('images.html', 'content')">
    then create javascript.js and insert
    Code:
    function dopage(url, containerid){
        document.getElementById("content").innerHTML = '<div align="center"><font size="1" color="#FFFFFF" face="verdana"><b>Loading</b>...</font></div><br><br>';
    var page_request = false
    if (window.XMLHttpRequest) 
    page_request = new XMLHttpRequest()
    else if (window.ActiveXObject){ 
    try {
    page_request = new ActiveXObject("Msxml2.XMLHTTP")
    } 
    catch (e){
    try{
    page_request = new ActiveXObject("Microsoft.XMLHTTP")
    }
    catch (e){}
    }
    }
    else
    return false
    page_request.onreadystatechange=function(){
    loadpage(page_request, containerid)
    }
    if (bustcachevar) 
    bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
    page_request.open('GET', url+bustcacheparameter, true)
    page_request.send(null)
    }
    Something like that
    Last edited by Drompo; 02-05-2007 at 04:41 PM.


  7. #7
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Thats of PowerPod, which is off mine and Dans site btw.

  8. #8
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    i know, thats the only thing i could think of it on


  9. #9
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Dunko View Post
    Thats of PowerPod, which is off mine and Dans site btw.
    And where did you get it from?
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  10. #10
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    I got it from Dan

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •