File: /pages/tutorials/tooltip/tooltip3.php
<?php class Tooltip3 extends Page {
public function InitializeComponent() { parent::$PAGE_TITLE = "Tutorial : Tooltip Rounded styles";
$object = new WSPObject();
$object->add("<br>Rounded options : <br>"); $array_style= array("default","dark","cream","red","green","blue","youtube","youtube-red","youtube-green","cluetip","tipsy","widget"); foreach($array_style as $cle => $valeur) { $tool_des = new ToolTip(strtoupper($valeur)); $tool_des->setId("Tool_des_rounded".$cle)->setStyle($valeur); $tool_des->rounded(); $pic = new Picture("http://www.website-php.com/img/wiki_dock.png","What's Up?"); $pic->setId("picture_rounded".$cle); $pic->tooltip($tool_des); $object->add($pic); }
$this->render = $object; } } ?>
Go back to tutorial of the componant Tooltip
|