-
AuthorPosts
-
zandercent Friend
zandercent
- Join date:
- November 2006
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
July 26, 2007 at 10:16 am #121647I have a tricky one,
Can i assign a template colour change to a menu item>
eg if i click “news” the template turns blue, If I click “blog” the template turns to orangeAny ideas anyone??
thanks
Menalto FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
July 26, 2007 at 10:31 am #225177You can do it by do some changes in the menu you use or do some changes in the index.php to give each menu item each own color css file
zandercent Friendzandercent
- Join date:
- November 2006
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
July 26, 2007 at 10:46 am #225180thanks,
any chance you could give me an example? my php scriptings not all that hot!
thanks again!
zandercent Friendzandercent
- Join date:
- November 2006
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
July 26, 2007 at 12:52 pm #225203I am going to use the dropline menu, if, for example, I wanted the News button to change the template colour to cyan, could I do that??
zandercent Friendzandercent
- Join date:
- November 2006
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
July 26, 2007 at 2:02 pm #225210All I need to happen is for the stylesheet to reload when I switch main menu headings.
So I can embed this
<li><img style=”cursor: pointer;” src=”http://www.centurycreative.com/trevornickbuild/templates/ja_nerine/images/cyan.gif” title=”cyan color” alt=”cyan color” id=”ja-tool-cyancolor” onclick=”setActiveStyleSheet(‘cyan’);return false;” /></li>
into the content item that comes up for that menu item. But I need to click the button to make the change.How do I take out the onclick bit to make it happen whenever that content item is loaded?
?;)
ShannonN FriendShannonN
- Join date:
- July 2006
- Posts:
- 1947
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 16
- Thanked:
- 172 times in 49 posts
July 26, 2007 at 8:31 pm #225241zandercent;22187All I need to happen is for the stylesheet to reload when I switch main menu headings.
So I can embed this
<li><img style=”cursor: pointer;” src=”http://www.centurycreative.com/trevornickbuild/templates/ja_nerine/images/cyan.gif” title=”cyan color” alt=”cyan color” id=”ja-tool-cyancolor” onclick=”setActiveStyleSheet(‘cyan’);return false;” /></li>
into the content item that comes up for that menu item. But I need to click the button to make the change.How do I take out the onclick bit to make it happen whenever that content item is loaded?
?;)
don’t remove onclick, change the instance of onclick to onload
zandercent Friendzandercent
- Join date:
- November 2006
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
July 27, 2007 at 8:10 am #225278problem with the onload is the page gets stuck reloading in a loop. my HTML is not advanced enough for me to know how to make it load only once.
any ideas?thanks
ShannonN FriendShannonN
- Join date:
- July 2006
- Posts:
- 1947
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 16
- Thanked:
- 172 times in 49 posts
July 27, 2007 at 12:04 pm #225292zandercent;22269problem with the onload is the page gets stuck reloading in a loop. my HTML is not advanced enough for me to know how to make it load only once.
any ideas?thanks
try removing the onclick and leaveing it blank and test? I’m not crash hot at javascript and behaviours etc
the onclick is used to force a one time use because you have to hit a trigger to make it happen onload should perform the same thing as the page loads but the template may refresh more then once due to other modules such as ja news
Probably i have done my best, sorry if its not solving it, I just don’t have the necessary knowledge of javascript Yell for Trunch or Menalto 🙂
ShannonN -
AuthorPosts
This topic contains 8 replies, has 3 voices, and was last updated by ShannonN 17 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum