WebSite-PHP Framework PHP
Mehrsprachig
Einfacher Ajax Modus
Kein HTML, kein JavaScript
URL Rewriting
Mails senden
Sitemap - RSS - Web service
Laden Sie WebSite-PHP FrameWork jetzt herunter
 


Loading
 


Picture with map area

Tutorials

>

Tutorial Picture

>

Picture with map area


Picture-05: Tutorial der Komponente Picture vom PHP FrameWork WebSite-PHP.

Picture with map area:

In The Blue by sharkbait In The Blue by sharkbait


Zurück zum Tutorial der Komponente Picture



Quelltext

Quelltext


Datei: /pages/tutorials/picture/picture-05.php

<?php
class Picture05 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Picture with map area";
        
        
$pic = new Picture("img/slider/3-small.jpg");
        
$pic->setTitle("In The Blue by sharkbait");
        
        
$picture_map = new PictureMap("shark");
        
$picture_map->addPolygon(
            new 
Link("http://www.flickr.com/photos/sharkbait/2992242065
                /in/pool-809956@N25/"
Link::TARGET_BLANK), 
            
"In The Blue by sharkbait"
            
17,58,13,63,14,72,16,81,18,90,17,98,11,104,4,111,1,119,3,
            
127,13,128,23,124,31,120,33,127,34,135,39,143,48,146,49,
            
137,46,125,46,115,54,108,74,101,92,101,109,107,123,115,
            
131,128,137,122,149,123,137,114,123,103,110,92,91,85,79,
            
82,54,83,41,87,36,83,29,72);
        
        
$pic->setPictureMap($picture_map);
        
        
$this->render $pic;
    }
}
?>


Zurück zum Tutorial der Komponente Picture


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Start Dokumentation Herunterladen Schnellstart Tutorials Wiki Issue Tracker