Bobo
08-29-2004, 01:09 AM
I have a script that is supposed to show you how something (an ad in this case) would look with different colors. However, I'm getting the "syntax error" error and I cannot figure out what it is. :confused: This is causing the script to not function. The script is very simple and the document is as follows:
<html>
<heaD>
<style>
.Main {width:350px;height:470px;border:3 outset steelblue;margin:8 8 8 8;filter:shadow(color=blue,direction=235,strength=3) progID:DXImageTransform.Microsoft.gradient(startcolorstr=#009090,endcolorstr=#001010,gradienttype=0) ;font-family:Times New Roman;color:white;overflow:hidden;font-weight:bold;text-align:center}
h1 {text-transform:UpperCase}
input {color:blue}
</style>
<script language="Javascript">
function Change(C,B) {
var it=document.getElementById("TEST").style;
it.color=C;
it.filter="glow(strength=2,color="+B+")"
}
function px(evt) {
//e=(evt)?evt~
var x=event.clientX;
var y=event.clientY;
window.status=x+','+y
}
document.onmousemove=px
</script>
</head><body bgcolor=white>
<div class="Main">
<font size=2>"Port Huron's Leader in Quality Locksmithing"</font>
<BR>
<h1>Noble<h1>
<font size=3>LOCKSMITH SERVICE, INC.<BR>
Commercial<sup>.</sup>Residential<BR>Domestic&Foreign<BR>Lockouts&Safes<BR></FONT>
<font size=1>**High Security Specialist**</font>
<Table border=0 bgcolor=""><TR><TH><IMG>
<BR><font size=1 color=black><small>R. Noble, CPL</small></font>
</th><TH>
<div id="TEST" style="width:186;height:62;color:red"><font size=2>The ONLY Bonded, <BR><I>Certified Professional Locksmith</i><BR>
serving St. Clair and<BR> Sanilac Counties</div></th></tr></table>
<div style="text-align:left;width:340px"><div style="text-align:center;color:white"><div style="width:339px;height:1px;overflow:visible;filter:dropshadow(color=black,positive='true',offx=1,offy=0)">
<font size=2>(810)</font><BR>
<font size=7>385-9329</font></div>
<BR>
<table border=0 bgcolor=""><TR><TH>
<IMG><IMG><BR><IMG><IMG></th><TH style="color:black">
<font size=1>2670 Grace Road,<BR>Fort Gratiot</font></th></tr></table>
</div></div></div>
<form name="FormY"><table><TR><TD>
Text color:<BR>
Border Color:</td><TD><input type=text name="C"><BR><input type=text name="B"></td></tr></table>
<input type=button style="border:steelblue 3 outset;color:white;font-style:italic;filter:progID:DXImageTransform.Microsoft.wave(add=1,phase=22,freq=7,strength=0,lightStr ength=100);background-color:navy" onClick="Change(window.document.forms["FormY"].C.value,document.forms.FormY.B.value)" value="TRY">
</form>
Any help is appreciated; thanks in advance! :)
<html>
<heaD>
<style>
.Main {width:350px;height:470px;border:3 outset steelblue;margin:8 8 8 8;filter:shadow(color=blue,direction=235,strength=3) progID:DXImageTransform.Microsoft.gradient(startcolorstr=#009090,endcolorstr=#001010,gradienttype=0) ;font-family:Times New Roman;color:white;overflow:hidden;font-weight:bold;text-align:center}
h1 {text-transform:UpperCase}
input {color:blue}
</style>
<script language="Javascript">
function Change(C,B) {
var it=document.getElementById("TEST").style;
it.color=C;
it.filter="glow(strength=2,color="+B+")"
}
function px(evt) {
//e=(evt)?evt~
var x=event.clientX;
var y=event.clientY;
window.status=x+','+y
}
document.onmousemove=px
</script>
</head><body bgcolor=white>
<div class="Main">
<font size=2>"Port Huron's Leader in Quality Locksmithing"</font>
<BR>
<h1>Noble<h1>
<font size=3>LOCKSMITH SERVICE, INC.<BR>
Commercial<sup>.</sup>Residential<BR>Domestic&Foreign<BR>Lockouts&Safes<BR></FONT>
<font size=1>**High Security Specialist**</font>
<Table border=0 bgcolor=""><TR><TH><IMG>
<BR><font size=1 color=black><small>R. Noble, CPL</small></font>
</th><TH>
<div id="TEST" style="width:186;height:62;color:red"><font size=2>The ONLY Bonded, <BR><I>Certified Professional Locksmith</i><BR>
serving St. Clair and<BR> Sanilac Counties</div></th></tr></table>
<div style="text-align:left;width:340px"><div style="text-align:center;color:white"><div style="width:339px;height:1px;overflow:visible;filter:dropshadow(color=black,positive='true',offx=1,offy=0)">
<font size=2>(810)</font><BR>
<font size=7>385-9329</font></div>
<BR>
<table border=0 bgcolor=""><TR><TH>
<IMG><IMG><BR><IMG><IMG></th><TH style="color:black">
<font size=1>2670 Grace Road,<BR>Fort Gratiot</font></th></tr></table>
</div></div></div>
<form name="FormY"><table><TR><TD>
Text color:<BR>
Border Color:</td><TD><input type=text name="C"><BR><input type=text name="B"></td></tr></table>
<input type=button style="border:steelblue 3 outset;color:white;font-style:italic;filter:progID:DXImageTransform.Microsoft.wave(add=1,phase=22,freq=7,strength=0,lightStr ength=100);background-color:navy" onClick="Change(window.document.forms["FormY"].C.value,document.forms.FormY.B.value)" value="TRY">
</form>
Any help is appreciated; thanks in advance! :)