Return to Snippet

Revision: 53204
at November 16, 2011 03:59 by djalisko191


Initial Code
$(document).ready(function () {

    var initiallink = $(".question a:first");
    careerTestimonials(initiallink);

    $(".question a").click(function (e) {
        e.preventDefault();
        var link = $(this);
        careerTestimonials(link);
    });

    function careerTestimonials(link) {
        var timer = 600;
        $("#bubble").fadeOut(timer, function () {
            var answer = $(link).siblings(".answer").html();
            $(".question a").removeClass("selected");
            $(link).addClass("selected");
            $("#answer").html(answer);
        });

        $("#bubble").fadeIn(timer);
    }

});

Initial URL

                                

Initial Description

                                

Initial Title
Disjointed rollover text

Initial Tags
jquery

Initial Language
jQuery