Log In · Register

 
blinkbar work again?
cur113
post Jun 15 2006, 05:45 AM
Post #1


Member
**

Group: Member
Posts: 19
Joined: Jul 2005
Member No: 172,704





i saw the blink bar work again...
but this is include in the xanga skin..

CODE
<script language=JavaScript>
// this makes the thing blink
newcolor= new Array(6)   // this is the # of colors
newcolor[0] = "#330000"; // and these are the colors
newcolor[1] = "#660000"; // themselves
newcolor[2] = "#990000";
newcolor[3] = "#CC0000";
newcolor[4] = "#FF0000";
newcolor[5] = "#FF6666";
function doIt() {
changecell = Math.floor(Math.random() * 50);
changecolor = Math.floor(Math.random() * 6)-1;
document.getElementById("colorz").getElementsByTagName("td")[changecell].style.backgroundColor = newcolor[changecolor];
setTimeout('doIt()', 10);
}
doIt();
</SCRIPT>


i find this code in the skin code..
i copy it and paste itin look & feel..
However,,the blinkbar is remain not working...

Anyone can change this code to make the blink bar work again?

sorry for my poor English><
thanks
 
 
Start new topic
Replies (1 - 10)
gelionie
post Jun 15 2006, 07:22 AM
Post #2


say maydayism.
*******

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



Use this code instead:
CODE
<script>
<!--
//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("#339933","#999999","#ffffff");
// the border color
var blinkBorderColor = "#000000"
// the border width, in pixels
var blinkBorderWidth = 1;
// the # of rows
var blinkRows = 1;
// the # of columns
var blinkCols = 100;
// 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>


Tell me if you have any problems with it.
 
cur113
post Jun 15 2006, 08:38 AM
Post #3


Member
**

Group: Member
Posts: 19
Joined: Jul 2005
Member No: 172,704



i try your code,
but it still not work...
you can use this code to make a blinkbar in your xanga??
 
talcumpowder
post Jun 15 2006, 06:55 PM
Post #4


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Would you mind providing the xanga you saw this on?
 
cur113
post Jun 16 2006, 03:08 AM
Post #5


Member
**

Group: Member
Posts: 19
Joined: Jul 2005
Member No: 172,704



QUOTE(fishcake-y @ Jun 16 2006, 7:55 AM) *
Would you mind providing the xanga you saw this on?


oh...the xanga i saw is owned by a Hong Kong singer.
i don't know should i post it on the internet..
so i PM you...you can see it..

thanks
 
talcumpowder
post Jun 16 2006, 05:34 PM
Post #6


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



You're missing part of the code. mellow.gif
CODE
<script language=JavaScript>
// this makes the thing blink
newcolor= new Array(6)   // this is the # of colors
newcolor[0] = "#330000"; // and these are the colors
newcolor[1] = "#660000"; // themselves
newcolor[2] = "#990000";
newcolor[3] = "#CC0000";
newcolor[4] = "#FF0000";
newcolor[5] = "#FF6666";
function doIt() {
changecell = Math.floor(Math.random() * 50);
changecolor = Math.floor(Math.random() * 6)-1;
document.getElementById("colorz").getElementsByTagName("td")[changecell].style.backgroundColor = newcolor[changecolor];
setTimeout('doIt()', 10);
}
doIt();
</SCRIPT>
That part goes in webstats, and this part goes wherever you want the blink box to be.
CODE
<table id="colorz" width="100%" border="0" cellspacing="1" cellpadding="0">
                <tr>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

  </tr>
</table>
 
cur113
post Jun 17 2006, 03:11 AM
Post #7


Member
**

Group: Member
Posts: 19
Joined: Jul 2005
Member No: 172,704



I try it,but still can't..
what are the problems of it..?

CODE
<script language=JavaScript>
// this makes the thing blink
newcolor= new Array(6)   // this is the # of colors
newcolor[0] = "#330000"; // and these are the colors
newcolor[1] = "#660000"; // themselves
newcolor[2] = "#990000";
newcolor[3] = "#CC0000";
newcolor[4] = "#FF0000";
newcolor[5] = "#FF6666";
function doIt() {
changecell = Math.floor(Math.random() * 50);
changecolor = Math.floor(Math.random() * 6)-1;
document.getElementById("colorz").getElementsByTagName("td")[changecell].style.backgroundColor = newcolor[changecolor];
setTimeout('doIt()', 10);
}
doIt();
</SCRIPT>

i put this in webstats,


CODE
<table id="colorz" width="100%" border="0" cellspacing="1" cellpadding="0">
                <tr>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>
                  <td width="2%" height="10"></td>

  </tr>
</table>

and i put it in header..
 
talcumpowder
post Jun 18 2006, 06:38 PM
Post #8


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



Well, it could require premeujm. mellow.gif Because that's what the site you showed me has.
 
cur113
post Jun 19 2006, 12:39 AM
Post #9


Member
**

Group: Member
Posts: 19
Joined: Jul 2005
Member No: 172,704



oh..i understand now><
thanks a lot =]
 
n00b
post Jun 19 2006, 03:24 PM
Post #10


Hello My Name Is INSERT HERE
******

Group: Member
Posts: 1,372
Joined: Apr 2006
Member No: 394,903



a mod can close this
 
gelionie
post Jun 19 2006, 08:41 PM
Post #11


say maydayism.
*******

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



^ Please leave it to us. ;)
We know which topics require closing.

[ TOPIC CLOSED ]
 

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