Click to See Complete Forum and Search --> : TEXT EDITING (real simple)


petrocan
06-16-2003, 11:59 AM
Yes I know nothing...but, I need to know how to edit the text of just the scrolling text. If anyone could assist me I would greatly appreciate it. Here is the script between the <head>. Does it go here or in the body script?

HEAD:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function writeMarquee() {
document.write("<marquee scrolldelay='200' scrollamount='20'>HERE IS THE SCROLLING TEXT</marquee>");
}
// End -->
</script>


BODY:
<div align="center">
<table width="100%">
<tr><td>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
writeMarquee()
// End -->
</script>
</td></tr></table>
</div>



Thanks,
PC

Jona
06-16-2003, 12:11 PM
Yes the code goes in the HEAD tag. To change the text, change this line:


document.write("<marquee scrolldelay='200' scrollamount='20'>HERE IS THE SCROLLING TEXT</marquee>");

To this:


document.write("<marquee scrolldelay='200' scrollamount='20'>This is the text to change!</marquee>");


Jona

petrocan
06-16-2003, 12:18 PM
I'm sorry...stupid me...I meant the edit the text as in colours, font, etc...I should have been more clear.

Thank you though Jona.

pyro
06-16-2003, 12:32 PM
You can do it with CSS:

document.write("<marquee scrolldelay='200' scrollamount='20' style="color:darkblue; font-family: verdana, arial, sans-serif;">HERE IS THE SCROLLING TEXT</marquee>");

petrocan
06-16-2003, 01:03 PM
Thanks Pyro.

pyro
06-16-2003, 01:04 PM
You're welcome... :)