• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

22.2. Sample Scripts

How about some useful scripts to get you started? This section offers several scripts you can copy into your web pages.

22.2.1. Status Line Messages

Probably the simplest JavaScript you can add to your site is a message that appears in the status bar (the bar at the bottom that shows URLs or says "Document: Done"). You can use this bar to display a message when the user places the mouse over a link. To do this simply add a little JavaScript to a standard anchor tag. You don't even need to declare a script. Non-JavaScript-compatible browsers will simply ignore the code. Here's how you do it:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint