Ryan McBain
03-05-2002, 01:31 AM
Im trying to get this blinking pm hack to work. When I get a new pm my box wont blink. my template code is...
<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='{tableheadbgcolor}';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='{categorybackcolor}';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='{tableheadbgcolor}';
x=0;
set=0;
}
}
// End -->
</script>
What am I doing wrong?
<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='{tableheadbgcolor}';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='{categorybackcolor}';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='{tableheadbgcolor}';
x=0;
set=0;
}
}
// End -->
</script>
What am I doing wrong?