JavaScript
  Home arrow JavaScript arrow Creating Pop-Up Notes with CSS and JavaScr...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Creating Pop-Up Notes with CSS and JavaScript Part I
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 57
    2005-01-19

    Table of Contents:
  • Creating Pop-Up Notes with CSS and JavaScript Part I
  • Creating static pop-up notes
  • Creating dynamic pop-up notes
  • The HTML markup

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating Pop-Up Notes with CSS and JavaScript Part I


    (Page 1 of 4 )

    A pop-up note contains information and can be made to appear when a visitor to your website moves the mouse over the appropriate area. Alejandro Gervasio explains how to create several different kinds of pop-up notes using CSS and JavaScript.

    Within the structure of Web pages, pop-up notes are useful accessibility elements. They are often used to create footnotes, sidebars for articles, or to define an acronym, among other things. They're widely employed by numerous professional websites, fairly expanding their capabilities, in order to make visitors feel a little bit more comfortable during the surfing experience.

    However, since pop-up notes rely heavily on JavaScript and CSS to work properly (except for the ones created with Flash), they always present a potential browser compatibility issue. Being applicable to anything on Web pages, we should make sure that any JavaScript code manipulating CSS or HTML objects degrades gracefully if the browser doesn't understand the script. This implies that it's a good idea to use pop-up notes only to provide supplemental information. They should never be used to supply critical information.

    With the preliminaries out of the way, we're going to create pop-up notes using CSS and a little JavaScript in a step-by-step process, finally building an efficient script for generating multiple notes. So, let's dive into the code to show how it can work.

    More JavaScript Articles
    More By Alejandro Gervasio


       · Hello,The article explains in a detailed way, how to build pop-up notes using...
       · It's very useful for all to make web!Thank you!I will hope u post PartII.
       · Hi,Thank you for your feedback. Very much appreciatedAlejandro...
       · However the code is rather sloppy. You don't check for any availability of objects...
       · Thank you for the comment. You point is right, since the title attribute is good...
       · That might be the case, but where is the logical connection between the element and...
       · Yep, I've read carefully your above reasons, and they're pretty good. The whole...
       · This method is very bad from a semantics point of view. If you use a screen reader,...
       ·  Hi there, Thank you for your comments. Of course I agree that the title...
       · Hey,I would just look at the successful exposure, in a pedagogical sense.I...
       · Sure, it could work inserting images inside divs. Jut give a try.Thank you for...
       · There are plenty of occasions where this pop-up note could be useful and...
       · Hello friend,The suggested example is something that I haven't been thinking of,...
       · If you cut and paste the "here's the full code" bit you will find it works fine in...
       · Was it even mentioned? I didn't see anything discussing the compatibility issues. ...
       · Thank you for the good contributions here. As far I know, the script works in...
       · ok the scripts all good and all but what if you are new to css like me how and where...
       · Thank you for commenting on my article. Concerning your question, the tutorial...
       · the code overall good, but i can't believe you didn't test in at least 2 POPULAR...
       · Yes, I should have checked more thoroughly browser compatibility at that time. But...
       · Alejandro,This is very helpful! Its exactly what I am looking for. However, I...
       · Hey Andrew,Thanks for the kind words on my article. Unfortunately, now it's...
       · Alejandro,Thanks for the prompt response and information. I'll check it out. ...
       · Hey Andrew,Quite possibly www.dynamicdrive.com can be the site you're looking...
     

    JAVASCRIPT ARTICLES

    - Building Dynamic Shadows with JavaScript and...
    - Active Client Pages: Chrys`s Approach
    - The Script Approach to Active Client Pages: ...
    - Principles of Active Client Pages: the Scrip...
    - Active Client Pages: the Script Approach
    - Building an RTF-capable Form with the Ext JS...
    - Creating a Multi-Tabbed Online Form with the...
    - jQuery Overview
    - Constructing a Multi-Column Online Form with...
    - Grouping Field Sets on Dynamic Web Forms wit...
    - Building Dynamic Web Forms with the Ext JS F...
    - More on JavaScript Array Objects
    - Methods of the DOM Location Object
    - The DOM Location Object Properties
    - Handling Remote Files with JavaScript Click ...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT