CSS <script> and <meta>

windows

Guest
How can I move the <script> and <meta tags> from the head of my pages into a separate css file (the same one I'm using for layout and text format)? this script is in all my pages

<script>
function change()
{
re="rgb("+Math.round(Math.random()*256)+","+Math.round(Math.random()*256)+","+Math.round(Math.random()*256)+")"
text.style.color=re;
}
setInterval(change,1000);
</script>

it changes the colors of a text.
and because of it the meta tags checker I've been using does not find the metas (I'm not sure if spiders are also confused).This is a JavaScript question, is it not? Put your code, without the SCRIPT tags, in a seperate text file and name it with a *.js extension (where the asterisk is the name of your file). Save it, and then use the following on every page you want the code to appear on:


<script type="text/javascript" src=http://www.webdeveloper.com/forum/archive/index.php/"your_script_name.js"></script>Hmmm... I should have known that was javascript I wonder why I didn't.
Well, thanx! it works perfectly and my pages are a lot lighter now!Happy to help.
 
Back
Top