Help please

C

carlo

I have this problem. I have copied this script on the net. The script
changes font-size and color, starting from both ends until it reaches the
middle, then it quickly displays another text string, letter by letter.



The thing is this that when ever I try to put at text it will show over this
text. I want it to be under this top line.



Can anybody help me?



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">



<html>

<head>

<title>Velkommen til Canasta.dk</title>

<head/>

<body>

<script language="JavaScript" type="text/javascript">

<!--

// - Global Variables:

var MaxSize=50; // - Maximum size text grows to.

var splashmessage="Velkommen - til - F.F.C.S.F"; // - must be larger than
splashmessageII

var splashmessageII="Velkommen til F.F.C.S.F"

var splashmessageIII="Enter";



var colors=new Array();


colors=["#00ff00","gray","yellow","aqua","orange","blue","red","#fff"];

var spans0;

var counter=0,count=0;var cnt=0,gcnt=0,cntII=0;var
cntr,cntrII=0,gcntr=0,gcntrII=splashmessage.length;var cntrIII=0;var
thecnt=0;var gcount=0;

var T=15;

var half=splashmessage.length/2;

var bool=true,bool2=true;

// - End Global Variables



// - Event Handlers:

window.onload=SPLASHINTROSCREEN;

// - End EventHandlers



// - Method Definitions

function SPLASHINTROSCREEN()

{



writeMessage();

killSpace_Hucko();

apply_play_Richard();

for(var y=0;y<2;y++)

createBr();

//for(var x=0;x<splashmessageIII.length;x+)

//CreateAs_Hucko(splashmessageIII.substring((x+1),((x+1)-1)));

}

function site()

{

location.href=URL;

}

function writeMessage()

{

count=counter+1;

while(count<=splashmessage.length)

{

CreateSpans_Hucko(splashmessage.substring(count,count-1));

count++;

}

}

function CreateSpans_Hucko(buffer)

{

spans0=document.createElement('span');

with(spans0)

{

innerHTML=buffer;

with(style)

{

color="#fff";

fontSize=15;

}

onclick=site;

}

document.body.appendChild(spans0);

}

function createBr()

{

br=document.createElement('br');

document.body.appendChild(br);

}

function CreateAs_Hucko(buffer)

{

as0=document.createElement('a');

with(as0)

{

innerHTML=buffer;



{

color="#fff";

fontSize=15;

}

}

document.body.prependChild(as0);

}

function killSpace_Hucko()

{

spans0=document.getElementsByTagName('span');

for(var x=0;x<spans0.length;x++)

{

if(spans0[x].innerHTML==" "||spans0[x].innerHTML=="")

spans0[x].innerHTML="<b
style='visibility:hidden'>_</b>";

}

}

function apply_play_Richard()

{

if(cnt<spans0.length)

{

with(spans0[cnt].style)

{

color=colors[gcnt];

}

cnt+=1;

}

else if(cntII<=colors.length)

{

cnt=0;

gcnt++;

cntII++;

}



if(cntr<MaxSize)

{

spans0[gcntrII].style.fontSize=cntr;

cntr+=2;

}

else if(gcntrII>half)

{

gcntrII--;cntr=0;

}

else if(bool==true)

{

for(var x=0;x<splashmessage.length;x++)

{

spans0[x].innerHTML="";

}

bool=false;

}

else if(gcount<spans0.length)

{

spans0[gcount].style.letterSpacing=20;

gcount++;

}



if(cntrII<MaxSize)

{

spans0[gcntr].style.fontSize=cntrII;

cntrII+=2;

}

else if(gcntr<=half)

{

gcntr++;cntrII=0;

}

else if(bool2==true)

{

T=50;

bool2=false;

}

else if(cntrIII<=splashmessageII.length)

{

spans0[cntrIII].innerHTML=splashmessageII.substring(cntrIII,cntrIII-1);

cntrIII++;

}

else

{

killSpace_Hucko();

for(var x=0;x<spans0.length;x++)

spans0[x].style.letterSpacing=2;

}

setTimeout("apply_play_Richard();",T);

}

// - End Method Definitions



</script>







<link rel="stylesheet" type="text/css" href="style.css">

<DIV style="TEXT-ALIGN: center">













<br><br>



<p>Siden er opdateret 17:58 20-04-2004 YES..... Så er
der kommet tekst på billederne både fra 2002 og 2003. Der er også blvet lagt
et par enkelte nye billeder ind i 2002<p><br>



<INPUT type="button" value="Medlemmer"
onclick="document.location.href='medlemmer.htm'"style="background: 6699CC"
style="font size=18" style="WIDTH: 340px; HEIGHT: 57px" size=43>&nbsp;&nbsp;

<INPUT type="button" value="Arrangementer / Info om
turnering 2004"
onclick="document.location.href='arrangementer.htm'"style="background:
6699CC" style="font size=18" style="WIDTH: 340px; HEIGHT: 57px" size=43>



<br>



<div><PRE><IMG height=100 alt=""
src="kort1.jpg" width=200
border=0>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG height=100 alt=""
src="kort.gif" width=200 border=0 ></PRE></div>

<br>

<INPUT type="button" value="Billeder"
onclick="document.location.href='billeder.htm'"style="background: 6699CC"
style="font size=18" style="WIDTH: 340px; HEIGHT: 57px" size=43>&nbsp;&nbsp;

<INPUT type="button" value="Spilleregler"
onclick="document.location.href='regler.htm'"style="background: 6699CC"
style="font size=18" style="WIDTH: 340px; HEIGHT: 57px" size=43>















</DIV>



</body>

</html>
 
J

Joona I Palaste

carlo said:
I have this problem. I have copied this script on the net. The script
changes font-size and color, starting from both ends until it reaches the
middle, then it quickly displays another text string, letter by letter.

You'll want comp.lang.javascript.

--
/-- Joona Palaste ([email protected]) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"The obvious mathematical breakthrough would be development of an easy way to
factor large prime numbers."
- Bill Gates
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top