473,581 Members | 2,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3378
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!
Jul 19 '05 #2
Thanks!

"Scott" <sc************ ***@hotmail.com > wrote in message
news:2f******** *************** ***@posting.goo gle.com...
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!

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1443
by: Boris ©avc | last post by:
I have a banner exchange commercial on my page. The code from banner provider is in javascript. How can I change that code (the best would be in php) to know who click on my banner? If this would be normal html link i'd put hyperlink to mypage.php and then use header('Location:'.$_GET); on that page. But how to do it if banner is supplied...
4
1952
by: Patrick Rouse | last post by:
Please point me to the correct newsgroup if this is the wrong place to post this question. My website is written in simple HTML and hosted on a windows server at secureserver.net (via GoDaddy). I use an ASP Web Stats program called Power-Stats to track my website traffic, search keywords... The data is stored in an Access Database hosted...
2
2814
by: sgMuser | last post by:
Hi, I am not a good developer of Javascript codes. Needs this help to make some modification to this famous free javascript from Anarchos. i am using this in one of my webpage. What it does is, rotates banners with hyperlink specific to each image. it works just perfect but i need a simple modification. now I want to stop rotating the images...
0
1425
by: mmcgee00 | last post by:
Hi, Currently, I am trying to get different service banner by connecting to different ports using python (code below). The versions I am working with are python 4.2.1 and fedora core 4. I am trying to reproduce a very small piece of nmap, since nmap has to get a port's banner in order to figure out the version. However, I haven't been...
13
2357
Death Slaught
by: Death Slaught | last post by:
I have my entire page in my "main" div. div.main { width: 100%; height: 100%; border: 1px solid gray; } on the left of the page I have a banner.
1
2559
by: AR123 | last post by:
Hi I want to set up a rotating banner. Not sure how to incorporate my rotating banner code into the code below. I want the rotating banner to be the main feature image? This is set up in mediasurface My code is: <!-- start page container --> <div id="pageContainer"> <!-- start middle content area --> <div id="genericMiddle">
0
1190
by: jasone | last post by:
Hey guys, im creating a website that will be mostly powered by php. I will start by giving you some backgroound: I want the website to be totally dependant, so the user can update it all themselves.. upload new images,select which to show etc.! the first hurdle ive hit is that i want the 'admin' to be able to select what banner is shown...
0
2108
by: dragon52 | last post by:
Hi, I don't know how other people structure the banner for different screen sizes. I have done the following but don't know how to span the banner text over several sections. To adjust for screen sizes I have a small picture float to the left and another picture float to the right. There is a small gap in the middle. This is working and...
0
7883
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7808
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8158
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8312
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7917
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6567
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3835
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1413
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.