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
 


Slider with jQuery Nivo Slider

Tutoriels

>

Tutoriel Slider

>

Slider with jQuery Nivo Slider


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

Slider with jQuery Nivo Slider:

The Sacred Dog by cuellar
Eilean Donan Castle by yashima
In The Blue by sharkbait


Retourner aux tutoriels du composants Slider



Code source

Code source



Pour utiliser Slider vous devez vous connecter à l'interface administrateur du framework WebSite-PHP.

Une fois connecté vous devrez aller dans le menu configuration -> Configurer modules et activer le module Slider.



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

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


Retourner aux tutoriels du composants Slider


Share

 


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