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
 


ImageRotator: Flash rotator

Tutorials

>

Tutorial Slider

>

ImageRotator: Flash rotator


Slider-02: Tutorial of the composant Slider of the PHP FrameWork WebSite-PHP.

ImageRotator: Flash rotator:



Go back to tutorial of the componant Slider



Source code

Source code



To use Slider, you need to connect to the admin interface of the framework WebSite-PHP.

Once connected you will go to the menu Configuration -> Configure modules and enable the module Slider.



File: /pages/tutorials/slider/slider-02.php

<?php
class Slider02 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "ImageRotator: Flash rotator";
        
        
$rotator = new ImageRotator("imgRotate"250150);
        
$rotator->addImage("img/slider/1-small.jpg"
                
"The Sacred Dog by cuellar",
                
"http://www.flickr.com/photos/cuellar/2961728459/in/
                pool-creative_commons-_free_pictures"
);
        
        
$rotator->addImage("img/slider/2-small.jpg"
                
"Eilean Donan Castle by yashima"
                
"http://www.flickr.com/photos/yashima/286642374/in/
                pool-creative_commons-_free_pictures"
);
        
        
$rotator->addImage("img/slider/3-small.jpg"
                
"In The Blue by sharkbait"
                
"http://www.flickr.com/photos/sharkbait/2992242065/in/
                pool-809956@N25/"
);
                
        
$this->render $rotator;
    }
}
?>


Go back to tutorial of the componant Slider


Share

 


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