Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>pics</title>
<style type="text/css">
#pic
{
width:204px;
height:42px;
}
</style>
</head>
<body>
<script>
var p=(Math.floor(Math.random()*20));
document.write("<img src=\"pics/img"+p+".jpg\" id=\"pic\" alt=\"pics\" />");
</script>
</body>
</html>
<SCRIPT LANGUAGE="Javascript">
function image() {
};
image = new image();
number = 0;
image[number++] = "<img src='images/1.gif' border='0'>"
image[number++] = "<img src='images/2.gif' border='0'>"
image[number++] = "<img src='images/3.gif' border='0'>"
image[number++] = "<img src='images/4.gif' border='0'>"
image[number++] = "<img src='images/5.gif' border='0'>"
increment = Math.floor(Math.random() * number);
document.write(image[increment]);
</SCRIPT>
<?
$image=array();
$image[]="image1";
$image[]="image2";
shuffle($image);
echo "<img src='$image[0]'>";
?>
Това е един прост код за случайни снимки само променяш images и си добавяш нови в кавички като ги отделяш със запетайки<script type="text/javascript">
var images = ["http://www.lipsum.com/images/banners/black_88x31.gif","http://www.lipsum.com/images/banners/grey_120x60.gif","http://www.lipsum.com/images/banners/black_88x31.gif","http://www.lipsum.com/images/banners/black_234x60.gif"];
document.write("<img src=\""+images[Math.round(Math.random()*(images.length-1))]+"\" alt=\"Tova e slu4aina kartinka\" />");
</script>
<SCRIPT LANGUAGE="Javascript">
function image() {
};
image = new image();
number = 0;
image[number++] = "<img src='images/1.gif' border='0' width='100px' height='100px'>"
image[number++] = "<img src='images/2.gif' border='0' width='100px' height='100px'>"
image[number++] = "<img src='images/3.gif' border='0' width='100px' height='100px'>"
image[number++] = "<img src='images/4.gif' border='0' width='100px' height='100px'>"
image[number++] = "<img src='images/5.gif' border='0' width='100px' height='100px'>"
increment = Math.floor(Math.random() * number);
document.write(image[increment]);
</SCRIPT>