Results 1 to 4 of 4

Thread: Animated Collapsible Div

  1. #1
    Join Date
    Feb 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Animated Collapsible Div

    1) Script Title: Animated Collapsible Div

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...edcollapse.htm

    3) Describe problem: "pixels" appearing in firefox on click with toggle function. In IE, the "hover" state of the link persists.

    In Firefox (I'm on version 3.0.7), When clicking the hyperlink (My hyperlink text within a H1 tag), a few pixels appear, like a tiny box. The pixels disappear when clicking "off" the link.

    Sorry I can't share a live link, it's a local test site. Seems like clicking doesn't "switch off" the hover state. The hover state doesn't show in F for some reason!

    FF Screenshot:

    IE Screenshot:
    Last edited by ddadmin; 03-13-2009 at 07:07 PM.

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

    Default

    You'll have to clarify what you mean by the "hover state". Are you referring to use of the "ontoggle" event handler? You could set up a simple public test page to better help illustrate the issue.
    DD Admin

  3. #3
    Join Date
    Feb 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi, thanks for replying.

    If it were a normal text hyperlink... when you mouseover (hover) on it, it would probably change colour or show an underline, depending on what you've set in CSS. Moving the mouse away, would make the link revert back to it's normal state.

    What I mean is, when I click the hyperlink to toggle the hide/show status of the collapsible DIV, the hyperlink stays in it's hover/rollover state, even if I move the mouse away. It doesn't "reset" until I click on something else.

    Basically, I want the hyperlink to change to it's normal state (non-hover) when clicked.

    If that still doesn't make sense, I'll try and put together an example page.

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

    Default

    Well, there is nothing in the script that should affect the CSS hover state of the toggler links- they are just regular links you set up yourself on the page, for example:

    Code:
    <a href="javascript:animatedcollapse.toggle('jason')">Toggle Jason</a>
    I don't really see how, but it's possible the JavaScript link (javascript:) used by default above may be confusing the CSS intepretator for some reason. If so, just change the above to:

    Code:
    <a href="#" onClick="animatedcollapse.toggle('jason');return false">Toggle Jason</a>
    DD Admin

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
  •