Dash
All-Conference
Go Illini
Posts: 1,146
|
Post by Dash on May 6, 2004 10:33:22 GMT -5
Hey how did u get the slide show?? and would I beable to use it? If so what is the coding
|
|
Leak2Troupe03
All-Conference
Tim Tebow: Heisman, Mr. 20-20
Posts: 2,356
|
Post by Leak2Troupe03 on May 6, 2004 13:48:18 GMT -5
Yeah u can use it no problem. Ill make sure I post the coding later today when I get back from playing bball k.
|
|
Dash
All-Conference
Go Illini
Posts: 1,146
|
Post by Dash on May 6, 2004 14:32:31 GMT -5
thanks!!!!
|
|
Dash
All-Conference
Go Illini
Posts: 1,146
|
Post by Dash on May 7, 2004 11:32:39 GMT -5
Yeah u can use it no problem. Ill make sure I post the coding later today when I get back from playing bball k. Can I get the coding???
|
|
Leak2Troupe03
All-Conference
Tim Tebow: Heisman, Mr. 20-20
Posts: 2,356
|
Post by Leak2Troupe03 on May 7, 2004 16:56:05 GMT -5
<td width="200"> <script type="text/javascript"> var trans_width='200px' //slideshow width var trans_height='133px' //slideshow height var pause=3500 //SET PAUSE BETWEEN SLIDE (3000=3 seconds) var degree=10 //animation speed. Greater is faster. var slideshowcontent=new Array() slideshowcontent[0]=[" aggieathletics.com/gallery/gamepics/106/thumb/260667-R3-12.jpg"]slideshowcontent[1]=[" aggieathletics.com/gallery/gamepics/102/thumb/12thMan.jpg"]slideshowcontent[2]=[" aggieathletics.com/gallery/gamepics/102/thumb/tackle4.jpg"]slideshowcontent[3]=[" aggieathletics.com/gallery/gamepics/781/thumb/213787-R1-10_2.jpg"]slideshowcontent[4]=[" aggieathletics.com/gallery/gamepics/781/thumb/213787-R1-6.jpg"]slideshowcontent[5]=[" aggieathletics.com/gallery/gamepics/783/thumb/5121950-R1-029-13_1.jpg"]////NO need to edit beyond here///////////// var bgcolor='white' var imageholder=new Array() for (i=0;i<slideshowcontent.length;i++){ imageholder =new Image() imageholder.src=slideshowcontent[0] }
var ie4=document.all var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
if (ie4||dom) document.write('<div style="position:relative;width:'+trans_width+';height:'+trans_height+';overflow:hidden"><div id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>') else if (document.layers){ document.write('<ilayer id=tickernsmain visibility=hide width='+trans_width+' height='+trans_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+trans_width+' height='+trans_height+' left=0 top=0>'+'<img src="'+slideshowcontent[0][0]+'"></layer></ilayer>') }
var curpos=trans_width*(-1) var curcanvas="canvas0" var curindex=0 var nextindex=1
function getslidehtml(theslide){ var slidehtml="" if (theslide[1]!="") slidehtml+='<img src="'+theslide[0]+'" border="0">' if (theslide[1]!="") slidehtml+='</a>' return slidehtml }
function moveslide(){ if (curpos<0){ curpos=Math.min(curpos+degree,0) tempobj.style.left=curpos+"px" } else{ clearInterval(dropslide) if (crossobj.filters) crossobj.filters.alpha.opacity=100 else if (crossobj.style.MozOpacity) crossobj.style.MozOpacity=1 nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1" tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas) tempobj.innerHTML=getslidehtml(slideshowcontent[curindex]) nextindex=(nextindex<slideshowcontent.length-1)? nextindex+1 : 0 setTimeout("rotateslide()",pause) } }
function rotateslide(){ if (ie4||dom){ resetit(curcanvas) crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas) crossobj.style.zIndex++ if (crossobj.filters) document.all.canvas0.filters.alpha.opacity=document.all.canvas1.filters.alpha.opacity=20 else if (crossobj.style.MozOpacity) document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2 var temp='setInterval("moveslide()",50)' dropslide=eval(temp) curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0" } else if (document.layers){ crossobj.document.write(getslidehtml(slideshowcontent[curindex])) crossobj.document.close() } curindex=(curindex<slideshowcontent.length-1)? curindex+1 : 0 }
function jumptoslide(which){ curindex=which rotateslide() }
function resetit(what){ curpos=parseInt(trans_width)*(-1) var crossobj=ie4? eval("document.all."+what) : document.getElementById(what) crossobj.style.left=curpos+"px" }
function startit(){ crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub if (ie4||dom){ crossobj.innerHTML=getslidehtml(slideshowcontent[curindex]) rotateslide() } else{ document.tickernsmain.visibility='show' curindex++ setInterval("rotateslide()",pause) } }
if (window.addEventListener) window.addEventListener("load", startit, false) else if (window.attachEvent) window.attachEvent("onload", startit) else if (ie4||dom||document.layers) window.onload=startit
</script>
That should be it, tell me if u have any problems with it alright.
|
|
|
Post by Terps2k3 on May 7, 2004 16:58:34 GMT -5
is that the same thing altony uses in his UNC Bball dynasty?
|
|
|
Post by bmaster on May 7, 2004 18:25:22 GMT -5
Yo, if you look at what you posted it shows the ;D smiley face instead of your code, did you make sure to click diable smiles?
|
|
Leak2Troupe03
All-Conference
Tim Tebow: Heisman, Mr. 20-20
Posts: 2,356
|
Post by Leak2Troupe03 on May 7, 2004 19:25:18 GMT -5
Yeah, except I think different coding?? Im not sure where he got his, but I searched the web for mine and found it on one of those code websites. Altony may have done the same thing, but personally I like his better because its alot bigger. Mine may be the same, im not sure cause those pictures in it are small. <td width="200"> <script type="text/javascript"> var trans_width='200px' //slideshow width var trans_height='133px' //slideshow height var pause=3500 //SET PAUSE BETWEEN SLIDE (3000=3 seconds) var degree=10 //animation speed. Greater is faster. var slideshowcontent=new Array() slideshowcontent[0]=[" aggieathletics.com/gallery/gamepics/106/thumb/260667-R3-12.jpg"]slideshowcontent[1]=[" aggieathletics.com/gallery/gamepics/102/thumb/12thMan.jpg"]slideshowcontent[2]=[" aggieathletics.com/gallery/gamepics/102/thumb/tackle4.jpg"]slideshowcontent[3]=[" aggieathletics.com/gallery/gamepics/781/thumb/213787-R1-10_2.jpg"]slideshowcontent[4]=[" aggieathletics.com/gallery/gamepics/781/thumb/213787-R1-6.jpg"]slideshowcontent[5]=[" aggieathletics.com/gallery/gamepics/783/thumb/5121950-R1-029-13_1.jpg"]////NO need to edit beyond here///////////// var bgcolor='white' var imageholder=new Array() for (i=0;i<slideshowcontent.length;i++){ imageholder =new Image() imageholder.src=slideshowcontent[0] }
var ie4=document.all var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
if (ie4||dom) document.write('<iv style="position:relative;width:'+trans_width+';height:'+trans_height+';overflow:hidden"><iv id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><iv id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>') else if (document.layers){ document.write('<ilayer id=tickernsmain visibility=hide width='+trans_width+' height='+trans_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+trans_width+' height='+trans_height+' left=0 top=0>'+'<img src="'+slideshowcontent[0][0]+'"></layer></ilayer>') }
var curpos=trans_width*(-1) var curcanvas="canvas0" var curindex=0 var nextindex=1
function getslidehtml(theslide){ var slidehtml="" if (theslide[1]!="") slidehtml+='<img src="'+theslide[0]+'" border="0">' if (theslide[1]!="") slidehtml+='</a>' return slidehtml }
function moveslide(){ if (curpos<0){ curpos=Math.min(curpos+degree,0) tempobj.style.left=curpos+"px" } else{ clearInterval(dropslide) if (crossobj.filters) crossobj.filters.alpha.opacity=100 else if (crossobj.style.MozOpacity) crossobj.style.MozOpacity=1 nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1" tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas) tempobj.innerHTML=getslidehtml(slideshowcontent[curindex]) nextindex=(nextindex<slideshowcontent.length-1)? nextindex+1 : 0 setTimeout("rotateslide()",pause) } }
function rotateslide(){ if (ie4||dom){ resetit(curcanvas) crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas) crossobj.style.zIndex++ if (crossobj.filters) document.all.canvas0.filters.alpha.opacity=document.all.canvas1.filters.alpha.opacity=20 else if (crossobj.style.MozOpacity) document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2 var temp='setInterval("moveslide()",50)' dropslide=eval(temp) curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0" } else if (document.layers){ crossobj.document.write(getslidehtml(slideshowcontent[curindex])) crossobj.document.close() } curindex=(curindex<slideshowcontent.length-1)? curindex+1 : 0 }
function jumptoslide(which){ curindex=which rotateslide() }
function resetit(what){ curpos=parseInt(trans_width)*(-1) var crossobj=ie4? eval("document.all."+what) : document.getElementById(what) crossobj.style.left=curpos+"px" }
function startit(){ crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub if (ie4||dom){ crossobj.innerHTML=getslidehtml(slideshowcontent[curindex]) rotateslide() } else{ document.tickernsmain.visibility='show' curindex++ setInterval("rotateslide()",pause) } }
if (window.addEventListener) window.addEventListener("load", startit, false) else if (window.attachEvent) window.attachEvent("onload", startit) else if (ie4||dom||document.layers) window.onload=startit
</script>
|
|
Dash
All-Conference
Go Illini
Posts: 1,146
|
Post by Dash on May 7, 2004 20:25:12 GMT -5
it doesn't work for me:(
|
|
Leak2Troupe03
All-Conference
Tim Tebow: Heisman, Mr. 20-20
Posts: 2,356
|
Post by Leak2Troupe03 on May 7, 2004 21:16:24 GMT -5
Sorry Bpjffe I left something out man. <td width="200"> <script type="text/javascript"> var trans_width='200px' //slideshow width var trans_height='133px' //slideshow height var pause=3500 //SET PAUSE BETWEEN SLIDE (3000=3 seconds) var degree=10 //animation speed. Greater is faster. var slideshowcontent=new Array() slideshowcontent[0]=[" aggieathletics.com/gallery/gamepics/106/thumb/260667-R3-12.jpg"]slideshowcontent[1]=[" aggieathletics.com/gallery/gamepics/102/thumb/12thMan.jpg"]slideshowcontent[2]=[" aggieathletics.com/gallery/gamepics/102/thumb/tackle4.jpg"]slideshowcontent[3]=[" aggieathletics.com/gallery/gamepics/781/thumb/213787-R1-10_2.jpg"]slideshowcontent[4]=[" aggieathletics.com/gallery/gamepics/781/thumb/213787-R1-6.jpg"]slideshowcontent[5]=[" aggieathletics.com/gallery/gamepics/783/thumb/5121950-R1-029-13_1.jpg"]////NO need to edit beyond here///////////// var bgcolor='white' var imageholder=new Array() for (i=0;i<slideshowcontent.length;i++){ imageholder =new Image() imageholder.src=slideshowcontent[0] }
var ie4=document.all var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
if (ie4||dom) document.write('<div style="position:relative;width:'+trans_width+';height:'+trans_height+';overflow:hidden"><div id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>') else if (document.layers){ document.write('<ilayer id=tickernsmain visibility=hide width='+trans_width+' height='+trans_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+trans_width+' height='+trans_height+' left=0 top=0>'+'<img src="'+slideshowcontent[0][0]+'"></layer></ilayer>') }
var curpos=trans_width*(-1) var curcanvas="canvas0" var curindex=0 var nextindex=1
function getslidehtml(theslide){ var slidehtml="" if (theslide[1]!="") slidehtml+='<img src="'+theslide[0]+'" border="0">' if (theslide[1]!="") slidehtml+='</a>' return slidehtml }
function moveslide(){ if (curpos<0){ curpos=Math.min(curpos+degree,0) tempobj.style.left=curpos+"px" } else{ clearInterval(dropslide) if (crossobj.filters) crossobj.filters.alpha.opacity=100 else if (crossobj.style.MozOpacity) crossobj.style.MozOpacity=1 nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1" tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas) tempobj.innerHTML=getslidehtml(slideshowcontent[curindex]) nextindex=(nextindex<slideshowcontent.length-1)? nextindex+1 : 0 setTimeout("rotateslide()",pause) } }
function rotateslide(){ if (ie4||dom){ resetit(curcanvas) crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas) crossobj.style.zIndex++ if (crossobj.filters) document.all.canvas0.filters.alpha.opacity=document.all.canvas1.filters.alpha.opacity=20 else if (crossobj.style.MozOpacity) document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2 var temp='setInterval("moveslide()",50)' dropslide=eval(temp) curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0" } else if (document.layers){ crossobj.document.write(getslidehtml(slideshowcontent[curindex])) crossobj.document.close() } curindex=(curindex<slideshowcontent.length-1)? curindex+1 : 0 }
function jumptoslide(which){ curindex=which rotateslide() }
function resetit(what){ curpos=parseInt(trans_width)*(-1) var crossobj=ie4? eval("document.all."+what) : document.getElementById(what) crossobj.style.left=curpos+"px" }
function startit(){ crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub if (ie4||dom){ crossobj.innerHTML=getslidehtml(slideshowcontent[curindex]) rotateslide() } else{ document.tickernsmain.visibility='show' curindex++ setInterval("rotateslide()",pause) } }
if (window.addEventListener) window.addEventListener("load", startit, false) else if (window.attachEvent) window.attachEvent("onload", startit) else if (ie4||dom||document.layers) window.onload=startit
</script> </td> </tr><br>
|
|
bearcat
All-Conference
Posts: 3,276
|
Post by bearcat on Jun 17, 2004 10:28:37 GMT -5
Leak2Troupe,
I thought I would try this slideshow thing (if that's ok to use it)
I went ahead and tried the above code to see if it worked (if it worked, then I would have asked permission to use), but none of them worked. I thought I would see if you could see what was wrong since you had something like this on a site of yours.
I remember on your old Texas A&M site and the UNC bball site you mentioned had nice ones, and I thought I would add one to my missouri tigers site. I'll give you the code and the link to the site in a PM.
|
|