How do I change the load order of my page?

Discussion in 'HTML & Website Design' started by Imozeb, Jul 6, 2010.

  1. #1
    How do I change the load order of my page? For example how would I get different divs to load first or last.
     
    Imozeb, Jul 6, 2010 IP
  2. toycat

    toycat Well-Known Member

    Messages:
    2,304
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    150
    #2
    not sure thats done in HTML, its probably somewhere in the server settings though or something similar.
     
    toycat, Jul 6, 2010 IP
  3. bvraghav

    bvraghav Member

    Messages:
    123
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    33
    #3
    i assume that you are interested in -
    display some part of your webpage ahead of others,
    to the client.

    in order to achieve this, i would control the order of appearance of each desired element using javascript. quite like a slideshow, except, that the elements would appear at different parts of the page, rather than one on top of the other...
     
    bvraghav, Jul 6, 2010 IP
  4. webquick

    webquick Peon

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    n your style sheet, give the style you want to appear last: display: none;Then in the body tag change the display to block using onload:document.getElementById('audio').style.display = 'block';"

    I’ve tested this in Firefox and IE on both Linux and Windows and it seem to work perfectly.
     
    webquick, Jul 6, 2010 IP
  5. lqyromeo

    lqyromeo Peon

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You could change the order of div to upload.
     
    lqyromeo, Jul 6, 2010 IP