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
 


Picture on click event

Tutorials

>

Tutorial Picture

>

Picture on click event


Picture-03: Tutorial of the composant Picture of the PHP FrameWork WebSite-PHP.

Picture on click event:

The Sacred Dog by cuellar


Go back to tutorial of the componant Picture



Source code

Source code


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


Go back to tutorial of the componant Picture


Share

 


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