PDA

View Full Version : Resizing a slidshow



kjones
12-17-2011, 02:35 AM
1) Resizing a Slide Show

2)Pixelating Slideshow Script (http://www.dynamicdrive.com/dynamicindex14/pixelate.htm)

3) This is the only code that I can get to work on my website but now I need the slideshow to be smaller and fit along text. Where in the code can i do this?

vwphillips
12-17-2011, 09:26 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title></title>
<script type="text/javascript">
<!--

//Pixelating Image slideshow
//Copyright Dynamic Drive 2001
//Visit http://www.dynamicdrive.com for this script

//specify interval between slide (in mili seconds)
var slidespeed=3000
//specify images
var slideimages=new Array("http://www.dynamicdrive.com/dynamicindex14/photo1.jpg","http://www.dynamicdrive.com/dynamicindex14/photo2.jpg","http://www.dynamicdrive.com/dynamicindex14/photo3.jpg")
//specify corresponding links
var slidelinks=new Array("http://www.dynamicdrive.com","http://wsabstract.com","http://www.geocities.com")

var imageholder=new Array()
var ie55=window.createPopup
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
window.location=slidelinks[whichlink]
}

//-->
</script></head>

<body>
Some text <a href="javascript:gotoshow()"><img src="http://www.dynamicdrive.com/dynamicindex14/photo1.jpg" name="slide" border=0 style="width:50px;filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)"></a> Some Text

<script type="text/javascript">
<!--
var whichlink=0
var whichimage=0
var pixeldelay=(ie55)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie55) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie55) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+pixeldelay)
}
slideit()

//-->
</script>

<p align="center"><font face="arial" size="-2">This free script provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://www.dynamicdrive.com">Dynamic Drive</a></font></p>
</body>

</html>