WebSite-PHP Framework PHP
Multi langues
Mode Ajax simple
Aucun HTML, aucun JavaScript
URL rewrinting
Envoi d'email
Sitemap - RSS - Web service
Télécharger le Framework WebSite-PHP maintenant
 


Loading
 


Tutoriel Tooltip

Tutoriels

>

Tutoriel Tooltip



Tutoriel 1 : All Tooltip styles
Fichier: /pages/tutorials/tooltip/tooltip1.php

<?php
class Tooltip1 extends Page {

    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : All Tooltip styles";

        
$object = new Object();

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


Tutoriel 2 : Tooltip with Titles
Fichier: /pages/tutorials/tooltip/tooltip2.php

<?php
class Tooltip2 extends Page {

    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Tooltip with Titles";

        
$object = new Object();

       
$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;
    }
}
?>


Tutoriel 3 : Tooltip Rounded styles
Fichier: /pages/tutorials/tooltip/tooltip3.php

<?php
class Tooltip3 extends Page {

    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Tooltip Rounded styles";

        
$object = new Object();

        
$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;
    }
}
?>


Tutoriel 4 : Tooltip Shadow styles
Fichier: /pages/tutorials/tooltip/tooltip4.php

<?php
class Tooltip4 extends Page {

    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Tooltip Shadow styles";

        
$object = new Object();

        
$object->add("<br>Shadow options : <br>");
        
$array_style= array("default","dark","cream","red","green","blue","tipsy","tipped","widget");
        foreach(
$array_style as $cle => $valeur)
        {
            
$tool_des = new ToolTip(strtoupper($valeur));
            
$tool_des->setId("Tool_des_shadow".$cle)->setStyle($valeur);
            
$tool_des->shadow();
            
$pic = new Picture("http://www.website-php.com/img/wiki_dock.png","What's Up?");
            
$pic->setId("picture_shadow".$cle);
            
$pic->tooltip($tool_des);
            
$object->add($pic);
        }

        
$this->render $object;
    }
}
?>


Tutoriel 5 : Tooltip Show styles
Fichier: /pages/tutorials/tooltip/tooltip5.php

<?php
class Tooltip5 extends Page {

    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Tooltip Show styles";

        
$object = new Object();

        
$object->add("<br>Show options : <br>");

        
$tool_des = new ToolTip("showSlide");
        
$tool_des->setId("Tool_des_slide")->showSlide();
        
$pic = new Picture("http://www.website-php.com/img/wiki_dock.png","What's Up?");
        
$pic->setId("picture_showSlide");
        
$pic->tooltip($tool_des);
        
$object->add($pic);

        
$tool_des = new ToolTip("showClick");
        
$tool_des->setId("Tool_des_click")->showClick();
        
$pic = new Picture("http://www.website-php.com/img/wiki_dock.png","What's Up?");
        
$pic->setId("picture_showClick");
        
$pic->tooltip($tool_des);
        
$object->add($pic);

        
$tool_des = new ToolTip("showFade");
        
$tool_des->setId("Tool_des_fade")->showFade();
        
$pic = new Picture("http://www.website-php.com/img/wiki_dock.png","What's Up?");
        
$pic->setId("picture_showFade");
        
$pic->tooltip($tool_des);
        
$object->add($pic);

        
$this->render $object;
    }
}
?>


Tutoriel 6 : Tooltip positions styles
Fichier: /pages/tutorials/tooltip/tooltip6.php

<?php
class Tooltip6 extends Page {

    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Tooltip positions styles";

        
$object = new Object();

        
$object->add("<br>Position option : <br>");

        
$tool_des = new ToolTip("followCursor");
        
$tool_des->setId("Tool_des_followCursor")->followCursor();
        
$pic = new Picture("http://www.website-php.com/img/wiki_dock.png","What's Up?");
        
$pic->setId("picture_followCursor");
        
$pic->tooltip($tool_des);
        
$object->add($pic);

        
$this->render $object;
    }
}
?>



Share

 


Copyright © 2009-2016 WebSite-PHP Framework PHP
Accueil Documentation Télécharger Quick start Tutoriels Wiki Issue Tracker