On Jul 21, 6:37 am, Kris <
k...@splittgerber.id.au> wrote:
> I want to set up a customisable colour scheme where I can change the
> site's palette at run-time via javascript. I've created an extender
> which looks for -color-variable and assigns a colour based on the
> given value. In this case, it's picking up on color1 and using a
> default value stored in myColor. That part works fine. However, I then
> want to change the colour at the click of a button from red to blue.
>
> My question is, how can I tell eCSStender to re-evaluate my extender
> such that it updates BODY with the new colour stored in the myColor
> variable?
create an external method using addMethod[1]. You can then access your
custom function as eCSStender.methods.yourMethodName(). Another option
Let us know if you have further questions.