|
|
|
Add Turkey Picture Snippet to Your WebsiteYou 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 configurationThere 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:
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.
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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. |