-
AuthorPosts
-
wlada Friend
wlada
- Join date:
- March 2009
- Posts:
- 13
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
November 3, 2010 at 11:20 pm #156039Hi All,
I have a issue and don’t know hot to resolve it. Hope can someone help me.
I need that someone click on one item in menu all template color change.
Example: When someone select item 2 in menu all website change Droit teplate colot to Green.
Or item 3 droid template color should be red.Can someone help me, i am front end developer and i know a little programing stuff.
Thanks in advance
Vladimir Bujanovic
http://www.vladimirbujanovic.comgray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
November 4, 2010 at 6:22 am #361614On your home page JS is use to change menu and headers color.
To set background in JS with mootools$('myDiv').setStyle('background-color', '#ff3');
jQuery could be used aslo – $(‘div.body’).css(‘background-color’: ‘#0000ff’)
1 user says Thank You to gray for this useful post
wlada Friendwlada
- Join date:
- March 2009
- Posts:
- 13
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
November 5, 2010 at 11:46 pm #361796Ok, that is one of the solution, but I would love to change css on menu item click.
Problem in that solutions is if i want to have different font color, header-bg, footer, …. i must to write lines for every property. Second problem is post back loading page. When page refresh i get gray color. Maybe I can check witch item has class Active and than change css property or change some class with .addClass method.
But i think it will be best to load different css when user click on menu item.Something similar when you selecting color in user panel module. Module in top right position by default.
How change template color working on this template??
Thanks in advance
Vladimir Bujanovic
http://www.vladimirbujanovic.comgray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by wlada 14 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum