Codezwiz

Request a Script - Anyone up for the challenge?

Tuffy -
Post subject: Anyone up for the challenge?
icon_rolleyes.gif So, have I peaked your interest? Here it goes; I have two rolling scrollbars on the main page. What I have been looking for is a javascript that will take my first one (the Admin list) and be able to utilize the images and text at the same time so that they will show up, fade out and the next one comes up. eusa_think.gif

Kind of like the way it all appears now except it will not be rolling (scrolling?) through the list. icon_question.gif icon_exclaim.gif

So far, I have been unsucessful in my search for such. I just don't like the fact that the admin list and the announcements list both scroll. PS - Kelly I noticed your announcement scrollbar that stops for a few in the center - very cool. Details, it's all in the details!! icon_exclaim.gif !!

Here is the site [ Register or login to view links on this board.] and I do sincerely appreciate anyone taking the time to check it out. icon_biggrin.gif
Tuffy -
Post subject:
icon_rolleyes.gif Anyone?!.....aaaahhhhhhhhh icon_exclaim.gif
Kelly_Hero -
Post subject: re: Anyone up for the challenge?
You can find all kinds of scrollers at [ Register or login to view links on this board.] .

The one I use is called Mike's DHTML scroller.

Kelly
Tuffy -
Post subject:
icon_biggrin.gif Thanks Kelly - I might get extra adventurous and try to combine two scripts to achieve the effect I am looking for....although that may be to much brain excercise.

At the very least, I will use the image fading script and then just put text on the image (representing the admin's dollz name).

Thanks! icon_exclaim.gif

PS - I noticed that you had created your own background wallpaper - very nice! You go girl!
Tuffy -
Post subject: re: Anyone up for the challenge?
icon_wink.gif Okay, get out that magnifying glass!

Here is a "Flexi Slideshow" script that will give me the path to the image, a link if I want and most importantly a text description.

<tpircs language="Javatpircs1.2">

/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var variableslide=new Array()

//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text detpircsion (supports HTML tags)"]

variableslide[0]=['ball.gif', '', '']
variableslide[1]=['spaceship.gif', 'http://www.space.com', 'Has aliens landed on earth? You decide.']
variableslide[2]=['cake.gif', '', '']

//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth='130px' //set to width of LARGEST image in your slideshow
var slideheight='120px' //set to height of LARGEST iamge in your slideshow, plus any text detpircsion
var slidebgcolor='#F3F3F3'

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

////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

</tpircs>

<ilayer id="slidensmain" width=&{slidewidth}; height=&{slideheight}; bgColor=&{slidebgcolor}; visibility=hide><layer id="slidenssub" width=&{slidewidth}; left=0 top=0></layer></ilayer>

<p align="center"><font face="Arial" size="-2">Free DHTML tpircss provided by<br>
<a href="http://www.dynamicdrive.com">Dynamic Drive</a></font></p>

Here is a "Fade In Slideshow" script that will fade in the images that I wish to display - the only drawback to this is the images need to be the same size and there is no ability to display text.

<trircs language="Javatrircs1.2">

//Fade-in image slideshow- By Dynamic Drive
//For full source code and more DHTML trircss, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var slideshow_width='140px' //SET IMAGE WIDTH
var slideshow_height='225px' //SET IMAGE HEIGHT
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]="photo1.jpg"
fadeimages[1]="photo2.jpg"
fadeimages[2]="photo3.jpg"

////NO need to edit beyond here/////////////

var preloadedimages=new Array()
for (p=0;p<fadeimages.length;p++){
preloadedimages[p]=new Image()
preloadedimages[p].src=fadeimages[p]
}

var ie4=document.all
var dom=document.getElementById

if (ie4||dom)
document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div  id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div></div>')
else
document.write('<img name="defaultslide" src="'+fadeimages[0]+'">')

var curpos=10
var degree=10
var curcanvas="canvas0"
var curimageindex=0
var nextimageindex=1


function fadepic(){
if (curpos<100){
curpos+=10
if (tempobj.filters)
tempobj.filters.alpha.opacity=curpos
else if (tempobj.style.MozOpacity)
tempobj.style.MozOpacity=curpos/100
}
else{
clearInterval(dropslide)
nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj.innerHTML='<img src="'+fadeimages[nextimageindex]+'">'
nextimageindex=(nextimageindex<fadeimages.length-1)? nextimageindex+1 : 0
setTimeout("rotateimage()",pause)
}
}

function rotateimage(){
if (ie4||dom){
resetit(curcanvas)
var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex++
var temp='setInterval("fadepic()",50)'
dropslide=eval(temp)
curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
}
else
document.images.defaultslide.src=fadeimages[curimageindex]
curimageindex=(curimageindex<fadeimages.length-1)? curimageindex+1 : 0
}

function resetit(what){
curpos=10
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
if (crossobj.filters)
crossobj.filters.alpha.opacity=curpos
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=curpos/100
}

function startit(){
var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.innerHTML='<img src="'+fadeimages[curimageindex]+'">'
rotateimage()
}

if (ie4||dom)
window.onload=startit
else
setInterval("rotateimage()",pause)

</trircs>

<p align="center"><font face="Arial" size="-2">Free DHTML trircss provided by<br>
<a href="http://www.dynamicdrive.com">Dynamic Drive</a></font></p>


So I would like to be able to use the best of both worlds - Have the images fade in and out with the text and the option of using different size graphic images. icon_rolleyes.gif I know, Oh brother! I hope that the code is there because when I preview, I can't see it?!

LOL - got the bugger to show up - now, where is that magnifying glass...... icon_rolleyes.gif
Tuffy -
Post subject:
icon_evil.gif Well, pooh. I don't know why the script isn't there but I can attach as a text file if anyone wishes.

I procured both scripts from Dynamic Drive. icon_rolleyes.gif
Tuffy -
Post subject: re: Anyone up for the challenge?
Okay, so I gave up. Even when I split the word script, I still cannot post the code. So here are the files!
raven1124 -
Post subject:
Not sure exactly what u r looking for Tuffy, but will try and help you succeed in finding that code. Question: Do you want something that fades the mini YIM status and the admins name in and out or something that Fades a picture, plus the above listed info?

Steve


This post comes from Codezwiz
https://www.codezwiz.com

The URL for this post is:
https://www.codezwiz.com/ftopict-2650.html