WebSite-PHP Framework PHP
Mehrsprachig
Einfacher Ajax Modus
Kein HTML, kein JavaScript
URL Rewriting
Mails senden
Sitemap - RSS - Web service
Laden Sie WebSite-PHP FrameWork jetzt herunter
 


Loading
 


Tutorial Tooltip

Tutorials

>

Tutorial Tooltip



Tutorial 1 : All Tooltip styles
Datei: /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;
    }
}
?>


Tutorial 2 : Tooltip with Titles
Datei: /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;
    }
}
?>


Tutorial 3 : Tooltip Rounded styles
Datei: /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;
    }
}
?>


Tutorial 4 : Tooltip Shadow styles
Datei: /pages/tutorials/tooltip/tooltip4.php

<?php
class Tooltip4 extends Page {

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

        
$object = new WSPObject();

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


Tutorial 5 : Tooltip Show styles
Datei: /pages/tutorials/tooltip/tooltip5.php

<?php
class Tooltip5 extends Page {

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

        
$object = new WSPObject();

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


Tutorial 6 : Tooltip positions styles
Datei: /pages/tutorials/tooltip/tooltip6.php

<?php
class Tooltip6 extends Page {

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

        
$object = new WSPObject();

        
$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-2024 WebSite-PHP Framework PHP
Start Dokumentation Herunterladen Schnellstart Tutorials Wiki Issue Tracker