I am new to javascript and i am looking to put a scrolling message on my site from right to left. The code given on this site ([url]http://javascript.internet.com/text-effects/in-marquee-links.html[/url]) works great, but how do i change text colour and size? please help
@Angry_Black_ManAug 01.2007 — #you've been mislead. the script you're seeing is just some n00b who decided to place a HTML element onto a webpage using javascript. its a waste of effort since you can simply just place that HTML into a page and get the same results without the javascript.
so now, essentially, your question is an HTML question.
<!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin function writeMarquee() { var str = "<marquee scrolldelay='250' scrollamount='20'>"; str += "This ordinary marquee has'; str += " <a href='http://javascript.internet.com'>* * l i n k s * *</a>"; str += " that you can click on."; str += " <a href='http://javascript.internet.com'>GO to javascriptsource home</a>."; str += " Use HTML formating: <b>bold</b>, <i>italic</i>, <u>etc.</u>."; str += " <font color='red'>Color to RED</font>"; str += " <font size=+3>Size change</font>"; str += " Speed and delay also adjustable.</marquee>"; document.write(str); } // End --> </script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<div align="center"> <table width="30%"> <tr><td> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin writeMarquee() // End --> </script> </td></tr></table> </div>