AdRotator Problem

Results 1 to 2 of 2

Thread: AdRotator Problem

  1. #1
    Machine Guest

    Default AdRotator Problem

    I&#039m trying to get a new browser window to open when someone clicks on the ad, in the ad rotator. It works, however, a new window DOES NOT open. Is the below code ( right? Thank You<BR><BR>---Code Below---<BR><BR>&#060;SCRIPT LANGUAGE=VBScript RUNAT=SERVER&#062;<BR>Function getAd() <BR>Dim loAd<BR><BR>&#039-- Create an instance of the Adrotator component<BR><BR>Set loAd = Server.CreateObject("MSWC.AdRotator")<BR><BR>&#039-- Set the target frame, if any. This is the frame the where ad <BR>&#039-- URL will open up. If the HTML page does not find the target name<BR>&#039-- the URL will be opened in a new window<BR><BR>loAd.TargetFrame = "_blank" &#039&#060;--I think this is my problem---<BR><BR>&#039-- Get a random avertisement from the text file<BR>&#039-- This file is in the /ad folder <BR><BR>getAd = loAd.GetAdvertisement("/ad/adrotator.txt")<BR>End Function<BR>&#060;/SCRIPT&#062;<BR>

  2. #2
    Khyati Guest

    Default RE: AdRotator Problem

    Change loAd.TargetFrame = "_blank" <BR>to loAd.TargetFrame = "Target=_blank"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts