A view from Alanya Castle Camii
Turkish Dictionary


Add Turkey Picture Snippet to Your Website

You have a website and you want to add snippets with pictures of Turkey that blend with your pages? You can add one or more snippets (100 pixels by 100 pixels) to your site with a random picture from our collection of thousands of user-contributed images. You can customize the random picture snippet to fit your needs: define what to include or exclude at the category level or at the picture level.



Let's start with a simple example. The snippet below has the default background color white, it is fetched randomly from all the user-contributed pictures on our site, and the picture displayed changes every 5 minutes.

To add this snippet to your site, copy and paste the following HTML code to the location on your page where you want the image to appear:







The default background color is white. This will be the color used for the parts of the 100px by 100px snippet not covered with the picture. Below are two examples, one with background color yellow and the other one with background color #f7f7f7 to blend in with the page background. To assign the background color we use the bgColor parameter. Note that for color codes like #f7f7f7, we replace the character # with underscore. The parameter in this case is bgColor=_f7f7f7.

The HTML code to add for these snippets is:







If you want to add multiple snippets on the same page where each one displays a different picture, use different sequence parameters. In the example below, the first snippet has sequence 1, second one has sequence 2 and the other one has sequence 3. They all have background color #f7f7f7 to blend in with the page background. You can see the sequence parameter in the HTML code given below the pictures.

The HTML code to add to your page for this is as follows:







If you don't specify a time interval, the picture in the snippet is renewed every 5 minutes. You can use the refreshIntervalMinutes parameter to adjust this (minimum is 5 minutes). Below is an example where the picture changes every 10 minutes, and the HTML code to add for it:






Advanced configuration

There are a number of parameters that can be used to include or exclude categories and/or pictures from the pool where your random pictures are fetched from. Here is a list of all the URL parameters including these:


Parameter Name Default Value Description
bgColor white This parameter specifies the color at the background of the picture snippet. You can set this to match the background color of your page to make the picture snippet look like a part of your pages.
sequence 1 If you have multiple snippets on the same page, set different sequence values to make sure the same picture is not always displayed on both.
refreshIntervalMinutes 5 This parameter defines the time interval in minutes between the content updates in your snippet. Minimum is 5 minutes and if you specify a value smaller than that it will be set to 5 minutes.
includeCategoriesTree - This parameter is a pipe-separated list of picture category IDs (maximum 10 category IDs can be used). Take the URL of the picture category Edirne for instance (http://www.turkishclass.com/turkey_pictures_gallery_18). The ID of this category is the last part of the URL, 18. To browse the Turkey picture galleries and check the IDs of the categories you want, visit http://www.turkishclass.com/turkey_pictures_gallery_0.

If you want to display pictures from category Edirne and Antalya (http://www.turkishclass.com/turkey_pictures_gallery_11) and all their subcategories in your snippet, you add the parameter includeCategoriesTree=18|11 in the URL of your snippet code.

If you want to include pictures of Edirne and Antalya but you don't want to include their subcategories, use parameter includeCategoriesSingle instead.
includeCategoriesSingle - This parameter is very similar to the includesCategoriesTree parameter explained above, but this one is used for including a category without its subcategories.
includePictures - This parameter is a pipe-separated list of picture IDs (maximum 10 picture IDs can be used). Take the URL of the picture of the Trojan Horse in Troy for instance (http://www.turkishclass.com/picture_754). The ID of this picture is the last part of the URL, 754. To browse the pictures of Turkey and check the IDs of the pictures you want, you can visit the categories pages or the pictures pages.

If you want to display this picture of Troy in your snippet and a picture of Turkish folk dances (http://www.turkishclass.com/picture_286), use parameter includePictures=754|286 in the URL of your snippet code.
excludeCategoriesTree - The use of this parameter is the same as includeCategoriesTree, but in this case the category IDs specified and all their subcategories are excluded in your random picture snippet.
excludeCategoriesSingle - The use of this parameter is the same as includeCategoriesSingle, but in this case the category IDs specified are excluded in your random picture snippet.
excludePictures - The use of this parameter is the same as includePictures, but in this case the picture IDs specified are excluded in your random picture snippet.


Below are some examples demonstrating the use of these URLs, followed the HTML snippet to generate them.



Random picture from category Leanders Tower - Kiz Kulesi. Background #f7f7f7, new picture every 10 minutes.





Random picture from category Turkish People. Background #f7f7f7, new picture every 10 minutes.





Random picture from categories Topkapi Palace - Topkapi Sarayi, Eyup and Halic - Golden Horn. Background #f7f7f7, new picture every 5 minutes.





Random picture from category Topkapi Palace - Topkapi Sarayi; exclude pictures 53, 98, 12935, 13065, 15048; include additional pictures 12713, 1187 and 14538. Background #f7f7f7, new picture every 5 minutes.





Random picture from category Edirne and all its subcategories. Background #f7f7f7, new picture every 10 minutes.





Random picture from category Edirne and all its subcategories, excluding subcategory Selimiye Mosque - Selimiye Camii. Background #f7f7f7, new picture every 10 minutes.





Random picture from all pictures of Turkey, excluding category Various Topics and all its subcategories. Background #f7f7f7, new picture every 10 minutes.







Did you add picture snippets to your site using this page? If you contact us and send the URL of your site we may add a link here as a showcase.


Comments (2)




Login:
Pass:
 Go! Password? 
 Join Activation
Turkish Chat
Open mini chat
User Statistics
 Online users: 32
(8 logged in)
upsy_daisy, Lissa1, Yersu, interregister, sashk, Vincent|, hayder, Iceheart_Omnis, more...
New in Forums
Artemision
lemon: fair enough! of ... I heard of. turkey is a land of histor...
Engl to turk
interregister: Sen her ´bu defa ... ... ... biri bana para ... ... ... ...
another word game
aiça: ... - noise
help me plz (tr-in)
foka: off yaaa reyhan old times was so nice
To Be - Past, Exercise 2
dilliduduk: ...
english to turkish please
Yersu: Bu ... özel bir gün. Herkese iyi şans, ... ve m...
prove this translation . very short...
Gülümseme: My try the bit i left in brackets was as a got idea but not s...
Personal pronouns
sonunda: mine benim; benimki: It´s mine. O ...


Views of moderators and administrators do not represent the views of the site. TurkishClass.com website and its owners are not responsible for the opinions of site users. Please read the site terms and conditions.