Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • joomlacoach Friend
    #124312

    I am trying out a the JA Rochea template but I have run into a bit of trouble.

    I have tried to change the menu background colour in the ja-transmenu.js file

    original = TransMenu.backgroundColor = “#6DA43A”;

    But when I change the colour to

    mine = TransMenu.backgroundColor = “#ebf8fe”;

    I get the following errors:

    Error: invalid label

    invalid label
    :
    Source File: : The thing that causes the menu to be shown when it is mousedover. Either a
    //
    reference to an HTML element, or a TransMenuItem from an existing menu.

    Error: TransMenu is not defined

    Line: 49

    I looked to see if anyone had the same issues using this template unless I missed a post.

    Thanks
    JC

    EDIT:

    transmenu-change-error.gif:
    Upload of file failed.

    Cannot upload attachements.

    mfcphil Friend
    #234318

    could it be case sensative? “#6DA43A”; caps??

    joomlacoach Friend
    #234321

    <em>@mfcphil 34115 wrote:</em><blockquote>could it be case sensative? “#6DA43A”; caps??</blockquote>

    do you mean

    mine = TransMenu.backgroundColor = “#EBF8FE” ?

    mfcphil Friend
    #234324

    worth a try

    joomlacoach Friend
    #234360

    <em>@mfcphil 34122 wrote:</em><blockquote>worth a try</blockquote>

    Same result! Any word from the support team?

    Menalto Friend
    #234362

    Have you looked in the css file for the menu?

    joomlacoach Friend
    #234363

    Do you see anything wrong with it? Thanks so much…hmmm are the colours all cap sensitive and
    they have to match in the css file with javascript file?

    /* this is the clipping region for the menu. it’s width and height get set by script,
    depending on the size of the items table */
    .transMenu {
    position: absolute;
    overflow: hidden;
    left: -1000px;
    top: -1000px;
    }
    /* this is the main container for the menu itself. it’s width and height get set by script, depending on the size of the items table */
    .transMenu .content {
    position: absolute;
    }
    /* this table comprises all menu items. each TR is one item. It is relatively positioned so that the shadow and background transparent divs can be positioned underneath it */
    .transMenu .items {
    position: relative;
    left: 0px;
    top: 0px;
    z-index: 2;
    }
    .transMenu.top .items {
    }
    /* this DIV is the semi-transparent white background of each menu. the -moz-opacity is a proprietary way to get transparency in mozilla, the filter is for IE/windows 5.0+. */
    /* we set the background color in script because ie mac does not use it; that browser only uses a semi-transparent white PNG that the spacer gif inside this DIV is replaced by */
    .transMenu .background {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 1;
    -moz-opacity: .9;
    filter: alpha(opacity=90);
    }
    /* same concept as .background, but this is the sliver of shadow on the right of the menu. It’s left, height, and background are set by script. In IE5/mac, it uses a PNG */
    .transMenu .shadowRight {
    width: 2px;
    position: absolute;
    z-index: 3;
    top: 3px;
    -moz-opacity: .4;
    filter: alpha(opacity=40);
    }
    /* same concept as .background, but this is the sliver of shadow on the bottom of the menu. It’s top, width, and background are set by script. In IE5/mac, it uses a PNG */
    .transMenu .shadowBottom {
    position: absolute;
    z-index: 1;
    left: 3px;
    height: 2px;
    -moz-opacity: .4;
    filter: alpha(opacity=40);
    }
    /* each TR.item is one menu item */
    .transMenu .item {
    color: #FFFFFF;
    text-transform: none;
    text-align: left;
    /* this is a hack for mac/ie5, whom incorrectly cascades the border properties of the parent table to each row */
    border: none;
    cursor: pointer;
    font-size: 100%;
    }
    /* this is the class that is used when the mouse is over an item. script sets the row to this class when required. */
    .transMenu .item.hover {
    color: #FFFFFF;
    background: #99ccff;
    }
    /* this is either the dingbat that indicates there is a submenu, or a spacer gif in it’s place. We give it extra margin to create some space between the text and the dingbat */
    .transMenu .item img {
    margin-left: 10px;
    }
    /* —————————————————————-
    – Added classes by Khanh – 050629
    – Style and mark-up improved by Hieu Nguyen & Ha Le Viet – 060718
    ——————————————————————-*/
    .transMenu .item#active {
    color: #FFFFFF;
    background: #0256fd;
    /* -moz-opacity: .6;
    filter: alpha(opacity=60); */
    }
    .transMenu .item#active:hover {
    color: #FFFFFF;
    background: #003399;
    }
    /* For first level menu.*/
    #ja-transmenu {
    margin: 0;
    padding: 14px 0 0;
    }
    #ja-transmenu li {
    margin: 0;
    padding: 0;
    background: none;
    display: inline;
    }
    #ja-transmenu li a { /* common styles for 1st level menu */
    float: left;
    }
    #ja-transmenu a.havechild-mainlevel-trans {
    }
    #ja-transmenu a.havechild-mainlevel-active-trans,
    #ja-transmenu a.havechild-mainlevel-active-trans:hover,
    #ja-transmenu a.havechild-mainlevel-active-trans:active,
    #ja-transmenu a.havechild-mainlevel-active-trans:focus {
    color: #0256fd;
    background: url(../images/arrow3.gif) no-repeat bottom center;
    }
    #ja-transmenu a.jahover {
    color: #0256fd;
    background: url(../images/arrow2.gif) no-repeat bottom center;
    }
    #ja-transmenu a.jahover-active {
    color: #0256fd;
    background: url(../images/arrow3.gif) no-repeat bottom center;
    }
    a.mainlevel-trans {
    }
    #ja-transmenu a.mainlevel-trans:hover,
    #ja-transmenu a.mainlevel-trans:active,
    #ja-transmenu a.mainlevel-trans:focus {
    color: #0066ff;
    background: url(../images/arrow2.gif) no-repeat bottom center;
    }
    #ja-transmenu a.mainlevel-active-trans,
    #ja-transmenu a.mainlevel-active-trans:hover,
    #ja-transmenu a.mainlevel-active-trans:active,
    #ja-transmenu a.mainlevel-active-trans:focus {
    color: #0066ff;
    background: url(../images/arrow3.gif) no-repeat bottom center;
    }
    /* First item */
    #ja-transmenu a.havechild-mainlevel-active-trans-first,
    #ja-transmenu a.mainlevel-active-trans-first {
    color: #0066ff;
    background: url(../images/arrow3.gif) no-repeat bottom center;
    }
    #ja-transmenu a.havechild-mainlevel-trans-first:hover,
    #ja-transmenu a.havechild-mainlevel-trans-first:active,
    #ja-transmenu a.havechild-mainlevel-trans-first:focus,
    #ja-transmenu a.mainlevel-trans-first:hover,
    #ja-transmenu a.mainlevel-trans-first:active,
    #ja-transmenu a.mainlevel-trans-first:focus {
    color: #0066ff;
    background: url(../images/arrow2.gif) no-repeat bottom center;
    }

    joomlacoach Friend
    #234372

    Any updates?

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

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

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