Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Preload images

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

    Default

    Just to be arkward

    And where did Dan get it from..


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

    Latest Awards:

    Default

    How am I supposed to know?

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

    Default

    Quote Originally Posted by Drompo View Post
    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
    dont work.
    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. #14
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Xiwl View Post
    dont work.
    Need to have <div id="content"></div> where the content loads

  5. #15
    Join Date
    Mar 2007
    Posts
    184
    Tokens
    0

    Default

    still dont work lol
    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.

  6. #16
    Join Date
    Mar 2007
    Posts
    184
    Tokens
    0

    Default

    *** someone help i need this to f'in work..
    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.

Page 2 of 2 FirstFirst 12

Posting Permissions

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