SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2004
    Location
    Finland
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    prelaoding backround and header

    So i have a page which has a div with text content, backround image, header image and a navigation bar which i want to be loaded all the time , cause i don't want to use frames but the page needs to load and run smoothly. how do i do this? onLoad=....something....
    thank you in advance

  2. #2
    SitePoint Member
    Join Date
    Mar 2004
    Location
    Finland
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any help would be appreciated...is this anywhere near....

    <script>
    function preloadImages('title_tausta.jpg', 'http://www.saunalahti.fi/~jamppa72/me/hiihto/img/title_tausta.jpg')
    {
    if(document.images)
    {
    if(!document.imageArray) document.imageArray = new Array();
    var i,j = document.imageArray.length, args = preloadImages.arguments;

    for(i=0; i<args.length; i++)
    {
    if (args[i].indexOf("#")!=0)
    {
    document.imageArray[j] = new Image;
    document.imageArray[j++].src = args[i];
    }
    }
    </script>

    i'm new to javascript so....fill in the blanks please...

  3. #3
    SitePoint Member
    Join Date
    Mar 2004
    Location
    Finland
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

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