Results 1 to 3 of 3

Thread: How use js,css, file

  1. #1
    Join Date
    Apr 2011
    Posts
    82
    Thanks
    43
    Thanked 0 Times in 0 Posts

    Default How use js,css, file

    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.
    Last edited by rexi; 05-10-2011 at 03:31 PM.

  2. #2
    Join Date
    Feb 2008
    Posts
    81
    Thanks
    8
    Thanked 5 Times in 5 Posts

    Default

    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:

    HTML Code:
    <script type="text/javascript" src="yourfile.js">
    To link a CSS file:

    HTML Code:
    <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?

  3. The Following User Says Thank You to midhul For This Useful Post:

    rexi (05-10-2011)

  4. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    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.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. The Following User Says Thank You to Beverleyh For This Useful Post:

    rexi (05-10-2011)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •