HAW_banner Class Reference

List of all members.

Public Member Functions

 HAW_banner ($image, $url, $alt)
 set_size ($width, $height)
 set_br ($br)

Detailed Description

This class provides a banner in a HAW_deck object (HTML only).

Examples:

$myPage = new HAW_deck(...);
...
$myBanner1 = new HAW_banner("http://wwww.adpartner1.org/images/adp1.gif", "http://www.adpartner1.org/", "Welcome at adpartner1!");
$myPage->add_banner($myBanner1);
...
$myBanner2 = new HAW_banner("http://wwww.adpartner2.org/images/adp2.gif", HAW_NOLINK, "Buy products of adpartner2!");
$myBanner2->set_size(300,50);
$myBanner2->set_br(0);
$myPage->add_banner($myBanner2,HAW_TOP);

See also:
HAW_deck


Member Function Documentation

HAW_banner::HAW_banner ( image,
url,
alt 
)

Constructor

Parameters:
image Your ad-partners banner in .gif, .jpg or any other HTML compatible format.
url Link to your ad-partner (or HAW_NOLINK if no link available)
alt Alternative text for the banner

HAW_banner::set_size ( width,
height 
)

Sets explicitely the size of a banner
Note: Use of this function is not mandatory but will accelerate page set-up

Parameters:
width Width of banner in pixels.
height Height of banner in pixels.

HAW_banner::set_br ( br  ) 

Sets the number of line breaks (CRLF) after banner. (default: 1)

Parameters:
br Some number of line breaks.


The documentation for this class was generated from the following file:
Generated on Mon Dec 6 21:51:55 2010 for HAWHAW PHP by  doxygen 1.5.1