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 (square, up to size 145x145 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. Default size is 125x125 pixels.
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 picture size is 125X125 pixels. Below are two examples, one with size 100x100 and the other one with size 145x145. To assign size we use the size parameter. Do not forget to set the height and width of the iframe to the same value as the size parameter you use.
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. You can see the sequence parameter in the HTML code given below the pictures. They are all at the default size, 125x125.
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:
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 |
---|---|---|
size | 125 | This parameter specifies the size of the thumbnail you would like to include on your page. The iframe you use should have the same height and width as the value of this parameter. |
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, new picture every 10 minutes.
Random picture from category Turkish People. New picture every 10 minutes.
Random picture from categories Topkapi Palace - Topkapi Sarayi, Eyup and Halic - Golden Horn. 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. New picture every 5 minutes.
Random picture from category Edirne and all its subcategories. New picture every 10 minutes.
Random picture from category Edirne and all its subcategories, excluding subcategory Selimiye Mosque - Selimiye Camii. New picture every 10 minutes.
Random picture from all pictures of Turkey, excluding category Various Topics and all its subcategories. New picture every 10 minutes.
Comments (9) | |
Turkish Dictionary |
---|
Turkish Chat |
---|
New in Forums |
---|
Please help me translate a sentence in a v...
qdemir: You can hear people omitting the letter r and the following vowel in t... |
Grammar
Moha-ios: can anyone explain this? miÅŸ deÄŸilim thanks |
T-E
og2009: çok saÄŸ ol, ... ederim, Leo. Ellerine saÄŸlık. |
T-E: Events
Leo S: Bu nasıl? Hadi o gecenin ... olaylarin ... ... Senin ... kadarıy... |
Turkish scientists analyze coldest region ...
harp00n: ... |
t-e
og2009: çok ... ederim, Leo arkadaÅŸ. ellerinize ... ol. |
I´m about to visit Turkey and lookin...
Juafin: You ... need to be covered except for when you are in religious places... |
Thousands enjoy Eastern Express overnight ...
: ... |
T-E
og2009: yorum ... sağ ... ... bize katkı sağladı. bazı ... makale ve dene... |
miÅŸ oldum !!!
ssaglam: ... de -mış eki ... ... durumu ... ... anlamına gelir. Yani bu... |
Audio Files Request
MCarlos: Hi Guys, I found the Vocabulary pages very nice and I want to thank y... |
E=T
og2009: ÇOK ... EDERİM |
Random Pictures of Turkey |
---|
Add thumbnails like this to your site |
Most liked | |
---|---|
![]() |
House and furniture
Turkish lesson by admin Level: beginner |
![]() |
Lesson 4
Turkish lesson by admin Level: beginner |
![]() |
Verbs / Subtitle I - Accusative Form
Turkish lesson by turkishcobra Level: intermediate |
![]() |
Date and Time
Turkish lesson by admin Level: beginner |
![]() |
Imperatives - Let
Turkish lesson by admin Level: intermediate |
![]() |
Noun states
Turkish lesson by admin Level: beginner |
![]() |
Major Vowel Harmony
Turkish lesson by admin Level: beginner |