Antivirus|Multimedia Tools|Burning Tools|Internet Tools|Recovery Tools|Converter|PC Games|Full Version Software|Mediafire|Ebooks english...

Friday, May 18, 2012

How To Create .js (Java) File In Notepad



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 How .js Icon Will Look After You Save As or How .js Icon Will Look After You Save As in Vista.



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............................................




Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 comments

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

 
© 2011 English Software Collection
Designed by BlogThietKe Cooperated with Duy Pham
Released under Creative Commons 3.0 CC BY-NC 3.0
Posts RSSComments RSS
Back to top