Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • zandercent Friend
    #121647

    I 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 orange

    Any ideas anyone??

    thanks

    Menalto Friend
    #225177

    You 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 Friend
    #225180

    thanks,

    any chance you could give me an example? my php scriptings not all that hot!

    thanks again!

    zandercent Friend
    #225203

    I 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 Friend
    #225210

    All 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 Friend
    #225241

    zandercent;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 Friend
    #225278

    problem 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 Friend
    #225292

    zandercent;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

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 3 voices, and was last updated by  ShannonN 16 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum