Load on SSI before another

Discussion in 'HTML & Website Design' started by martinvidic, Apr 30, 2008.

  1. #1
    Does anybdy know how to load one SSI before another.

    Or can this only be done with a DIV TAG...
    If yes...how can it be done with a divtag

    Thanx
     
    martinvidic, Apr 30, 2008 IP
  2. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Server Side Includes are loaded in the order in which you call them.

    Their placement on the page is determined by where in the layout (i.e., which div tag) they are placed.
     
    itcn, Apr 30, 2008 IP
  3. awatson

    awatson Active Member

    Messages:
    112
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Yup, just put them in the order needed in the code. You can probably use css to move the divs around if needed.
     
    awatson, Apr 30, 2008 IP
  4. martinvidic

    martinvidic Guest

    Messages:
    182
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    U were. rght... Was not possible with SSI,
    But I used div tags...
    Just in case anybody wants to know how to change the order in which ads are called.
    ( I got the idea from the adsense help - they mention DIV tags to optimize this )

    Inset this in your website where you usually place the code....

    <div id='adspace1'></div>
    Code (markup):
    <div id='adspace2'></div>
    Code (markup):
    And this just before the end of your website.</html>
    The code you insert forst will be the first one to show....
    ( the one with the best CPC )

    <div id='ads_code_1' style='display:none;'>
    AD CODE 1
    </div>
       <script language="JavaScript">
        div1 = document.getElementById('adspace1');
        div2 = document.getElementById('ads_code_1');
        div1.innerHTML = div2.innerHTML;
        div2.innerHTML = "";
       </script>
    
    <div id='ads_code_2' style='display:none;'>
    AD CODE 2
    </div>
       <script language="JavaScript">
        div1 = document.getElementById('adspace2');
        div2 = document.getElementById('ads_code_2');
        div1.innerHTML = div2.innerHTML;
        div2.innerHTML = "";
       </script>
    Code (markup):
     
    martinvidic, May 1, 2008 IP