469,287 Members | 2,785 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,287 developers. It's quick & easy.

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?
Jul 19 '05 #1
2 3218
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>Your 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.location="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!
Jul 19 '05 #2
Thanks!

"Scott" <sc***************@hotmail.com> wrote in message
news:2f**************************@posting.google.c om...
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>Your 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.location="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!

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Boris ©avc | last post: by
4 posts views Thread by Patrick Rouse | last post: by
reply views Thread by mmcgee00 | last post: by
reply views Thread by jasone | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.