Banner Code - ASP or IIS??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Derek

    Banner Code - ASP or IIS??

    I have some third party sponsor banners on my website and since installing
    the entire page pauses loading then displays the whole page. It seems that
    the page is waiting on the banners. Is there a way to set IIS or coding to
    load the page and then load the banners if they take longer to load?


  • Scott

    #2
    Re: Banner Code - ASP or IIS??

    You could do it through the use of FRAMES.

    For example your intial page could have the following:

    <HTML>
    <HEAD>
    </HEAD>
    <FRAMESET ROWS="100,*" FRAMEBORDER="NO " BORDER="0" FRAMESPACING="0 ">
    <FRAME SRC="empty.asp" NAME="banner" MARGINHEIGHT="0 " MARGINWIDTH="0"
    SCROLLING="NO" NORESIZE>
    <FRAME SRC="home.asp" NAME="main" MARGINHEIGHT="0 " MARGINWIDTH="0"
    SCROLLING="AUTO " NORESIZE>
    </FRAMESET>
    <NOFRAMES>You r browser does not support frames. You need a browser
    that supports frames to view this site.</NOFRAMES>
    </HTML>

    Then in main frame (home.asp) you could call an onload function which
    changes the banner frame (empty.asp) to the new desired banner.

    <HTML>
    <HEAD>
    </HEAD>
    <SCRIPT LANGUAGE = "JavaScript ">
    var runMe = runScripts();

    function runScripts()
    {
    parent.banner.l ocation="banner .asp";
    }
    </SCRIPT>
    <BODY>
    Your main page.
    </BODY>
    </HTML>

    So effectively you have 4 pages:

    default.asp - the framed page
    empty.asp - the empty banner page
    main.asp - your home page
    banner.asp - the slow advertising page

    Note: The pages do not have to be asp!

    Comment

    • Derek

      #3
      Re: Banner Code - ASP or IIS??

      Thanks!

      "Scott" <scott_e_llewel lyn@hotmail.com > wrote in message
      news:2f96e5a5.0 312091205.6d4a6 92a@posting.goo gle.com...[color=blue]
      > You could do it through the use of FRAMES.
      >
      > For example your intial page could have the following:
      >
      > <HTML>
      > <HEAD>
      > </HEAD>
      > <FRAMESET ROWS="100,*" FRAMEBORDER="NO " BORDER="0" FRAMESPACING="0 ">
      > <FRAME SRC="empty.asp" NAME="banner" MARGINHEIGHT="0 " MARGINWIDTH="0"
      > SCROLLING="NO" NORESIZE>
      > <FRAME SRC="home.asp" NAME="main" MARGINHEIGHT="0 " MARGINWIDTH="0"
      > SCROLLING="AUTO " NORESIZE>
      > </FRAMESET>
      > <NOFRAMES>You r browser does not support frames. You need a browser
      > that supports frames to view this site.</NOFRAMES>
      > </HTML>
      >
      > Then in main frame (home.asp) you could call an onload function which
      > changes the banner frame (empty.asp) to the new desired banner.
      >
      > <HTML>
      > <HEAD>
      > </HEAD>
      > <SCRIPT LANGUAGE = "JavaScript ">
      > var runMe = runScripts();
      >
      > function runScripts()
      > {
      > parent.banner.l ocation="banner .asp";
      > }
      > </SCRIPT>
      > <BODY>
      > Your main page.
      > </BODY>
      > </HTML>
      >
      > So effectively you have 4 pages:
      >
      > default.asp - the framed page
      > empty.asp - the empty banner page
      > main.asp - your home page
      > banner.asp - the slow advertising page
      >
      > Note: The pages do not have to be asp![/color]


      Comment

      Working...