Quote:
Originally Posted by sdp777
Honestly, this is such a simple thing...why its not working I cant tell.
I have followed this entire 19 page thread....and no luck.
I am having no problems following the instructions...but no matter what I have done per the instructions on thread I am getting no flashing on 2.3.0 Candidate 2. I do get a color change...and a java error.
See attached. Line 310 doesnt have a 'set'. Not sure...sometimes this error says the same thing but 'x' replaces set. Same line number.
Any insight would be really helpful.
|
I registered on your board to sort this one out for you... what I found is that your javascript is indeed broken.
It currently produces this:
Quote:
<script language="JavaScript">
<!-- Begin
pmBox.bgColor='#000080';
setInterval("Timer()", 500);
x=1;
function Timer() { x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='#7690DA';
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#000080';
x=0;
set=0;
}
}
// End -->
</script>
|
And that really wouldn't work... you've moved brackets around for starters!
What you want to end up with is this:
Quote:
<script type="text/javascript" language="JavaScript">
<!-- Begin
pmBox.bgColor='#000080';
setInterval("Timer()", 500);
x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#7690DA';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='#000080';
x=0;
set=0;
}
}
// End -->
</script>
|
So take the above example code... put in your replacement vars for the colours... and then drop that into the pmloggedin template thingy (you know the one... search your templates for pmBox if you don't... there's only one of them).
Then it will work.
Cheers
David K
PS: Can you delete the account 'testing' from your vBulletin please... I'd rather not leave accounts all over the Internet for things that I forget about