WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Tutorial : All Tooltip styles

Tutorials

>

Tutorial Tooltip

>

Tutorial : All Tooltip styles


Tooltip1: Tutorial of the composant Tooltip of the PHP FrameWork WebSite-PHP.

Tutorial : All Tooltip styles:

All Styles :


Go back to tutorial of the componant Tooltip



Source code

Source code


File: /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;
    }
}
?>


Go back to tutorial of the componant Tooltip


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker