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