Parašė AceN· 2010 Geg. 12 18:05:56
#3
Po velnių,aš ne ant
php-fusion darau, o
html dizainą ir noriu iterpt šitą scriptą
Nu sakykim geras scriptas.
Turiu
html dabartinį koda toki :
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Daja Decor</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
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;
}
<p><img src="Untitled-4.gif" width="160" height="203"><img border="0" src="images/dajadecor_01.gif" width="900" height="203"><img src="Untitled-4.gif" width="153" height="203"><img src="Untitled-4.gif" width="160" height="58"><img border="0" src="images/dajadecor_02.gif" width="335" height="58"><img border="0" src="images/dajadecor_03.gif" width="88" height="58"><img border="0" src="images/dajadecor_04.gif" width="118" height="58"><img border="0" src="images/dajadecor_05.gif" width="99" height="58"><img border="0" src="images/dajadecor_06.gif" width="89" height="58"><img border="0" src="images/dajadecor_07.gif" width="98" height="58"><img border="0" src="images/dajadecor_08.gif" width="73" height="58"><img border="0" src="Untitled-4.gif" width="153" height="58"><img border="0" src="images/dajadecor_11.gif" width="160" height="31"><img src="images/dajadecor_09.gif" width="37" height="31"><img src="images/dajadecor_10.gif" width="51" height="31"><img src="images/dajadecor_11.gif" width="41" height="31"><img src="images/dajadecor_12.gif" width="52" height="31"><img src="images/dajadecor_13.gif" width="719" height="31"><img src="Untitled-4.gif" width="153" height="31"><img src="Untitled-4.gif" width="160" height="29"><img src="images/dajadecor_15.gif" width="225" height="99"></p>
<p><img src="Untitled-4.gif" width="160" height="29"><img src="images/dajadecor_18.gif" width="201" height="62"></p>
O ta scripta reiktų įterpti kur raudonai apibraukta:
Tai va ten kur apibraukta reeiktų įdėt šitą scripta ( ar įmanoma? ):
<html>
<head>
<title>Simple Slideshow</title>
<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>
Redagavo AceN· 2010 Geg. 12 18:05:40