First you create ( paste) a java script with Microsoft Notepad.
Then “Click Save As” Button .
Popup a window like below. Save the name of the file with the extension of .js at the end.
Once saved you should get an icon that looks something like this or .
It is now time to "Upload" the .js script into your directory. ( You should upload the .js file into the same directory as the effect will be located. If you opt to upload it into a different directory, you need to alter the path the reflect where the external .js script will be called from.)
The next step is to now paste the little snipplet of javascript that calls the external .js script into either the <HEAD> or <BODY> section (Whichever location the script calls for). Here again, the script site should tell you where it will be located. The snipplet of code should look something like the below
<script type="text/javascript" src="name_of_file_here.js"></script>
I f you are going to upload either a .js or .css file into a different directory than where this effect will be (root or top directory), then you need to reconfigure the below part of the code to reflect where this external .js or .css file needs to be called from. For example, if you upload the .js or .css file into a respective directory called jsfiles or cssfiles then the below code would have to reflect this change.
Default .js Code - Root Directory
<script src="filename.js" language="javascript" type="text/javascript"></script>
Reconfigured .js Code
<script src="jsfiles /filename.js" language="javascript" type="text/javascript"></script>
Default .css Code - Root Directory
<link rel="stylesheet" type="text/css" href="filename.css">
Reconfigured .css Code
<link rel="stylesheet"type="text/css"href="cssfiles/filename.css">
......................................END............................................
0 comments:
Post a Comment