|
|
|
| << 101 Tips |
| JAVASCRIPT IS USEFUL for giving your site that little bit
extra, and helping it stand out from the crowd. 64. Keep on rolling One of the simplest uses of JavaScript is to combine the 'onMouseOver' and 'onMouseOff' functions. We've already mentioned the 'rollover' graphic effect, but you can also use it with HTML styles to drive a dynamic menu or you can use Flash to make the same effect 65. Perfect pop-ups If you're linking to other sites, include the TARGET="_new" to make sure that the link opens in a new window, leaving your site intact. One excellent tool for this is the Pop-Up Generator from eFlash 66. Window boxes Create a JavaScript function to open windows of a particular size and format. That way, you can create pop-up boxes without the menu bars for elements such as photo slideshows. Again You can use the free Pop-Up Generator tool from eflash 67. Tick, tock Add a real-time clock to your site with JavaScript's built-in "Date()" function: check the FAQ at developer.irt.org/script/date.htm you can see a live example of this script at Søgemaskine Optimering at the very top. It gives the visitor the impression that your site is being updated on a daily basic even this might not be the case. 68. Steal this code Don't waste time trying to write scripts, when chances are they're already been written. Take a look at the libraries at scriptbuilder.com or javascript.internet.com for examples you can just cut and paste into your site. 69. Be inclusive If your Web server supports Server-Side-Includes (SSI), use them to store global content, or for dynamically-rendered elements date and time. 70. Learn the script If your site can run CGI scripts (check with your Web host), try one of the pre-rolled ons at Matt's Script Archive. It covers everything from form processing to cookie crunching. Another good resource for Scripts is HotScripts because here you can see how other people rate the script you are about to download. |
| << 101 Tips |