Solved

VB Script with a FRAME TARGET

Posted on 1998-08-14
7
917 Views
Last Modified: 2012-05-04
How do I target another frame using VB script for banner ads in a differant frame,
When the banner ad comes up in FRAME1, I want to click on it, but target frame2.
How can I do this?

This is the script I am using:


     FILE NAME: what ever the web page is called as long as it ends with .asp
     this is to tell it to read the script.

     <HTML>
     <HEAD><TITLE>VBScript Using the Ad Rotator</TITLE></HEAD>
     <BODY BGCOLOR=#FFFFFF>
     <H3>VBScript Using the Ad Rotator</H3>

     <%  Set Ad = Server.CreateObject("MSWC.Adrotator") %>
     <%= Ad.GetAdvertisement("adrot.txt") %>
     <BR>

     </BODY>
     </HTML>
     ----------------------------------------------------------------------------------

     This is the script for what banner is seen
     FILE NAME: adrot.txt
     redirect /cgi-asp/adredir.asp
     width 460
     height 60
     border 1
     *
     http://www.e-scope.com/test/ad_1.gif
     http://www.e-scope.com
     Astro Mt. Bike Company
     20

     http://www.e-scope.com/test/ad_2.gif
     http://www.e-scope.com/hotel_pg/hotel_pg.htm
     Arbor Shoes
     20

     http://www.e-scope.com/test/ad_3.gif
     http://www.e-scope.com
     Clocktower Sporting Goods
     30

     http://www.e-scope.com/test/ad_4.gif
     http://www.e-scope.com
     GG&G
     30
     ----------------------------------------------------------------------------------------

     This is the script for the redirection after clicking on the banner
     FILE NAME: adredir.asp

     <% response.redirect (request.QueryString("url")) %>

Thanks
Paul S. Aiello
0
Comment
Question by:paulvb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 1

Expert Comment

by:soeding
ID: 1468929
paulvb,
automatisation with VBScript is good and fine.
But if there are no methods...
Regards
0
 

Author Comment

by:paulvb
ID: 1468930
SO how can I do this?
What is needed?
0
 
LVL 1

Expert Comment

by:KEWL
ID: 1468931
Window.parent.frames("framename").location.href="www.so-and-so.com"
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:paulvb
ID: 1468932
There was no answer in the comment box.
0
 
LVL 1

Expert Comment

by:KEWL
ID: 1468933
what do you mean?
0
 

Author Comment

by:paulvb
ID: 1468934
Now there is an answer, before the answer box was blank.
How can I grade this now? This is the answer I need.
Excellant
0
 
LVL 1

Accepted Solution

by:
KEWL earned 70 total points
ID: 1468935
when it says 'text above' it means that the answer is in the second top box.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question