Location: PHPKode > scripts > PHP Tip Class > php-tip-class/README.txt

ABOUT PHP_TIP CLASS:

*************************************************

Author:    Ersin Güvenç                   
Email:     hide@address.com              
Web:       http://ersin.fikirmakinasi.net  
Location:  Turkey - istanbul              
Version:   1.3
Date:      02.27.2008 12:13 AM
                                                                     
Php_tip class under the LGPL license.
If you want to use php_tip in your commercial software please contact me.
    

*************************************************
INSTALL:

1- Create a mysql database
2- Load data.sql
3- Set $SERVERNAME, $DATABASENAME, $USERNAME and $PASSWORD from the index.php
4- Run index.php file from your localhost.

HOW TO USE:
**************************************************************************************************************
<?php

include "php_tip.class.php";
$tipi = new php_tip();

?>

HTML
<HEAD>
<?php
//Print css data between <HEAD></HEAD> tags.
 
$tipi->tip_top($opacity='99','Arial','12px','black','bold',$padding='33px 8px 0', 'bubble.gif');
$tipi->a_link('blue', 'underline', $hover_color='red',$hover_deco='none', $hover_bg='lightyellow');
$tipi->tip_middle('Arial','12px','black','none','0 8px','bubble_filler.gif');
$tipi->tip_bottom('Arial','10px','#548912','none','3px 8px 14px','bubble.gif');

?>
</HEAD>

<?PHP
 
$subject = "<b>Weberian political sociology:</b>
In some social sciences, the understanding of the defining bla bla....";  



$tipi->tip($subject,'what is the', '_blank', true,  '1');
            -----       ----         ----     ----   ----
             |           |	      |        |      |
             Subject   What is	    Url	     Limit    Limit Number.(While limit=true all words shows as 1,2, or 3... times.)
		       the word.    open     Ýf true       
                            	    in new   all words
                                    window   shows(loops)                                      
                                    or       as limit.                                              
                                    self.    elseif                                              
                                  	     false                                              
                                  	     same words                                            
                                  	     shows                                              
                                  	     many times.                                            
										          
											
											  
?> 

AND LOOK AT THE HowToUse.jpg.
                                                 
**************************************************************************************************************

CUSTOMIZATION:
YOU CAN CUSTOMIZE BALLOON TIP with a graphic editor like fireworks.
-Open edit_bubble_filler.png and bubble.png and edit this files.

ABOUT VERSION:
version 1.1 : Added word show limit.
You can control word show time with word_limit.

Version 1.2:  Word boundary problem fixed.
              Added ballon_table_width for opera and mozilla browsers.
	      tip_balloon.js edited.
	      (Thanks Ajay Chadha for report this bugs.)
	      data.sql updated.

version 1.3:  Deleted all .js files.
	      Added .gif based css tooltip.
              
Return current item: PHP Tip Class