hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : How I do I get links to popup pages to work with a rotating banner ad?
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

How I do I get links to popup pages to work with a rotating banner ad?

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-02-2006, 03:27 PM
chinchilla chinchilla is offline
Junior Guru Wannabe
 
Join Date: May 2002
Posts: 55

How I do I get links to popup pages to work with a rotating banner ad?


I've been using the following script on my web site to rotate several images, which each link to other pages or sites:

<script language="JavaScript">
var imgs1 = new Array("image1.jpg","image2.jpg","image3.jpg")
var lnks1 = new Array("page1.html", "page2.html","page3.html")
var alt1 = new Array("Title One", "Title Two", "Title Three")
var currentAd1 = 0
var imgCt1 = 3
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0
}
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
banner1.src=imgs1[currentAd1]
banner1.alt=alt1[currentAd1]
document.getElementById('adLink1').href=lnks1[currentAd1]
currentAd1++
}
window.setInterval("cycle1()",8000)
</script>

I've also used this simple script to pop up a page with a specific size and no scrollbar:

<a href="javascript:void(0);" onclick="window.open('page.html','','scrollbars=no,resizable=no,width=770,height=580,left=10,top=10');">

Now I need for my rotating image to link to a popup page instead of simply linking to a new page in the same window. Plopping the popup javascript links into the lnks1 array doesn't work, and I can't find a script that accommodates both rotation and popup.

Suggestions, anyone? A solution would be greatly appreciated.

Reply With Quote


Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Media Temple Revamps Affiliate Program with Increased Commissions Web Hosting News 2013-02-07 09:00:22
eTail West 2013 Web Hosting Events 2013-02-01 10:35:53
Parallels Summit 2013 Web Hosting Events 2013-01-31 19:51:16
Google+ Business Pages – Implications for Search Marketing Blog 2012-01-25 09:58:46
Web Host Webhostforasp.net Launches New Affiliate Program Web Hosting News 2012-01-16 14:31:12


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?