Log in

View Full Version : Resolved How use js,css, file



rexi
05-09-2011, 05:11 PM
Hi,
I looking some explanation about how use js. and css. file from script.I am not uderstand how is working.
When I make some script that working,I usually put all file (js,css,and other) on my page,but problem is to long file.
When I looking some script on some people page,I can't find huge file like mine.Question is,..can someone explain me step to step where people put bigest file.
Thanks.

midhul
05-10-2011, 06:55 AM
From what you have posted, nothing can clearly be understood.

I believe you want to make use of the js or css script in your webpage?
JS and CSS script can either be linked as files or integrated within the page as scripts.

To link a JS file:



<script type="text/javascript" src="yourfile.js">



To link a CSS file:



<link rel="stylesheet" href="yourfile.css" type="text/css">




I don't understand, what problem you are having with big files. Usually you can link files as long as they are valid, irrespective of size. Can you be more elaborate about that?

Beverleyh
05-10-2011, 09:53 AM
There are many tutorials already online for setting up and using external javascript files and external css files.

Maybe the terminology was making your search difficult if you didnt know what to call it? Try searching something like "external javascript/css tutorial" and you should find something really quickly.