DynAds
| Sample Testimonial
|
Dear Robusthost,
Your fine and excellently designed script is working quite delightfully.
I am very pleased to have invested the funds as I have done, because your script does
everything that I was looking for in a banner and content rotation script.
Keep up the good work, and I am glad I invested my money in your product.
I am further thankful that you installed it for me. Thanks again.
E. Meyer, usallportal.com
More...
|
|
Ad Class
Ad class is a container for a single ad or content. The properties of the class
closely reflects the DynAds ad database fields in the server. When an ad group is loaded
to the browser as a DAG object from DynAds database, all Ad objects are created automatically.
Ad Class: Container class for a single ad.
Ad.Html method:
Get the html content of the ad (without link redirection).
Ad.RedHtml method:
Get the redirected html content of the ad.
Ad.isAd Property:
Check if this object is an Ad object.
Ad.category Property:
Category of the Ad.
Ad.name Property:
Name of the Ad.
Ad.hhtml Property:
Header html of the Ad.
Ad.fhtml Property:
Footer html of the Ad.
Ad.link Property:
Original link of the Ad.
Ad.rlink Property:
Redirection link of the Ad.
Ad.weight Property:
Weight of the Ad.
| Ad Class |
| Definition: |
Container class for a single ad or content.
|
| Syntax: |
new Ad() ;
new Ad(anotherAdObject) ;
new Ad(category, name, hhtml, fhtml, link, rlink, weight) ;
|
| Arguments: |
None: An empty Ad is created.
anotherAdObject: Copy of anotherAdObject is created.
category, name, hhtml, fhtml, link, rlink, weight : An Ad object with the given properties
is created.
|
| Returns: |
A new Ad object.
|
| Remarks: |
The properties of Ad class can be accessed freely. When you access ads from DynAds,
necessary Ad objects are created automatically.
|
| Example: |
// Create a new Ad object
var myAd = new Ad("First_Category", "myAd", "<A HREF=\"", "\">Press Here</a>",
"http://robusthost.com/", "http://robusthost.com/redirect.html", 2) ;
|
| Ad.Html Method |
| Definition: |
Get the html content of the ad (without link redirection).
|
| Syntax: |
function Ad.Html() ;
|
| Arguments: |
None.
|
| Returns: |
The original html content of the ad.
|
| Remarks: |
None.
|
| Example: |
document.write(adObject.Html()) ;
|
| Ad.RedHtml Method |
| Definition: |
Get the redirected html content of the ad.
|
| Syntax: |
function Ad.RedHtml() ;
|
| Arguments: |
None.
|
| Returns: |
The redirected html content of the ad.
|
| Remarks: |
None.
|
| Example: |
document.write(adObject.RedHtml()) ;
|
| Ad.isAd Property |
| Definition: |
Check if this object is an Ad object. isAd property is always true for an Ad object.
|
| Ad.category Property |
| Definition: |
Category to which the ad belongs.
|
| Ad.name Property |
| Definition: |
Name of the ad.
|
| Ad.hhtml Property |
| Definition: |
Header html of the ad as defined in DynAds database.
|
| Ad.fhtml Property |
| Definition: |
Footer html of the ad as defined in DynAds database.
|
| Ad.link Property |
| Definition: |
Link field of the DynAds ad database
|
| Ad.rlink Property |
| Definition: |
Redirected link of the ad. This link is generated automatically by DynAds if the Ad is loaded
from DynAds. Otherwise, the redirected link must be created manually.
|
| Ad.weight Property |
| Definition: |
Weight assigned to this ad. When the ad is loaded from DynAds, this is the weight of the ad
in the loading display group.
|
|
|