لیست پروژه های طراحی وب سایت ASP.NET لیست پروژه های طراحی وب سایت HTML لیست پروژه های سی شارپ لیست پروژه های اسمبلی لیست پروژه های ویژوال بیسیک6 لیست پروژه های Access لیست پروژه های پایگاه داده ها لیست پروژه های سی پلاس پلاس لیست پروژه های مولتی مدیا بیلدر لیست پروژه های فلش
لیست پروژه های کارآفرینی لیست پروژه های مهندسی نرم افزار لیست انواع پایان نامه ها لیست پروژه های درس روش تحقیق لیست گزارشهای کارآموزی لیست ترجمه های انجام شده
صفحه اصلی     جستجو      درخواست نمونه و سفارش کار     ثبت نام      ورود      تماس با ما    محصولات نرم افزاری   

Click Mouse on Main Menu Bar to Activate It!

External JavaScript File

Now you can link all your javascript functions to an external final. Two pages can also share the same script (cuts down on disk space). Here's how it's done. The same part of the script that goes in the <head></head> tag goes in the external file minus the <script></script> tags. I'll use the Changing Image Script to explain how this is done.

First Step:
Create a blank page and name it anything you want, but with an exstension of ".js". I will name my file "changeimg.js"

Second Step:
Copy the <script></script> tag, leave out the acctually tag. For example, for the Changing Image script you would copy this (also changing the appropriate material).

 


See, no tags! Now save the file.

Third Step:
Open the page that you want to put the actual changing images to occur. In other words this page will call the functions in the ".js" file. In your <head></head> you need to input this, but change YOUR EXTERNAL JS FILE NAME (this tells the page where the external file is).



Now here are the images that change (This is what calls the functions in the external file). You input those just as you would any other script.


That's all there is to it! Good Luck!