Post by Eric on Apr 2, 2005 1:49:05 GMT
Most anything you want to know is in the code header:
<script>
<!--
/*
Made by Eric Rykwalder
You may edit and use pieces from this script as long as my
name is included in the header of the script somewhere and
it remains open source and I am updated of anything you do
with it.
(c) 2005 Eric Rywkalder
-----------------------------------------------------------------------------
What it is:
A DHTML Affiliate Bar
Crossbrowser:
At least in Gecko and Internet Explorer
Placement:
Wherever you want it to show
Why make it like this:
I have been informed that the marquee tag is not proper XHTML, so I thought this might be better supported by XHTML
*/
var affiliates=new Array();
//Affiliates Here
affiliates[0]=new Array('','');
//Vars able to be edited
//As of now negative vars are not supported
var amount=92*affiliates.length; //Recommended to leave this alone
var px=-amount;//Recommended to leave this alone
var width=400; //Width of affiliate bar
var x=1; //Pixels to move //Increasing makes it faster
var time=0; //Time to wait //Increasing makes it slower
//Do not edit below unless experienced
function moveit(){
var test=document.getElementById('test');
test.style.left=+px+'px';
if(px==width+5){
px=-amount;
}
px+=x;
setTimeout("moveit()",time);
}
document.write('<table align="center" class="bordercolor" border="0" cellspacing="1">');
document.write('<tr><td class="titlebg" height="20"><font size=2 class=titletext color="000000"><b>Affiliates</b></font></td></tr><tr>');
document.write('<td class="windowbg" style="height:40px;">');
document.write('<div id="holder" style="position:relative;width:'+width+'px;height:60px;overflow:hidden;">');
document.write('<div id="test" style="position:relative;">');
for(i=0;i<affiliates.length;i++){
document.write('<a href="'+affiliates[1]+'" target="blank"><img src="'+affiliates[0]+'" border="0" /></a> ');
}
document.write('</div></div>');
document.write('</td></tr></table>');
moveit();
//-->
</script>
#nosmileys#nosmileys#nosmileys
<script>
<!--
/*
Made by Eric Rykwalder
You may edit and use pieces from this script as long as my
name is included in the header of the script somewhere and
it remains open source and I am updated of anything you do
with it.
(c) 2005 Eric Rywkalder
-----------------------------------------------------------------------------
What it is:
A DHTML Affiliate Bar
Crossbrowser:
At least in Gecko and Internet Explorer
Placement:
Wherever you want it to show
Why make it like this:
I have been informed that the marquee tag is not proper XHTML, so I thought this might be better supported by XHTML
*/
var affiliates=new Array();
//Affiliates Here
affiliates[0]=new Array('','');
//Vars able to be edited
//As of now negative vars are not supported
var amount=92*affiliates.length; //Recommended to leave this alone
var px=-amount;//Recommended to leave this alone
var width=400; //Width of affiliate bar
var x=1; //Pixels to move //Increasing makes it faster
var time=0; //Time to wait //Increasing makes it slower
//Do not edit below unless experienced
function moveit(){
var test=document.getElementById('test');
test.style.left=+px+'px';
if(px==width+5){
px=-amount;
}
px+=x;
setTimeout("moveit()",time);
}
document.write('<table align="center" class="bordercolor" border="0" cellspacing="1">');
document.write('<tr><td class="titlebg" height="20"><font size=2 class=titletext color="000000"><b>Affiliates</b></font></td></tr><tr>');
document.write('<td class="windowbg" style="height:40px;">');
document.write('<div id="holder" style="position:relative;width:'+width+'px;height:60px;overflow:hidden;">');
document.write('<div id="test" style="position:relative;">');
for(i=0;i<affiliates.length;i++){
document.write('<a href="'+affiliates[1]+'" target="blank"><img src="'+affiliates[0]+'" border="0" /></a> ');
}
document.write('</div></div>');
document.write('</td></tr></table>');
moveit();
//-->
</script>
#nosmileys#nosmileys#nosmileys