Results 1 to 2 of 2

Thread: [RESOLVED] Toggle with mouseover

Hybrid View

  1. #1
    Join Date
    Sep 2010

    resolved [RESOLVED] Toggle with mouseover


    I'm new to javascript, and i'm having a problem. I want a button, which functions as a toggle, but also as a mouseover. When you click, under the button, a div opens with text. And when you mouse over, a shadow appears behind the button.

    I have two pieces of javascript, but i want both in my button. Can anybody help me?

    In this javascript, you see two buttons, the left, has the perfect mouseover. The right has the perfect toggle.
    The right button now only needs the mouseover function when clicked. When the toggle is opened, the mouseover doesn't work any more.


  2. #2
    Join Date
    Feb 2011
    assign all the event listeners to one element?
    HTML Code:
    <element onclick="function()" onmouseover="function()" onmouseout="function()">

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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