GithubHelp home page GithubHelp logo

next-msg's Introduction

next-msg

If you’re tired of over engineered tooltips, then this is for you, clean and simple.

$("#btSubmit").nextMsg({ msg:"Tool-tip text goes here", CSSClass: "nextMsg-DarkTheme" });

This jQuery plugin creates popup tooltip messages next to the selected element. All theming is controlled using css, no images are used! Included in the zip is a demo and some screenshots.

Browser Support

IE 7+, Google Chrome, Firefox, Safari, Opera

Themes

The css provides some canned themes that you can use. But you can always make your own. Alt text

$.fn.nextMsg.defaults = {
                
                msg: "",
                // Message that will go in the box. 
                // Also accepts html
                
                side: "rightMiddle", 
                // Set which side you want the tooltip to appear. Defaults to "rightMiddle".
                // options: leftMiddle, topMiddle, rightMiddle, bottomMiddle
                
                CSSClass: "",
                // Name of the css theme class to apply
                
                maxWidth: 0,
                // This will let the message box expand the width up too the set maxWidth. It uses the css max-width property.
                
                width: 0,
                // Sets the width of the message box. Setting this property will override the "maxWidth" property.
                
                fadeSpeed: 500,
                // Used for the fadeIn and fadeOut speed
                
                displayDurationPerCharacter: 125,
                // This is used to calculate how long the message should be shown depending on how long the message text is.
                
                minDuration: 2500
                // Makes sure that message is shown for at least this amount of time
                // If you set it to -1 it will show until you click on it.
    };

next-msg's People

Contributors

donnyv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.