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-02.php
<?php class Slider02 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "ImageRotator: Flash rotator"; $rotator = new ImageRotator("imgRotate", 250, 150); $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; } } ?>
Retourner aux tutoriels du composants Slider
|