Log In · Register

 
broken marquee
Tsukasa
post Mar 26 2004, 06:15 PM
Post #1


Its okay, cry all you want...I'm here.
****

Group: Member
Posts: 121
Joined: Jan 2004
Member No: 2,381



CODE
<!-- begin code provided by createblog.com -->
<script language="JavaScript"><!--
line=new Object()
line[1]=" CHANGE "
line[2]=" CHANGE "
line[3]=" CHANGE "
line[4]=" CHANGE "
line[5]=" CHANGE "
line[6]=" CHANGE"
lines=6 //--Number of lines//--Don't edit below this line
document.write('<form name="bannerform">')
document.write('<div align="center"><center><p><input type="button" name="banner" size="50"')
document.write(' style="background-color: transparent; color: #fdee00; text-align: center; font-family: arial; font-size: 8pt; text-position: center; letter-spacing: 1px; height:50px;width:625px;background-color:66ccff;filter:alpha(style=2,opacity=300,finishopacity=0);border:none" onfocus="blur()"></p>')
document.write(' </center></div>')
document.write('</form>')
temp=""
nextchar=-1;
nextline=1;
cursor="\\"
function animate(){
if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines){
nextline++;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",1000)}
else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){
nextline=1;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",1000)}
else{
nextstep()}}
function nextstep(){
if (cursor=="\\"){
cursor="|"}
else if (cursor=="|"){
cursor="/"}
else if (cursor=="/"){
cursor="-"}
else if (cursor=="-"){
cursor="\\"}
nextchar++;
temp+=line[nextline].charAt(nextchar);
document.bannerform.banner.value=temp+cursor
setTimeout("animate()",25)}
document.onload=animate();
// --></script>
<!-- end code provided by createblog.com -->


my marquee broke, and i have no clue why. I wish xanga would stop changing things...

Can annyone fix this script?
 

Posts in this topic


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