Results 1 to 7 of 7

Thread: chrome menu pblms online

  1. #1
    Join Date
    Mar 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default chrome menu pblms online

    Hi, i'm trying to use the chrome menu in css. i modified a bit the design but didn't touch anything in the .js file. I tested it with ie and it works fine offline (on my computer) and online.
    I tested it with ff and if i don't have any pblm offline,but there's something strange happening when i put it on the server like if i forgot to put the address of an img file or something like that . I really don't understand why. can anyone help me ?
    here's the link

    thanks for your help

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Looks like you should simply remove this from the chromestyle.css file:

    Code:
    #chromemenu ul li a[onMouseover]:after{ /*HTML to indicate drop down link*/
    content: " v";
    content: " " url(chrometheme/tri_down2.gif); /*uncomment this line to use an image instead*/
    }
    This type of style only works in browsers other than IE and since you have hard coded the image already, this bit is, at best, redundant.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up thanks

    All right thank you very much for your as quick as efficient answer!
    it works fine now.
    i 'm wondering if there is a possibility to swap the image tri_down2.gif for another one on the mouse over.
    Yan

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, where you have:

    HTML Code:
    Recherche <img src="chrometheme/tri_down2.gif" alt="" border="0">
    You can add a simple rollover:

    HTML Code:
    Recherche <img src="chrometheme/tri_down2.gif" alt="" border="0" onmouseover="this.src='chrometheme/tri_down1.gif';" onmouseout="this.src='chrometheme/tri_down2.gif';">
    Usually (assuming there is a 'chrometheme/tri_down1.gif') this is all you need but, event bubbling (due to the image being part of another rollover bubble - the one that drops down the menu) may cause problems. It may not, so try this out first, as it is the easiest to do and to explain.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Mar 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    all right thanks.
    i guess i didn't explain properly what i wanted to do: i'd like to know if it's possible to change the image tri_down2.gif for tri_down1.gif while the menu is dropping down (like if you put a 'v' instead of an arrow) ie while the mouse is over the area defined by <li> tag in the chromenu.
    in my case, if the user put is mouse on the 'recherche' section, the background changes from blue to white, the text from white to blue and i would like that the image changes also from 'tri_down2.gif' to 'tri_down1.gif'.
    don't know if i'm clear, but thanks anyway !

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
    <li onmouseover="rec.src='chrometheme/tri_down1.gif';" onmouseout="rec.src='chrometheme/tri_down2.gif';"><a href="recherche.html" title="Activites de recherche du Laboratoire" onmouseover="cssdropdown.dropit(this,event,'dropmenu1')">Recherche <img name="rec" src="chrometheme/tri_down2.gif" alt="" border="0">
    </a></li>
    <li onmouseover="act.src='chrometheme/tri_down1.gif';" onmouseout="act.src='chrometheme/tri_down2.gif';"><a href="actu.html" title="Actualites" onmouseover="cssdropdown.dropit(this,event,'dropmenu2')">Actualites
    <img name="act" src="chrometheme/tri_down2.gif" alt="" border="0"></a></li>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Mar 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default many thanks that's fine

    Oh yes, thank you very much. Just what i needed.
    I understand the code you gave me. it's just perfect!
    thanks again

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •