473,382 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

break iframe script not working with banner rotator

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 2571
JosAH
11,448 Expert 8TB
I moved this post to a more appropriate forum.

kind regards,

Jos (Java forum moderator)
Apr 3 '07 #2
acoder
16,027 Expert Mod 8TB
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.