Solved

VB Script with a FRAME TARGET

Posted on 1998-08-14
7
897 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
  • 3
  • 3
7 Comments
 
LVL 1

Expert Comment

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

Author Comment

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

Expert Comment

by:KEWL
Comment Utility
Window.parent.frames("framename").location.href="www.so-and-so.com"
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:paulvb
Comment Utility
There was no answer in the comment box.
0
 
LVL 1

Expert Comment

by:KEWL
Comment Utility
what do you mean?
0
 

Author Comment

by:paulvb
Comment Utility
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
Comment Utility
when it says 'text above' it means that the answer is in the second top box.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now