PDA

View Full Version : Conveyor Belt Idea



freepokerf
07-31-2006, 01:50 AM
1) Script Title: Conveyor belt

3) Describe problem: not a problem as such but a suggestion or a request,

I use the conveyor belt script on my website at the moment (www.freepokerfind.com you will see what i mean at top of the page) and i wondered if there is a way to midify the script so that you could have a featured banner which stays still for say 10 seconds and then the rotator starts up again until the featured script appears at which point it stops for 10 seconds again. basically something that goes like this

AD1(10 secs) AD2..AD3..AD4..AD5..AD1(10 secs) AD2... and so on, so that once the rotation is complete it stops on the main banner allowing more attention from the members!

If you know how or have a version of this i would appreciate it,
please email support@freepokerfind.com

Thanks

jscheuer1
08-01-2006, 05:56 AM
Replace the existing slideleft() function with this one:


function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
else {
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"
clearInterval(lefttime)
setTimeout("lefttime=setInterval('slideleft()',30)",3000)
return;
}

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
else {
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"
clearInterval(lefttime)
setTimeout("lefttime=setInterval('slideleft()',30)",3000)
return;
}

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
}
}

Notice the two red 3000 values in the above. Set them both to the number of milliseconds you want the conveyor to pause (10000 = 10 seconds).

freepokerf
08-01-2006, 11:29 PM
Ok i replaced it but it doesnt seem to have had any effect as the slideshow just continues with no pausing at all, also i want it to pause on certain banners and not all of them so how would i do this, find below the coding i have at the moment

/***********************************************
* Conveyor belt slideshow script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/


//Specify the slider's width (in pixels)
var sliderwidth="700px"
//Specify the slider's height
var sliderheight="85px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=2
//configure background color:
slidebgcolor="#9CBBDA"

//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a href="http://banner.joylandcasino.com/cgi-bin/redir.cgi?member=freepokerf"><img src="http://www.freepokerfind.com/phpbb2/casino.gif" width="468" height="80"></a>'
leftrightslide[1]='<a href="http://crbanner.casinopays.com/cgi-bin/redir.cgi?id=N&member=freepokerf&profile=cpaysgen"><img border="0" src="http://cachewww.cpays.com/markettool/new_tools/cpays/English/bnr/dollar/120x60/cpaen12002.gif" width="120" height="80" ></a>'
leftrightslide[2]='<a href="http://banner.cdpoker.com/cgi-bin/redir.cgi?id=N&member=freepokerf&profile=100upto400"><img border="0" src="http://www.cpays-bfarm.com/new_tools/cdpoker/English/dollar/bnr/100_up_to_400/cdp468x60_100_400.gif" width="468" height="80" ></a>'
leftrightslide[3]='<a href="http://www.pokercs.com/_7011904cec81cb0761c7310afe29d228/" target="_blank"><img src="http://creatives.poker.com/rotate.php?link=7011904cec81cb0761c7310afe29d228.&tool=468x80" border="0" width="400" height="80"></a>'
leftrightslide[4]='<a href="http://banner.cdpoker.com/cgi-bin/redir.cgi?id=N&member=freepokerf&profile=100upto400"><img border="0" src="http://www.cpays-bfarm.com/new_tools/cdpoker/English/dollar/bnr/100_up_to_400/cdp468x60_100_400.gif" width="468" height="80" ></a>'
leftrightslide[5]='<a href="http://crbanner.casinopays.com/cgi-bin/redir.cgi?id=N&member=freepokerf&profile=cpaysgen"><img border="0" src="http://cachewww.cpays.com/markettool/new_tools/cpays/English/bnr/dollar/120x60/cpaen12002.gif" width="120" height="80" ></a>'
leftrightslide[6]='<a href="http://banner.joylandcasino.com/cgi-bin/redir.cgi?member=freepokerf"><img src="http://www.freepokerfind.com/phpbb2/casino.gif" width="468" height="80"></a>'
leftrightslide[7]='<a href="http://banner.cdpoker.com/cgi-bin/redir.cgi?id=N&member=freepokerf&profile=100upto400"><img border="0" src="http://www.cpays-bfarm.com/new_tools/cdpoker/English/dollar/bnr/100_up_to_400/cdp468x60_100_400.gif" width="468" height="80" ></a>'
leftrightslide[8]='<a href="http://affiliates.purple-lounge.com/processing/clickthrgh.asp?btag=a_871b_104"><img src="http://affiliates.purple-lounge.com/processing/impressions.asp?btag=a_871b_104" height="80" width="400" border=0></a>'
//Specify gap between each image (use HTML):
var imagegap=" "

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=5


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+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+slideshowgap+"px"
}
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+slideshowgap
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)&gt;(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
else {
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"
clearInterval(lefttime)
setTimeout("lefttime=setInterval('slideleft()',30)",<FONT color=red>3000</FONT>)
return;
}

if (parseInt(cross_slide2.style.left)&gt;(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
else {
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"
clearInterval(lefttime)
setTimeout("lefttime=setInterval('slideleft()',30)",<FONT color=red>3000</FONT>)
return;
}

}
else if (document.layers){
if (ns_slide.left&gt;(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap

if (ns_slide2.left&gt;(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
}
}

if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><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:0px;top:0px"></div>')
write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></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>')
}
}
</script>

The script can be seen at www.freepokerfind.com

Basically for arguments sake if i wanted banner 1 and 4 to be my main banners, could you get the slideshow to pause for 5 seconds on those banners only? or even if it just froze for 5 seconds on the first banner of each slide that would be handy.

Please let me know if this can be done,

Thanks for your help

SImon

jscheuer1
08-02-2006, 04:23 AM
That's not what you asked for. You asked for only the first banner to receive this treatment. The code checked out here locally. I suggest that you lose the font tags, they do not belong in code like that. I highlighted those numbers red for emphasis/identification purposes. If you had cut and pasted the code with a normal text editor, the color would have been stripped. In fact, this is the first time I have ever seen someone pick up font tags from colored code I'd posted in these forums. I've been at this a long time. How did you manage it?

freepokerf
08-02-2006, 11:11 PM
Erm i simply copied and pasted it straight into the script but for some reason my end it does not pause on the first banner, actually it doesnt pause at all :confused: I did try using it without the font tag but it still didnt have the right effect *cry* never mind, maybe its just not meant to be for me hey lol.

Thanks for you help anyways

jscheuer1
08-03-2006, 07:06 AM
See:

http://home.comcast.net/~jscheuer1/side/freepoker_h.htm