Get the weekly
email highlights
from the most popular
online Journal
for developers!
Current issue
|
developer.com
developerdirect.com
htmlgoodies.com
javagoodies.com
jars.com
intranetjournal.com
javascripts.com
datamation.com
|
- |
|


Java Script Requirements
Below are a few items to keep in mind when posting a Java Script to one of your HTML documents:
- You'll Need a Higher Level Browser
This should go without saying, but if your browser can't read Java Script, you'll get nothing on the page. My suggestion is to head to the Netscape -or- Explorer Home Page and download the highest version your computer can handle.
- Place the Script in the HEAD Commands
Placing your Java Script between the HEAD and /HEAD commands will ensure it is compiled and run first. It also sets it apart from the rest of the page's text.
- Denote Image Height and Width
Java Scripts are a little pickey in that they like for everything on the page to be denoted. This includes adding the Height and Width of each image. I understand this is not always the case, however, I have found two occasions in my own writing where adding the image's Height and Width helped with getting the script to work.
- Hide the Script from Less-Powerful Browsers
Java Script is text. If the browser viewing your page does not have Java capabilities, the text is displayed. You can hide the text from earlier-version browsers by adding <!- at the beginning of the script and --> at the end of your script. This will not affect the script's performance.
- Keep the Shape
Java Scripts often like to retain their shape.
You should make a point of editing your Java Script/HTML documents in a text editor that does not have margins as a "wrap around" setting may disrupt the Script's form, thus corrupting it. Suggestions for editing Java Script/HTML Documents include Notepad (IBMs), Simple Text (MACs), or turning off the word wrap in your current HTML editor.
[Back to the Java Goodies Home Page]
|



|
|
      |
Use of this site is subject to certain
Terms & Conditions.
Copyright (c) 1996-1998
EarthWeb Inc. All rights reserved. Reproduction in whole or in part in any form or medium without express written permission of EarthWeb is prohibited.
|
|
|