This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
what did I do wrong in this code?... it doesn't appear in my page

This code was passed to me by a really close friend, and I did some editing on it. Everything seems to be right. I just don't understand why it doesn't show up in my page?!?!. Please help!... this is the code
|
|
|
V
***START of CODE BELOW THIS***

<...style type="text/css">
<...!--
.textanimlink,a {
text-decoration : none;
}
P.main {
font-family : Arial;
font-size : 15pt;
font-weight : bold;
}
-->
<.../style>


<...Script Language="Javascript">
<...!-- Hiding



bname=navigator.appName;
bversion=parseInt(navigator.appVersion)
if ((bname=="Netscape" && bversion>=4) || (bname=="Microsoft Internet Explorer" && bversion>=4))
window.onload=start
else
stop();
window.onunload=stop
if (bname=="Netscape"){
brows=true
dt=2
}
else{
brows=false
dt=20
}
var z=0;
var msg=0;
var rgb=0;
var link=false;
var status=true;
var updwn=false;
var message= new Array();
var value=0;
var h=window.innerHeight;
var w=window.innerWidth;
var timer1;
var timer2;
var timer3;
var convert = new Array()
var hexbase= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F");

// I put my own messages here. I can add as many as I want (Did not edit anything else in the Script except the lines below)

var bgcolor="#FFFFFF"; //Color of background
var color="#7FFF00"; //Color of the Letters

message ='***Daily Updated Questions in my Mind By: Rosy Smozy***'
message ='Today (whatever day it is Today!!!).'
message ='I have concluded that...'
message ='He who laughs last thinks the slowest!'
message ='YET!!'
message ='How can they think?'
message ='They say that everyone has photographic memory'
message ='and can store quite a bit at a time.'
message ='I guess those who do not use that ability...'
message ='Do not have film?!?!'
message[10]='On the other hand!'
message[11]='WTF?!?!?...'
message[12]='I just got lost in thought..?'
message[13]='Where was I?'
message[14]='Ohh yeah!!... On the other hand...'
message[15]='hmm?... You have different fingers?'
message[16]='LMAO... yeah this was a quick update of my mind'
message[17]='Want more?'
message[18]='Well... keep coming back u punk!'
message[19]='How else would u update then?'
message[20]='LATERS!!'
// I put my own messages up there. I added as many as I wanted (Did not edit anything else in the Script except the lines above)

for (x=0; x<16; x++){
for (y=0; y<16; y++){
convert[value]= hexbase + hexbase ;
value++;
}
}

redx=color.substring(1,3);
greenx=color.substring(3,5);
bluex=color.substring(5,7);
hred=eval(parseInt(redx,16));
hgreen=eval(parseInt(greenx,16));
hblue=eval(parseInt(bluex,16));
eredx=bgcolor.substring(1,3);
egreenx=bgcolor.substring(3,5);
ebluex=bgcolor.substring(5,7);
ered=eval(parseInt(eredx,16));
egreen=eval(parseInt(egreenx,16));
eblue=eval(parseInt(ebluex,16));
red=ered;
green=egreen;
blue=eblue;

function start(){
if ((bname=="Netscape" && bversion>=4) || (bname=="Microsoft Internet Explorer" && bversion>=4)){
link=false;
updwn=true;
if (brows)
res=document.layers['textanim'].top
else{
textanim.style.width=document.body.offsetWidth-20;
textanim.innerHTML='<...Pre><...P Class="main" Align="Center">'+message[msg]+'<.../P><.../Pre>'
res=textanim.style.top
for (x=0; x if(document.all .id=="textanimlink")
link=true;
}
up()
}
}

function stop(){
clearTimeout(timer1);
clearTimeout(timer2);
clearTimeout(timer3);
}

function resz(){
h=window.innerHeight;
w=window.innerWidth;
if (updwn)
timer1=setTimeout('up()',1000)
else
timer2=setTimeout('down()',1000)
}

function breakf(){
if (status){
clearTimeout(timer1);
clearTimeout(timer2);
status=false
return;
}
else{
status=true;
if (updwn)
timer1=setTimeout('up()',dt)
else
timer2=setTimeout('down()',dt)
}
}


function up(){
if (red if ((red+7) red+=7;
else
red=hred
redx = convert[red]
}
else{
if ((red-7)>hred)
red-=7;
else
red=hred
redx = convert[red]
}

if (green if ((green+7) green+=7;
else
green=hgreen
greenx = convert[green]
}
else{
if ((green-7)>hgreen)
green-=7;
else
green=hgreen
greenx = convert[green]
}

if (blue if ((blue+7) blue+=7;
else
blue=hblue
bluex = convert
}
else{
if ((blue-7)>hblue)
blue-=7;
else
blue=hblue
bluex = convert
}

rgb = "#"+redx+greenx+bluex;
if (brows){
document.layers['textanim'].document.linkColor=rgb;
document.layers['textanim'].document.vlinkColor=rgb;
if (window.innerHeight!=h || window.innerWidth!=w){
clearTimeout(timer1);
resz()
return;
}
else{
document.layers['textanim'].document.write('<...Pre><...P Class="main" Align="Center">'+message[msg]+'<.../font><.../P><.../Pre>')
document.layers['textanim'].document.close();
}
}
else{
textanim.style.color=rgb;
if(link)
textanimlink.style.color=rgb;
}
if (z<38){
if (brows)
document.layers['textanim'].top--
else
textanim.style.posTop--
z++
timer1=setTimeout('up()',dt)
}
else
{
updwn=false;
down()
}
}


function down(){
if (red if ((red+7) red+=7;
else
red=ered
redx = convert[red]
}
else{
if ((red-7)>ered)
red-=7;
else
red=ered
redx = convert[red]
}

if (green if ((green+7) green+=7;
else
green=egreen
greenx = convert[green]
}
else{
if ((green-7)>egreen)
green-=7;
else
green=egreen
greenx = convert[green]
}

if (blue if ((blue+7) blue+=7;
else
blue=eblue
bluex = convert
}
else{
if ((blue-7)>eblue)
blue-=7;
else
blue=eblue
bluex = convert
}

rgb = "#"+redx+greenx+bluex;
if (brows){
document.layers['textanim'].document.linkColor=rgb;
document.layers['textanim'].document.vlinkColor=rgb;
if (window.innerHeight!=h || window.innerWidth!=w){
clearTimeout(timer2);
resz()
return;
}
else{
document.layers['textanim'].document.write('<...Pre><...P Class="main" Align="Center"><...font color="'+rgb+'">'+message[msg]+'<.../font><.../P><.../Pre>')
document.layers['textanim'].document.close();
}
}
else{
textanim.style.color=rgb;
if(link)
textanimlink.style.color=rgb;
}

if (z<76){
if (brows)
document.layers['textanim'].top--
else
textanim.style.posTop--
z++
timer2=setTimeout('down()',dt)
}
else
{
if (brows){
document.layers['textanim'].document.write('')
document.layers['textanim'].document.close();
}
else
textanim.innerHTML='';
window.clearInterval(timer2);
if(msg msg++;
z=0;
if (brows){
document.layers['textanim'].top=res;
}
else
textanim.style.top=res;
timer3=setTimeout('start()',100);
}
else
{
msg=0;
z=0;
if (brows)
document.layers['textanim'].top=res;
else
textanim.style.top=res;
timer3=setTimeout('start()',2000);
}
}
}


// done hiding -->
<.../Script>

<.../Div><...Layer name="textanim" left=50 top=410>
<.../Layer>

***END OF CODE***
(PS) I added "..." before some of the things to disable HTML and apper.
Please help, It's just something funny I wanted to add, but it doesn't show up... what's wrong w/it?
L8ers!
Rose
(PSS) I don't know what I did to make the letters green?!?!, I was editing to disable it, and they came up to be green?????? Oh well, good thing the whole code came up.

Browser: Rosy3392LHS,2

Re: what did I do wrong in this code?... it doesn't appear in my page

ATT: I forgot to disable smilies... darn it!, but u all know what goes in for those... right?

Browser: Rosy3392LHS,2