Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 7th, 2009, 10:39 AM
RaeRene RaeRene is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Location: USA
Posts: 2 RaeRene User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 21 sec
Reputation Power: 0
Question My rotating banners won't open in a new window

Hello,

I am new to JavaScript and I had someone else help me with creating what you will see below. We can't figure out why using the window.open or the target="_blank" will not allow the rotating banners to open in a new window.

Any help you can give me is greatly appreciated!!

Thank you,
RaeRene


Code:
<html>
<head>

<script language="JavaScript">
<!-- Beginning of JavaScript -

if (document.images) {
ads = new Array(11);
ads[0] = "SoC125x125.gif";
ads[1] = "Lion125x125-r.gif";
ads[2] = "SP125x125-3.gif";
ads[3] = "SoC125x125-cos.gif";
ads[4] = "Ruby125x125.gif";
ads[5] = "SoC125x125-rock.gif";
ads[6] = "Lion125x125-b.gif";
ads[7] = "SP125x125-1.gif";
ads[8] = "SoC125x125-hal.gif";
ads[9] = "Ruby125x125-1.gif";
ads[10] = "SP125x125-2.gif";
}

newplace = new Array(6);
newplace[0] = "http://279795"
newplace[1] = "http://287329"
newplace[2] = "http://334938"
newplace[3] = "http://279795"
newplace[4] = "http://360522"
newplace[5] = "http://279795"
newplace[6] = "http://287329"
newplace[7] = "http://334938"
newplace[8] = "http://279795"
newplace[9] = "http://360522"
newplace[10] = "http://334938"

var timer = null
var	 counter = 0

function banner() {
	    timer=setTimeout("banner()", 6000);
		counter++;
		if (counter >= 11)
		counter = 0;
		document.bannerad.src = ads[counter];
}

function gothere() {
		counter2 = counter;
		window.location.href = newplace[counter2];
}

// - End of JavaScript - -->
</script>

</head>

<body bgcolor="661100" onload="banner()">

<a href="javascript:gothere()"><img src="SoC125x125.gif" border="0" name="bannerad" ></a>

</body>
</html>

Reply With Quote
  #2  
Old September 7th, 2009, 07:05 PM
Nilpo's Avatar
Nilpo Nilpo is offline
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,880 Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)  Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Week 2 Days 8 h 47 m 8 sec
Reputation Power: 967
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
Because you're using window.location which opens in the current window.
__________________
Don't like me? Click it.

Scripting problems? Windows questions? Ask the Windows Guru!

Stay up to date with all of my latest content. Follow me on Twitter!

Help us help you! Post your exact error message with these easy tips!

Reply With Quote
  #3  
Old September 9th, 2009, 12:01 PM
RaeRene RaeRene is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Location: USA
Posts: 2 RaeRene User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 21 sec
Reputation Power: 0
Quote:
Originally Posted by Nilpo
Because you're using window.location which opens in the current window.


Hello Nilpo,

Thank you for pointing that out!

I am very new to this all so sometimes, the most obvious things to the longer standing coders are not as such to me.

Take care,
Rae

Reply With Quote
  #4  
Old September 9th, 2009, 07:28 PM
Nilpo's Avatar
Nilpo Nilpo is offline
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,880 Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)Nilpo User rank is General (90000 - 100000 Reputation Level)  Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1Folding Points: 214558 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Week 2 Days 8 h 47 m 8 sec
Reputation Power: 967
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
Quote:
Originally Posted by RaeRene
Hello Nilpo,

Thank you for pointing that out!

I am very new to this all so sometimes, the most obvious things to the longer standing coders are not as such to me.

Take care,
Rae
No problem. We all have to learn sometime.

Take care as well.

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > My rotating banners won't open in a new window


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek