Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery highlight script /w Cufon

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #27402
    Omi(K)roN
    Member

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.