471,888 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,888 software developers and data experts.

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 3298
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
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.