Results 1 to 9 of 9

Thread: Popit Menu rollover on image link

  1. #1
    Join Date
    Nov 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Popit Menu rollover on image link

    Pop-it Menu

    http://www.dynamicdrive.com/dynamicindex1/popit.htm

    Hello, I wonder if this is possible:

    I would like my existing rollover image menu to still be functional on the more button:

    Code:
    <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('more','','images/more_o.png',1)"><img src="images/more.png" alt="More" name="more" width="90" height="24" border="0"></a>
    So how would I go about putting the below (popit) code into the above (existing) code to make them work together?

    Code:
    <a href="#" onMouseover="showmenu(event,linkset[1], '180px')" onMouseout="delayhidemenu()">News sites</a>
    I tried a few things but it didn't work out.

    Thank you.

  2. #2
    Join Date
    Nov 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I thought I would give it 24 hours before I bump this thread.

    Does anyone have any spare time to work this one out.

    I know it's in the rules that this question would probably be skiped but I know some people like a "challenge"

    Thanks.

  3. #3
    Join Date
    Nov 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Bump.

  4. #4
    Join Date
    Nov 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Bump.

  5. #5
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    I can't do much with out a better idea of what's going on in your code--I am not very familliar with DD's scripts. Did you try something simple like:
    Code:
    <a href="#" onMouseOut="JAVASCRIPT: MM_swapImgRestore(); delayhidemenu()" onMouseOver="JAVASCRIPT: MM_swapImage('more','','images/more_o.png',1); showmenu(event,linkset[1], '180px')"><img src="images/more.png" alt="More" name="more" width="90" height="24" border="0"></a>
    Just a shot in the dark. Hopefully a better coder then me (one who know more about this script) will come along. . .

    BTW: It can sometimes take a while for someone to respond to a thread, especially if it is a complex question. And, if someone sees a bunch of "replies," people might asume that question is being answered. Better to wait, I think.
    Last edited by Jas; 11-10-2007 at 11:15 PM.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Jas is pretty close. In general you can invoke multiple functions within an event handler just by separating each function with a semi colon. So in this case, the result may look something like:

    Code:
    <a href="#" onMouseover="showmenu(event,linkset[1], '180px'); MM_swapImage('more','','images/more_o.png',1)" onMouseout="delayhidemenu(); MM_swapImgRestore()">News sites</a>
    Notice the lack of "javascript:".

  7. #7
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Interesting. Why shouldn't you use javascript: ? They are JS functions, right?
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  8. #8
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Well, you'd use the prefix "javascript:" only inside the href attribute to let the browser know that this is a JavaScript link. Since I'm not setting the href attribute here, I don't use it.

  9. #9
    Join Date
    Nov 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the help, I tried both of your suggestions but the image still didn't show up. When I tried ddadmin's, I had to add the img src (see below):

    Code:
    <a href="#" onMouseover="showmenu(event,linkset[1], '180px'); MM_swapImage('more','','images/more_o.png',1)" onMouseout="delayhidemenu(); MM_swapImgRestore()"><img src="images/more.png" width="90" height="24" border="0"></a>
    The More image now shows but not the rollover, but thats ok I guess.

    Thanks alot.

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
  •