G
grexican
Hello,
I'm working with some third-party JS code, such as mootools and
moo.fx, among a few others. They have some really nice "flashy"
features, such as fading from one color to another to bring
attention. I would like to use these settings, but I am currently
restricted to a single theme (more specifically, one color scheme),
because you must specify the start and stop color in JS.
If I could "theme" JS files, then I could create a JS file with a ton
of constants. By creating a .js file in a Theme's directory, it would
register a:
<script type="text/javascript" src="app_themes/theme_name/
file_name.js"></script>
Doing so would act like a .css file except for my .js file. Then in
my file_name.js file:
var FadeFromColor = "FFF";
var FadeToColor = "000";
-----------------------
The above is just an example, of course. Is there any way I can
extend PageTheme to do these types of things? Is there any kind of
PageTheme Provider that I can access?
I've searched all over the net, but I'm unable to find anything. Any
sort of information would be appreciated.
Thank you
-eli
I'm working with some third-party JS code, such as mootools and
moo.fx, among a few others. They have some really nice "flashy"
features, such as fading from one color to another to bring
attention. I would like to use these settings, but I am currently
restricted to a single theme (more specifically, one color scheme),
because you must specify the start and stop color in JS.
If I could "theme" JS files, then I could create a JS file with a ton
of constants. By creating a .js file in a Theme's directory, it would
register a:
<script type="text/javascript" src="app_themes/theme_name/
file_name.js"></script>
Doing so would act like a .css file except for my .js file. Then in
my file_name.js file:
var FadeFromColor = "FFF";
var FadeToColor = "000";
-----------------------
The above is just an example, of course. Is there any way I can
extend PageTheme to do these types of things? Is there any kind of
PageTheme Provider that I can access?
I've searched all over the net, but I'm unable to find anything. Any
sort of information would be appreciated.
Thank you
-eli