Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Slideshow

Parašė webzlt· 2010 Geg. 12 19:05:10
#9

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Daja Decor</title>
<link href="styles.css" rel="stylesheet" type="text/css" />


<style>
body {
   margin: 0px;
   padding: 0px;
   background: url(dajakarp/Untitled-4.gif) repeat-x left top;
   font: 13px Arial, Helvetica, sans-serif;
   color: #efde9c;
   background: #efde9c;
}
</style>


<script language="JavaScript">
<!--

// Add your pictures to an array called pics
pics = new Array();

// Set the title and file location (URL) of each pics element
// Add as many pictures as you want
// Note that JavaScript arrays start at 0
pics[0] = new Array("Title 1", "your_file_1_url.jpg");
pics[1] = new Array("Title 2", "your_file_2_url.jpg");
pics[2] = new Array("Title 3", "your_file_3_url.jpg");
pics[3] = new Array("Title 4", "your_file_4_url.jpg");
pics[4] = new Array("Title 5", "your_file_5_url.jpg");

// Set the index of the first image (array starts at 0)
var index = 0;

// Increments the picture
function incrementPic() {
   index = index + 1;

   if (index == pics.length) {
 *index = 0;
   }
   loadPic();

return;
}

// Decrements the picture
function decrementPic() {
   index = index - 1;

   if (index < 0) {
 *index = pics.length - 1;
   }
   loadPic();

return;
}

// Loads the picture onto the page
function loadPic() {
   document.images["pic"].src = pics[index][1];
   document.images["pic"].alt = pics[index][0];

return;
}

// -->
</script>

</head>

<body onload="loadPic();">

<p><img name="pic" src="images/spacer.gif" border="0" alt="" /></p>
<p><a href="javascript:decrementPic();">PREV</a> | <a href="javascript:incrementPic();">NEXT</a></p>

</body>

</html>





ir tipo sunku?