jasp.webcom
Class AdRotator
java.lang.Object
|
+--jasp.webcom.AdRotator
- public class AdRotator
- extends java.lang.Object
The Ad Rotator component creates an Ad Rotator object that
automates the rotation of advertisement images on a Web page.
Each time a user opens or reloads the Web page, the Ad Rotator
component displays a new advertisement based on the information
you specify in a Rotator Schedule File.
You can record how many users click each advertisement by setting
the URL parameter in the Rotator Schedule file to direct users to
the Redirection File. When you specify this parameter, each jump
to an advertiser's URL is recorded in the Web server activity logs.
Constructor Summary |
AdRotator()
Creates an Ad Rotator object that automates the rotation of
advertisement images on a Web page. |
Method Summary |
boolean |
Clickable()
Specifies whether the advertisement is a hyperlink. |
java.lang.String |
GetAdvertisement(java.lang.String rotationSchedulePath)
Gets the specifications for the next scheduled advertisement
from the data file and formats it as HTML. |
java.lang.String |
getTargetFrame()
Gets the name of the frame in which to display the advertisement. |
void |
setClickable(boolean c)
Sets clickable |
void |
setTargetFrame(java.lang.String f)
Sets the name of the frame in which to display the advertisement. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdRotator
public AdRotator()
- Creates an Ad Rotator object that automates the rotation of
advertisement images on a Web page.
Clickable
public boolean Clickable()
- Specifies whether the advertisement is a hyperlink.
setClickable
public void setClickable(boolean c)
- Sets clickable
- Parameters:
c
- a boolean
setTargetFrame
public void setTargetFrame(java.lang.String f)
- Sets the name of the frame in which to display the advertisement.
- Parameters:
f
- a String
getTargetFrame
public java.lang.String getTargetFrame()
- Gets the name of the frame in which to display the advertisement.
- Returns:
- a string
GetAdvertisement
public java.lang.String GetAdvertisement(java.lang.String rotationSchedulePath)
- Gets the specifications for the next scheduled advertisement
from the data file and formats it as HTML.
- Parameters:
rotationSchedulePath
- Specifies the location of the Rotator
Schedule file relative to the virtual directory- Returns:
- Returns HTML that displays the advertisement in the current page.