473,699 Members | 2,292 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 3383
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
1446
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 with Javascript code? <div><center> <script language="javascript"
4
1963
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 on my website. I'd like to be able to track how many clicks I get on each of my banner ads,...
2
2820
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 when I mouseover on the image, and then continue once I move the cursor out of the banner image....
0
1432
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 entirely successful. *******************************************************
13
2367
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
2565
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
1193
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 on the page depending on what time of year it is. for instance in the admin section that i will...
0
2115
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 looking the way I want it to. Now the banner text has large font and in bold. I want to have this...
0
8623
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9184
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9048
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8931
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8892
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7767
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5878
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4635
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.