Slideshow 004
A:hover {color: #FF0000; font-family: Arial}
Back
Slideshow 004
//Specify the slider's width (in pixels)
var sliderwidth=800
//Specify the slider's height
var sliderheight=185
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=2
//configure background color:
slidebgcolor="blue"
//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[00]='01'
leftrightslide[01]='01'
leftrightslide[02]='01'
leftrightslide[03]='01'
leftrightslide[04]='01'
leftrightslide[05]='01'
leftrightslide[06]='01'
leftrightslide[07]='01'
leftrightslide[08]='01'
leftrightslide[09]=''
////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=slidespeed
leftrightslide=''+leftrightslide.join(" ")+''
var iedom=document.all||document.getElementById
if (iedom)
document.write(''+leftrightslide+'')
var actualwidth=''
var cross_slide, ns_slide
function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+20
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+20
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup
function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+30
if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+30
}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+30
if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+30
}
}
if (iedom||document.layers){
with (document){
document.write('')
if (iedom){
write('')
write('')
write('')
write('')
write('')
}
else if (document.layers){
write('')
write('')
write('')
write('')
}
document.write('')
}
}
This a pretty cool slideshow and can be used to preview
images on your website. Or affiliate buttons so your Web page won't
be to crowded. There is a bit of work with this script, but the good
part is that it comes in one part. It will be helpful to print this
page age copy the script on in the copy box and to a notepad program.
I originally did this for an adult website and they allowed me to include
the images.
Place where needed in the HTML Document.
Links
images
width
Height
Speed
Color
<script language="JavaScript1.2">
<!-- Ultimatephp.com -->
//Specify the slider's width (in pixels)
var sliderwidth=800
//Specify the slider's height
var sliderheight=185
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=2
//configure background color:
slidebgcolor="blue"
//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[00]='<a href="http://www.pennyspornpics.com"><img
src="images/image2.jpg"
border=0>01</a>'
leftrightslide[01]='<a href="http://www.pennyspornpics.com"><img
src="images/image3.jpg"
border=0>01</a>'
leftrightslide[02]='<a href="http://www.pennyspornpics.com"><img
src="images/image4.jpg"
border=0>01</a>'
leftrightslide[03]='<a href="http://www.pennyspornpics.com"><img
src="images/image5.jpg"
border=0>01</a>'
leftrightslide[04]='<a href="http://www.pennyspornpics.com"><img
src="images/image6.jpg"
border=0>01</a>'
leftrightslide[05]='<a href="http://www.pennyspornpics.com"><img
src="images/image7.jpg"
border=0>01</a>'
leftrightslide[06]='<a href="http://www.pennyspornpics.com"><img
src="images/image8.jpg"
border=0>01</a>'
leftrightslide[07]='<a href="http://www.pennyspornpics.com"><img
src="images/image9.jpg"
border=0>01</a>'
leftrightslide[08]='<a href="http://www.pennyspornpics.com"><img
src="images/image10.jpg"
border=0>01</a>'
leftrightslide[09]='<a href="http://www.pennyspornpics.com"><img
src="images/image1.jpg"
border=0></a>'
////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(" ")+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-3000">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide
function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") :
document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") :
document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth :
document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+20
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+20
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup
function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+30
if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+30
}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+30
if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+30
}
}
if (iedom||document.layers){
with (document){
document.write('<center><table border="5" bordercolor="#800080"
cellspacing="0" cellpadding="0"></center><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'"
onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2" style="position:absolute;left:0;top:0"></div>')
write('<div id="test3" style="position:absolute;left:-1000;top:0"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu"
bgColor='+slidebgcolor+'>')
write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0"
onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0"
onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
<!-- Ultimatephp.com -->
</script>
Place where needed in the HTML Document.
//Specify the slider's width (in pixels)
var sliderwidth=800
//Specify the slider's height
var sliderheight=185
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=2
//configure background color:
slidebgcolor="blue"
//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[00]='01'
leftrightslide[01]='01'
leftrightslide[02]='01'
leftrightslide[03]='01'
leftrightslide[04]='01'
leftrightslide[05]='01'
leftrightslide[06]='01'
leftrightslide[07]='01'
leftrightslide[08]='01'
leftrightslide[09]=''
////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=slidespeed
leftrightslide=''+leftrightslide.join(" ")+''
var iedom=document.all||document.getElementById
if (iedom)
document.write(''+leftrightslide+'')
var actualwidth=''
var cross_slide, ns_slide
function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+20
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+20
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup
function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+30
if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+30
}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+30
if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+30
}
}
if (iedom||document.layers){
with (document){
document.write('')
if (iedom){
write('')
write('')
write('')
write('')
write('')
}
else if (document.layers){
write('')
write('')
write('')
write('')
}
document.write('')
}
}
© Copyright 2003
Ultimatephp.com
Wyszukiwarka
Podobne podstrony:
tekst2 004TBP01x 3 3 slidesMunsell Slidesv 03 004004 Rak004 Powstawanie diamentówslideshowbio 004pich 004N SEP E 004więcej podobnych podstron