Fichier: /pages/tutorials/tooltip/tooltip1.php
<?php class Tooltip1 extends Page {
public function InitializeComponent() { parent::$PAGE_TITLE = "Tutorial : All Tooltip styles";
$object = new WSPObject();
// Styles $object->add("All Styles : <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".$cle)->setStyle($valeur); $pic = new Picture("http://www.website-php.com/img/wiki_dock.png","What's Up?"); $pic->setId("picture".$cle); $pic->tooltip($tool_des); $object->add($pic); }
$this->render = $object; } } ?>
Retourner aux tutoriels du composants Tooltip
|