Results 1 to 4 of 4

Thread: Problem with Animated Collapsible DIV notices

  1. #1
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Problem with Animated Collapsible DIV notices

    1) Script Title: Animated Collapsible DIV v2.4

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

    3) Describe problem: I'm not sure if it's just Firefox but when I use the script every time you click the div open or close you get a status pop-up. It's obviously ruining the purpose of the script if you have to acknowledge something every two seconds. Is there a way around this or is it just a problem with Firefox?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,925
    Thanks
    43
    Thanked 3,190 Times in 3,154 Posts
    Blog Entries
    12

    Default

    Not happening here for me on the demo page in Firefox. Does it happen for you on the demo page, or just on your page? If it's just your page, it probably has something to do with your implementation, most likely the "ontoggle" event.

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. #3
    Join Date
    Jul 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    http://www.dirtyold*******s.net/podcast
    ^ This is the page that I am having the problem with.

    it edits out the url.. it's "dirty old b a s t a r d s .net"
    Last edited by theinimical; 07-29-2012 at 09:30 PM. Reason: it edits the url out

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,925
    Thanks
    43
    Thanked 3,190 Times in 3,154 Posts
    Blog Entries
    12

    Default

    The forum must think that bastard is a bad word. It could be used in flaming I suppose.

    Anyways, here's the problem and the solution, as I thought it was the "ontoggle" event. Add the red comment tokens as shown to the highlighted line (from the page's source code):

    Code:
    <script type="text/javascript">
    
    animatedcollapse.addDiv('twosteelballs', 'fade=1')
    animatedcollapse.addDiv('grampit', 'fade=1')
    
    animatedcollapse.ontoggle=function($, divobj, state){
     //alert("1) DIV ID: " + divobj.id + "\n2) Current State: "+state)
    }
    
    
    animatedcollapse.init()
    
    </script>
    The browser cache may need to be cleared and/or the page refreshed to see changes.
    - John
    ________________________

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

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
  •