Scrolling Affiliates
2 posters
Page 1 of 1
Scrolling Affiliates
I have a box on my webpage for affiliates. I have it set to scroll to the left, and my goal is to have it scroll out of the box completely, then start again, and just keep doing that over and over. The problem is that the scrolling stops when it hits the left side of the box and starts over from there, not even showing half my affiliates. What's wrong with it, and how can I fix it?
Thanks in advance for any help you can offer!
Site Link
Thanks in advance for any help you can offer!
Site Link
Christiana- New Member
- Posts : 12
Reputation : 0
Language : English
Re: Scrolling Affiliates
I just tried that. It didn't work. The affiliates are still doing the same thing.
Christiana- New Member
- Posts : 12
Reputation : 0
Language : English
Re: Scrolling Affiliates
Does this continuous marquee script work in your table?
- Code:
<script language="JavaScript1.2">
//Specify the marquee's width (in pixels)
var marqueewidth="500px"
//Specify the marquee's height
var marqueeheight="37px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=1
//Specify initial pause before scrolling in milliseconds
var initPause=0
//Specify start with Full(1)or Empty(0) Marquee
var full=1
//configure background color:
var marqueebgcolor=""
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1
//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
var marqueecontent='<nobr><a href="http://www.enchantedhogwarts.net" target=_"blank"><img src="http://www.equinoxrpg.com/images/eh_button1.gif" border="0"></a><a href="http://hogwartsrpg29.proboards54.com/index.cgi" target=_"blank"><img src="http://img.photobucket.com/albums/v352/melliekid/hp%20board/teeny.gif" border="0"></a><a href="http://www.equinoxrpg.com" target=_"blank"><img src="http://www.equinoxrpg.com/images/nox_button.gif" border="0"></a><a href="http://halfbloodhaven.proboards.com" target="_blank"><img src="http://i40.tinypic.com/r1gaq8.jpg" border="0"></a><a href="http://demigodrp.proboards.com/index.cgi?" target=_"blank"><img src="http://img230.imageshack.us/img230/6813/63885699.gif" alt="``Camp Half Blood" border="0" height="31" width="88"></a><a href="http://www.halfbloodhillrpg.com" target=_"blank"><img src="http://i306.photobucket.com/albums/nn280/ThaliaDevereaux/HBHaffiliate.png" border="0"></a></nobr>'
////NO NEED TO EDIT BELOW THIS LINE////////////
/*
Cross browser Marquee script- Â Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com
Modified by jscheuer1 for continuous content. Credit MUST stay intact.
Reset content: RoNo
*/
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')
var actualwidth=''
var cross_marquee, cross_marquee2, ns_marquee
function populate(){
if (iedom){
var initFill=(full==1)? '8px' : parseInt(marqueewidth)+8+"px"
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.left=initFill
cross_marquee2=document.getElementById? document.getElementById("iemarquee2") : document.all.iemarquee2
cross_marquee2.innerHTML=cross_marquee.innerHTML=marqueecontent
cross_marquee2.style.left=(parseInt(cross_marquee.style.left)+actualwidth+8)+"px" //indicates following #1
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.left=parseInt(marqueewidth)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualwidth=ns_marquee.document.width
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)',initPause)
}
window.onload=populate
function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.left)<(actualwidth*(-1)+8))
cross_marquee.style.left=(parseInt(cross_marquee2.style.left)+actualwidth+8)+"px"
if (parseInt(cross_marquee2.style.left)<(actualwidth*(-1)+8))
cross_marquee2.style.left=(parseInt(cross_marquee.style.left)+actualwidth+8)+"px"
cross_marquee2.style.left=parseInt(cross_marquee2.style.left)-copyspeed+"px"
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
}
else if (document.layers){
if (ns_marquee.left>(actualwidth*(-1)+8))
ns_marquee.left-=copyspeed
else
ns_marquee.left=parseInt(marqueewidth)+8
}
}
if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
write('<div id="iemarquee" style="position:absolute;left:0px;top:3px;display:inline;"></div>')
write('<div id="iemarquee2" style="position:absolute;left:0px;top:3px;display:inline;"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>')
write('<layer name="ns_marquee2" left=0 top=3 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</script>
Re: Scrolling Affiliates
I keep being told this, however, I have not found an uneven amount:
I should probably ask, is this supposed to be added to the CSS sheet, or the same HTML template I had everything in?
Detected error
We have counted a different number of "{" and of "}". It means your CSS risks to be not valid and will not be posted correctly on your forum.
We advise you to reread your code.
I should probably ask, is this supposed to be added to the CSS sheet, or the same HTML template I had everything in?
Christiana- New Member
- Posts : 12
Reputation : 0
Language : English
Re: Scrolling Affiliates
I put it in the overall_footer template in the exact same place the old one was. Now nothing is showing up.
Christiana- New Member
- Posts : 12
Reputation : 0
Language : English
Re: Scrolling Affiliates
OK... that script doesn't appear to function on your board.
Your original scrolling affiliates looked fine with Firefox browser.
Your original scrolling affiliates looked fine with Firefox browser.
Re: Scrolling Affiliates
Okay. I can't believe I was stupid enough not to make a copy of it, but can you help me figure out what code I had in there for the table? I was trying to put the original settings back in, but I can't remember the table code I had.
Christiana- New Member
- Posts : 12
Reputation : 0
Language : English
Re: Scrolling Affiliates
Here you go
To do that... I created an Html page for the marquee
and placed an iframe of it in the forum description field.
- Code:
<table align="center" bgcolor="#440000" border="1" cellpadding="1" cellspacing="2" width="50%"><tbody><tr valign="top"><td cellpadding="1" cellspacing="2"><marquee style="width:500px; height:50px;" direction="left" behavior="scroll" scrollamount="5"><a href="http://www.enchantedhogwarts.net" target=_"blank"><img src="http://www.equinoxrpg.com/images/eh_button1.gif" border="0"></a><a href="http://hogwartsrpg29.proboards54.com/index.cgi" target=_"blank"><img src="http://img.photobucket.com/albums/v352/melliekid/hp%20board/teeny.gif" border="0"></a><a href="http://www.equinoxrpg.com" target=_"blank"><img src="http://www.equinoxrpg.com/images/nox_button.gif" border="0"></a><a href="http://halfbloodhaven.proboards.com" target="_blank"><img src="http://i40.tinypic.com/r1gaq8.jpg" border="0"></a><a href="http://demigodrp.proboards.com/index.cgi?" target=_"blank"><img src="http://img230.imageshack.us/img230/6813/63885699.gif" alt="``Camp Half Blood" border="0" height="31" width="88"></a><a href="http://www.halfbloodhillrpg.com" target=_"blank"><img src="http://i306.photobucket.com/albums/nn280/ThaliaDevereaux/HBHaffiliate.png" border="0"></a></marquee></td></tr></table>
To do that... I created an Html page for the marquee
and placed an iframe of it in the forum description field.
Re: Scrolling Affiliates
Thank you for the code!
I'm sure I sound like a complete idiot here, but can you tell me how you did that? I'm learning HTML as I go along, but I'm not exactly sure how I would go about doing that.
____
You know, I feel really bad now. One of the users of my forum just came on and told me the affiliates are scrolling properly, she can see all of them, and they appear to be doing what they're supposed to. I have the same code in there that I started with. I guess it's just my computer that's being a pain and not showing things the way it should. I'm really sorry I wasted so much of your time. Thank you so much for all of your help!
I'm sure I sound like a complete idiot here, but can you tell me how you did that? I'm learning HTML as I go along, but I'm not exactly sure how I would go about doing that.
____
You know, I feel really bad now. One of the users of my forum just came on and told me the affiliates are scrolling properly, she can see all of them, and they appear to be doing what they're supposed to. I have the same code in there that I started with. I guess it's just my computer that's being a pain and not showing things the way it should. I'm really sorry I wasted so much of your time. Thank you so much for all of your help!
Christiana- New Member
- Posts : 12
Reputation : 0
Language : English
Similar topics
» affiliates scrolling
» Scrolling Affiliates
» affiliates scrolling
» affiliates to scrolling
» Question:I already have the affiliates on my footer, how can i make it stop scrolling when i point the cursor on the affiliate?
» Scrolling Affiliates
» affiliates scrolling
» affiliates to scrolling
» Question:I already have the affiliates on my footer, how can i make it stop scrolling when i point the cursor on the affiliate?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum