Click to See Complete Forum and Search --> : VBScript Help!


lukezweb
10-12-2003, 03:50 AM
Sorry i wasnt sure where to post this i have a question, I am using this code:
<script language="vbscript">
'Made By Luke Dyson
'http://lukezweb.tk
Dim Color, Color2
Color = "000000"
Color2 = "FFFFFF"
document.body.innerHTML = replace(document.body.innerHTML, "Posts: ", "<font color='" & Color & "'>Po</font><font color='" & Color2 & "'>sts: ")
</script>

here:
http://ffixtemplate.proboards6.com/index.cgi?board=skin&action=display&num=1065280782

it changes the Posts: colour into two colours, i was wondering how to make it fade on the P from black to on the : white with out manually setting the colours for each letter but to make a type of fader? any help anyone ? thanks in advance :)

lukezweb
10-12-2003, 08:06 AM
any help?

XMLMania.com
10-12-2003, 12:02 PM
VBScript is dead, move on.

AdamGundry
10-12-2003, 12:06 PM
AFAIK you can't do colour fading in HTML very well, you would have to manually set the colours on each letter or use an image instead.

Oh, and I agree with XMLMania.com - learn a better language, preferably a server-side one such as PHP that works regardless of browser. VBScript is a poor language and IE-only.

Adam