Sunteți pe pagina 1din 3

<body>

<script type="text/javascript"><!--
/*
______________________________________________________
/������������������������������������������������������\
| another javascript from uncle jim |
| |
| feel free to copy, use and change this script as |
| long as this part remains unchanged. |
| |
| visit my website at http://www.jdstiles.com |
| for more scripts like this one |
| |
| created: 1996 |
| last updated: december, 2005 |
\______________________________________________________/
������������������������������������������������������
*/

var variableslide=new array()

//variableslide[x]=["path to image", "optional link for image", "optional text


description (supports html tags)"]

variableslide[0]=['http://www.esnips.com/nsdoc/a33f3dcd-65b5-4e69-8a72-
0a901ad33711', 'http://images3.orkut.com/images/album/8/285/34169285.jpg',
'description_one']
variableslide[1]=['http://www.esnips.com/nsdoc/bd0ea6c9-0e4e-439d-a8ef-
5ccd34752a98', 'http://www.esnips.com/nsdoc/621e47db-e8d4-478c-8bb9-
6e79a2cd7cf8','description_two']
variableslide[2]=['http://www.esnips.com/nsdoc/0186d047-bdb8-41db-ba71-
b76603ec055e', 'http://www.esnips.com/nsdoc/19f13447-7ed0-411d-9e92-43fc2cb720fe',
'description_three']
variableslide[3]=['http://www.esnips.com/nsdoc/b319125e-989f-4731-9e99-
1a5f207f9095', 'http://www.esnips.com/nsdoc/19f13447-7ed0-411d-9e92-43fc2cb720fe',
'description_4']
variableslide[4]=['http://www.esnips.com/nsdoc/621e47db-e8d4-478c-8bb9-
6e79a2cd7cf8', 'http://images3.orkut.com/images/album/8/285/34169285.jpg',
'description_one']
variableslide[5]=['http://www.esnips.com/nsdoc/044fec80-ef2f-483c-a14e-
1ab6985c5762', 'http://www.esnips.com/nsdoc/621e47db-e8d4-478c-8bb9-
6e79a2cd7cf8','description_two']
variableslide[6]=['http://www.esnips.com/nsdoc/8669bfc2-c71f-4363-beb3-
1b059cf1019e', 'http://www.esnips.com/nsdoc/19f13447-7ed0-411d-9e92-43fc2cb720fe',
'description_three']
variableslide[7]=['http://www.esnips.com/nsdoc/6bebad4a-0ce4-459a-a04d-
ba20012006ab', 'http://www.esnips.com/nsdoc/19f13447-7ed0-411d-9e92-43fc2cb720fe',
'description_4']
variableslide[8]=['http://www.esnips.com/nsdoc/621e47db-e8d4-478c-8bb9-
6e79a2cd7cf8', 'http://images3.orkut.com/images/album/8/285/34169285.jpg',
'description_one']
variableslide[9]=['http://images3.orkut.com/images/album/8/285/34169285.jpg',
'http://www.esnips.com/nsdoc/621e47db-e8d4-478c-8bb9-
6e79a2cd7cf8','description_two']
variableslide[10]=['http://www.esnips.com/nsdoc/8669bfc2-c71f-4363-beb3-
1b059cf1019e', 'http://www.esnips.com/nsdoc/19f13447-7ed0-411d-9e92-43fc2cb720fe',
'description_three']
variableslide[11]=['http://www.esnips.com/nsdoc/6bebad4a-0ce4-459a-a04d-
ba20012006ab', 'http://www.esnips.com/nsdoc/19f13447-7ed0-411d-9e92-43fc2cb720fe',
'description_4']

http://www.esnips.com/nsdoc/e747c510-01e0-46e0-be7b-6fcff7a2e554
//configure the below 3 variables to set the dimension/background color of the
slideshow

var slidewidth='244px' //set to width of largest image in your slideshow


var slideheight='244px' //set to height of largest iamge in your slideshow, plus
any text description
var slidebgcolor='#e0ffff'

//configure the below variable to determine the delay between image rotations (in
miliseconds)
var slidedelay=8000

////do not edit pass this line////////////////

var ie=document.all
var dom=document.getelementbyid

for (i=0;i<variableslide.length;i++){
var cacheimage=new image()
cacheimage.src=variableslide[i][0]
}

var currentslide=0

function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0"
vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]

if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerhtml=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
settimeout("rotateimages()",slidedelay)
}

if (ie||dom)
document.write('<div id="slidedom"
style="width:'+slidewidth+';height:'+slideheight+'; background-
color:'+slidebgcolor+'"></div>')
function start_slider(){
crossrotateobj=dom? document.getelementbyid("slidedom") : ie?
document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}

if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider
//--></script>
<ilayer id="slidensmain" width=&{slidewidth}; height=&{slideheight};
bgcolor=&{slidebgcolor}; visibility=hide><layer id="slidenssub"
width=&{slidewidth}; left=0 top=0></layer></ilayer>
</body>

S-ar putea să vă placă și