Grow your CSS skills. Land your dream job.

jQuery highlight script /w Cufon

  • # January 1, 2010 at 5:10 pm

    I am trying to get this jQuery highlight script http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html working with Cufon font replacement, but I can only get it working by using php and having to refresh the page.

    Would like to use this script to call the highlight function instead;

    Code:
    $(function () {
    $(“.runnable”)
    .css({ cursor: “pointer”})
    .click(function () {
    $(‘#content’).removeHighlight();
    $(‘#content’).highlight($(this).attr(“name”));
    });
    });

    I think it can be done using Cufon.refresh() but I can’t get it working… Anyone have any suggestions?

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".