Grow your CSS skills. Land your dream job.

hide/show slider kills mp3 player

  • # April 7, 2009 at 8:06 pm

    I’m a pretty big n00b where JavaScript is concerned, and I pretty much haven’t done much out of the box with the current wordpress theme I’ve been using. it has a navigation bar slider that uses scriptaculous and a pretty simple looking ‘slide.js’ file:

    Code:
    function openNav() {
    var targetDiv = $(‘slidebar’);
    new Effect.BlindDown(targetDiv,{duration: 0.5});
    new Effect.Fade(‘openSlidebar’);
    Effect.Appear(‘closeSlidebar’, {delay: 1});
    }
    function closeNav() {
    var targetDiv = $(‘slidebar’);
    new Effect.BlindUp(targetDiv,{duration: 0.5});
    new Effect.Fade(‘closeSlidebar’);
    Effect.Appear(‘openSlidebar’, {delay: 1});
    }

    http://landonwisely.com/wp-includes/js/ … ototype.js
    http://landonwisely.com/wp-includes/js/ … effects.js

    Basically, I’ve dropped a slick + simple mp3 player in the navigation section and want to be able to keep it hidden (without stopping the tunes)..

    if it’s worth anything, here’s the object I’ve embeded.

    Code:

    Any help would be greatly appreciated. Again, this is for sure not my strong suit, so go easy on me.

    Thanks!
    Landon

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".