Log In · Register

 
 
Closed TopicStart new topic
Blinking Boxes Help, How to get to bottom of page
heninacoop
post May 27 2005, 03:00 AM
Post #1


Newbie
*

Group: Member
Posts: 6
Joined: May 2005
Member No: 135,424



On my xanga, I have a blinky box between the header and my entries, I want another one at the bottom, but the only thing I can think of doing is putting it in the webstats and that just gives me a fat black line. The code I'm using is:

CODE
<script language=JavaScript>
<!--
//blink boxes - xanga.com/add_ons
//by sean f http://www.xanga.com/seanmeister

//fixed to work with new security measures by
//hotaru_01 http://www.xanga.com/hotaru_01

// customize by changing the values below
// these are the various colors, in quotes, seperated by commas
var blinkColors = new Array("#993366","#FFFFFF","#AFAFCF");
// the border color
var blinkBorderColor = "#000000"
// the border width, in pixels
var blinkBorderWidth = 2;
// the # of rows
var blinkRows = 1;
// the # of columns
var blinkCols = 40;
// the width of the entire box, in pixels or %
var blinkWidth = 750;
// the height of each row, in pixels
var blinkRowHeight = 10;
// speed of blinking, in milliseconds
var blinkRate = 8;

// do not edit below this line
st=setTimeout;
document.write("<table id='blinkbox' width='" + blinkWidth +"' border = 0 cellspacing='" + blinkBorderWidth + "' cellpadding=0 bgcolor='" + blinkBorderColor +"'>");
for (r = 0; r < blinkRows; r++){
document.write("<TR>");
for (c = 0; c < blinkCols; c++){
document.write("<TD height='" + blinkRowHeight + "'></TD>");
}
document.write("</TR>");
}
document.write("</table>");
// ... and this makes it blink
function blinkIt() {
changecell = Math.floor(Math.random() * (blinkCols * blinkRows));
changecolor = Math.floor(Math.random() * blinkColors.length);
bb = document.getElementById("blinkbox");
bbtd = bb.getElementsByTagName("td");
bbtd[changecell].style.backgroundColor = blinkColors[changecolor];
st('blinkIt()', blinkRate);
}
blinkIt();
//-->
</SCRIPT>


Any ideas? Thanks!
 
gelionie
post May 27 2005, 07:25 AM
Post #2


say maydayism.
*******

Group: Staff Alumni
Posts: 7,447
Joined: Jun 2004
Member No: 26,344



I don't think you can have two seperate rows of blinking boxes on the same xanga.
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: