1 Replies - 812 Views - Last Post: 11 April 2012 - 08:15 AM

#1 Crowz   User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 68
  • Joined: 09-February 12

A slide togglable <embed>

Posted 28 March 2012 - 11:41 AM

<embed class="music" name="intro by ----------"
        display:none;
        src="Demo 3.mp3"
        loop="false"
        height="50px"
        width="100%"
        autostart="true"></embed>
        <script type="text/javascript">
                $(document).ready(function()
                {
                    $("$music").mouseover(function(){
                    $("$music").slideToggle("fast").delay(2500).slideToggle("fast");
                    });
                });
        </script>



This isn't working. Please give me some insight as to why.
The part that isn't working is the "not displaying" and the mouseover.

Is This A Good Question/Topic? 0
  • +

Replies To: A slide togglable <embed>

#2 e_i_pi   User is offline

  • = -1
  • member icon

Reputation: 879
  • View blog
  • Posts: 1,893
  • Joined: 30-January 09

Re: A slide togglable <embed>

Posted 11 April 2012 - 08:15 AM

Your selectors have syntax errors in them. Instead of $("$music"), try $(".music")
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1