473,466 Members | 1,565 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

break iframe script not working with banner rotator

1 New Member
Hello All,

I am normally great at figuring out ways around iframe issues that frustrate us all.
I am using javasript to try and break an iframe that I have a banner rotator embedded in but it is not working. I want visitors to click the banners and actually be taken to those pages instead of the new page being stuck in the iframe. What ever the case when I click on any banner, it opens the url right there inside the frame instead of breaking out ontop. Nothing I do seems to work. I even tried to alter the javascript for the ad rotator a little to look like:

<script language="javascript">
banner1 = new Banner('banner1');
banner1.add("IMAGE", "v4.png", 5, 600, 160,"url" target="_blank");
banner1.add("IMAGE", "v3.jpg", 5, 600, 160,"url" target="_blank");
banner1.add("IMAGE", "v4.png", 5, 600, 160,"url" target="_blank");
banner1.add("IMAGE", "v5.jpg", 5, 600, 160,"url" target="_blank");
banner1.add("IMAGE", "v4.png", 5, 600, 160,"url" target="_blank");

document.write(banner1);
banner1.start();
</script>

Otherwise in the <head>on the html page that the iframe is on, I am using

<script language= "JavaScript">
<!--Break out of frames
if (top.frames.length!=0)
top.location=self.document.location;
//-->
</script>

The iframe itself is:
<IFRAME NAME="uwp" SRC="url"
ALLOWTRANSPARENCY="true" frameborder="0" width="175" height="640"></iframe>

Essentially, when visitors click on banners, I want them taken to the actual site and not stuck inside the frame. Any help would be appreciated!

Kwenterprise
Apr 3 '07 #1
2 2577
JosAH
11,448 Recognized Expert MVP
I moved this post to a more appropriate forum.

kind regards,

Jos (Java forum moderator)
Apr 3 '07 #2
acoder
16,027 Recognized Expert Moderator MVP
This should actually be in the main Javascript forum.
May 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Carolyn Gill | last post by:
It was working fine on the test server. loaded it onto iis6 server after installing php and got everything working (after redirecting it to the correct directory) except for 1 annoying error that I...
3
by: Jeff Uchtman | last post by:
Has anybody found a simple, no zone, banner ad management app? I just want click through and a start stop date function. I have see everything from soup to nuts on ad management form $10.00 to...
2
by: DaveO | last post by:
Hi All. I have a web with the default startup page as : index.htm that contains an iFrame. The default page, that loads in the iFrame, when index.htm is loaded, is htmPage1.htm I want...
3
by: Dan Johnson | last post by:
Hello all, I have been playing with the GNU banner exchange package, called banex, found at http://www.sourceforge.com/projects/banex . An example of it in action can be found at...
6
by: SF RVN | last post by:
I have searched NUMEROUS sources in an effort to find the magic (script, styles, syntax, etc.) that will allow me to create a web page with the following format: ...
1
by: egcgt3 | last post by:
Hi, I need help creating an IFrame busting code to allow a banner to expand out of an IFRAME. This is the situation I created a Flash banner with dimmesions 728x90 that expands to 728x400 when...
9
by: gwong123 | last post by:
Hey, I need to convert this javascript code into iframe. The javascript goes into a server and brings out an ad banner. The X's is the server IP. <script language="javascript"...
11
by: mediagulch | last post by:
Hello, We are currently running banner ads on a few of our sites and we implemented a javascript so they refresh after every 20 seconds. The script works great in IE though in Firefox it doesn't...
3
by: maffy | last post by:
I thought I could do this with just CSS, but it's not working. I have an html file header that contains the website banner and navigation bar. The nav bar is a <ul> list of links to the various...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
1
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.