Write scripts in style. Add this script to your page and write JavaScript and jQuery in your CSS file localized to each rule. All major browsers and devices supported.