473,770 Members | 5,091 Online
Bytes | Software Development & Data Engineering Community
+ 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="javas cript">
banner1 = new Banner('banner1 ');
banner1.add("IM AGE", "v4.png", 5, 600, 160,"url" target="_blank" );
banner1.add("IM AGE", "v3.jpg", 5, 600, 160,"url" target="_blank" );
banner1.add("IM AGE", "v4.png", 5, 600, 160,"url" target="_blank" );
banner1.add("IM AGE", "v5.jpg", 5, 600, 160,"url" target="_blank" );
banner1.add("IM AGE", "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.len gth!=0)
top.location=se lf.document.loc ation;
//-->
</script>

The iframe itself is:
<IFRAME NAME="uwp" SRC="url"
ALLOWTRANSPAREN CY="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 2599
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
1968
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 don't understand. Any help would be appreciated - the sooner the better so I can get some sleep tonight! Undying gratitude to anyone willing to help a php beginner! here's the page with the error http://www.ioworldwide.com/ and...
3
2093
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 $4900.00. Just want it simple. Thanks jeff
2
2032
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 to be able hyperlink from a banner ad on a different site to show a different page in the iFrame when the index.htm page opens.
3
5148
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 http://chebucto.ns.ca/~ab496/ . The problem is that an iframe tag is used to position the banner on the hosting page. If the banner is clicked then the page which is linked from the banner then appears in the iframe area instead of a full page. At first I...
6
4961
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: |----------------------------------------------------------------| | Discrete table used as 'banner' | | DONE! | |----------------------------Table 1-----------------------------| ...
1
3107
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 the user clicks on a button. Here is the problem, the banner will be displayed inside an IFRAME with dimmensions of 728x90 on other websites, so when users click on it the banner will expand inside the IFRAME but will not be visible because...
9
16971
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" type="text/javascript" src="http://XXX.XXX.XXX.XXX/blahblah/0000/blahblahblah.php"></script> What I need to do is convert that line of code into an iframe format so that it does the same job of going into the server and pulling out the banner. Right now if I just...
11
12407
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 work at all. We have included the script below and would appreciate any feedback possible. <script type="text/javascript"> var milliSecondsToWait = 20000; function reloadIFrame(){ document.frames.location.href =
3
4231
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 pages, and CSS makes them look like buttons. I include that file using an <iframe> element in my other pages. when a user clicks a menu button (about us, home, etc.) the change in color isn't saved. The hover works - so it looks selected - and...
0
9591
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
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
10228
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...
1
10002
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
9869
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...
1
7415
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3575
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2816
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.