开发者

jQuery fontscale plugin

I am trying to add functionality to the awesome fontscale plugin but I'm not entirely sure how to do it...

I've modified it to also change the font color but it's not in $.fn.fontscale.change_color() or something like that, it's just at the end of the code.

Modified JS:

jquery.fontscale.js

I want to put the code that changes the font color in a function similar开发者_如何学运维 to the functions used for the scale effects so as to fully integrate it into the script, complete with the saving of the color settings in the cookie, but I'm not entirely sure how to go about doing this.

Could anyone give me some pointers? Specifically pertaining to what arguments $.fn.fontscale.change_color() would have to take and how to properly write the color change settings to the cookie.


Nevermind, I just wrote a plugin that's similar in structure to fontscale which handles the text color.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜