Home > CSS Help > Create Simple Transparent Tooltips with CSS and jQuery

Create Simple Transparent Tooltips with CSS and jQuery

March 19th, 2009

Create Simple Transparent Tooltips with CSS and jQuery



This tutorial will teach you how to create some basic tooltips with about 10 lines of CSS and jQuery Code. … CSS. Online Tools. SUBMIT NEWS. Archive. Contact …

Source


Similar Posts

    CSS Menu Generator – CSS Portal

    This generator will create a horizontal menu with as many as 10 tabs. … Home. CSS Menu Generator. CSS News / Info. Submit Resource. Privacy Policy. Contact Us …

    Source

    The Complete CSS tutorial

    A Cascading Style Sheets tutorial with introductions, code examples, online tools, cross-browser references, and official documentation, as well as a live CSS forum for visitors …

    Source

    Running jQuery with Other Frameworks Via noConflict

    Photo "Chess" by Romainguy. Used under a Creative Commons license.

    While jQuery is certainly a popular JavaScript framework, it’s by no means the only game in town. Other frameworks such as Prototype, MooTools, Dojo and many others all have their own strengths, weaknesses, and devoted groupies.

    Generally speaking, these frameworks all play well together — you can mix and match framework functionality to your heart’s content, as long as you don’t mind the additional overhead of loading several libraries simultaneously. So you have a calendar widget in jQuery that you love, but you’re already using Prototype to animate your navigation bar? Don’t be shy… use both!

    Of course, every once in a while you can run in to problems when combining JS frameworks — particularly (in my experience) when combining jQuery and Prototype. Luckily, jQuery was kind enough to provide us with a workaround.

    The Problem: Sharing Syntax

    The most common compatibility problem stems from both jQuery and Prototype using the same shortcut syntax: namely, the $().doSomething syntax. Here’s a sample line of code in jQuery:

    $('#myelement').addClass('active');

    And the same functionality in Prototype:

    $('myelement').addClassName('active');

    Note the basic similarity? Both frameworks claim the dollar sign notation for themselves, which can wreak havoc on snippets of code dropped willy-nilly into a website. If your jQuery code is grabbed up by Prototype, things will stop working fast. And similarly, if your Prototype code is snagged by jQuery, not even the awesome power of jQuery will be enough to overcome the code confusion.

    The Solution: noConflict Mode

    But not to worry! jQuery has provided us with a workaround called “noConflict mode.”

    By default, there are two equally correct ways to call a jQuery function — the dollar sign notation, and “jQuery” notation:

    $('#myelement').show();
    jQuery('#myelement').show();

    Both of the lines above do exactly the same thing. However, most people use and prefer the dollar sign notation. Why? Probably because it’s shorter, and if web developers didn’t care about brevity in their code, they probably wouldn’t have used a framework in the first place.

    Of course, just using the longer jQuery notation isn’t enough. If jQuery has already claimed the dollar sign for itself, any Prototype functionality relying on that notation will still be grabbed by jQuery.

    This is where the noConflict function comes in handy. Simply run the following line after both Prototype and jQuery have been loaded:

    jQuery.noConflict();

    This will cause jQuery to give up the dollar-sign notation, allowing the other library to take it over. And you can still use your jQuery snippet, provided you change all instances of $() to jQuery().

    Keeping it Short

    The noConflict mode does have one other bit of functionality that I’ve found useful in some of my projects: you can select a different variable to use instead of the standard “jQuery”. The usage looks like this:

    var $j = jQuery.noConflict();

    Now in addition to using the default jQuery() notation, I can also use the shorter $j() notation. This allows me to avoid running into problems with other frameworks, while still enjoying almost the same conciseness in my code.

    Read More

    Online Web Tools and Code Generators – Free and members only! – CSS …

    Free online web tools and free code generators – cut & paste web page tools! … tool: CSS RollOver Menu Bar. faq’s. saving: copy/paste …

    Source

    Online Web Tools and Code Generators – Free and members only! – Drop …

    Free online web tools and free code generators – cut & paste web page tools! … tool: JavaScript Drop-Down Menu Maker. faq’s. saving: copy/paste …

    Source

    Centering a page with CSS

    CSS Home CSS Tools Basic Syntax Id vs Class Overflow … Using the CSS overflow property. home photography writing custom portraits art css demos wallpapers contact …

    Source

    An Introduction to CSS

    CSS tutorial site with basic CSS guides to overflow,padding, background-image properties and links to Cascading Stylesheet tools and other resources.

    Source

    CSS | Smashing Magazine

    50 Useful Design Tools For Beautiful Web Typography, Ask SM: How Do I Create A Colorful Sitemap With jQuery?, Push Your Web Design Into The Future With CSS3, 50 Extremely Useful …

    Source

    Digg – How to make sexy buttons with CSS

    This tutorial will teach you how to create pretty looking textual buttons (with alternate pressed state) using CSS. Dynamic buttons save you heaps of time otherwise …

    Source

    CSS Tutorial: Create Beautiful CSS buttons

    Tutorial on how to design nice and clean CSS buttons with custom button icons using some lines of HTML, code an icon set you like it.

    Source