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
 


Picture on click event

Tutoriels

>

Tutoriel Picture

>

Picture on click event


Picture-03: Tutoriel du composants Picture du FrameWork PHP WebSite-PHP.

Picture on click event:

The Sacred Dog by cuellar


Retourner aux tutoriels du composants Picture



Code source

Code source


Fichier: /pages/tutorials/picture/picture-03.php

<?php
class Picture03 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Picture on click event";
        
        
$pic = new Picture("img/slider/1-small.jpg");
        
$pic->setTitle("The Sacred Dog by cuellar");
        
        
$pic->onClick($this"onClickPicture");
        
$pic->setAjaxEvent();
        
        
$this->render $pic;
    }
    
    public function 
onClickPicture($sender) {
        
alert("click on picture");
    }
}
?>


Retourner aux tutoriels du composants Picture


Share

 


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