Skip navigation
Currently Being Moderated

How do you connect external javascript to your html page?

Mar 18, 2007 6:33 PM

I just created my first rollovers ever and I see it put javascript up in the head of my .html page. I want to remove it and make it external to control several pages. I am assuming I just create a new Javascript file (and then place it in my "includes" folder, right?). How do I attach the external javascript file to my pages??? I know how to attach a .css file. But I've never attached a javascript file before..........
 
Replies
  • Currently Being Moderated
    Mar 18, 2007 6:38 PM   in reply to smittyboy63
    http://www.webreference.com/programming/javascript/external/

    I got that link by searching on "javascript external file" at Google.

    Google is your friend. Answers to many (most?) of your questions are readily
    available at Google with an intelligent search. Advantages: Probably quicker
    than waiting for a response here; You will learn more; People here won't
    compare you to that boy who called "wolf". ;-)

    --

    Walt


    "smittyboy63" <webforumsuser@macromedia.com> wrote in message
    news:etkp8g$f23$1@forums.macromedia.com...
    >I just created my first rollovers ever and I see it put javascript up in
    >the
    > head of my .html page. I want to remove it and make it external to control
    > several pages. I am assuming I just create a new Javascript file (and then
    > place it in my "includes" folder, right?). How do I attach the external
    > javascript file to my pages??? I know how to attach a .css file. But I've
    > never
    > attached a javascript file before..........
    >


     
    |
    Mark as:
  • Currently Being Moderated
    Mar 18, 2007 9:33 PM   in reply to smittyboy63
    On Mon, 19 Mar 2007 03:13:31 +0000 (UTC), "smittyboy63"
    <webforumsuser@macromedia.com> wrote:

    >Thanks Walt. That explained it manually, but how about where in
    >Dreamweaver can you just attach the java file? Like I said, I know how
    >to attach the .css file "in Dreamweaver".


    Insert->HTML->Script Objects->Script
    Click the folder icon to browse to the file

    Gary
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 19, 2007 4:07 AM   in reply to smittyboy63
    It's javascript, not Java. The two are as different as fish and
    bicycles....

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com - Template Triage!
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================


    "smittyboy63" <webforumsuser@macromedia.com> wrote in message
    news:etkv4r$lt0$1@forums.macromedia.com...
    > Thanks Walt. That explained it manually, but how about where in
    > Dreamweaver can you just attach the java file? Like I said, I know how to
    > attach the .css file "in Dreamweaver".


     
    |
    Mark as:
  • Currently Being Moderated
    Mar 19, 2007 5:54 AM   in reply to smittyboy63
    On Mon, 19 Mar 2007 06:27:39 +0000 (UTC), "smittyboy63"
    <webforumsuser@macromedia.com> wrote:

    >Thanks Gary. I was hoping there was a way to accomplish this through Dreamweaver.


    You're welcome.

    Gary
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points