SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: path to a file

  1. #1
    SitePoint Member
    Join Date
    Sep 2000
    Location
    Oregon
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have never understood paths very well if I put a java script source file and a html file in the same folder what is the address to the html file they are in games/games.html so I think it would be like this is this right http://www.jassmine.com/games/games.html I am trying to get the html file to show up on my site map when clicked
    Jassmine
    http://www.jassmine.com
    Visit me on the web

  2. #2
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When the JScript file is in the same folder as the HTML file, all you need to do is state the filename e.g.

    <script language="JavaScript" src="myfile.js"></script>
    My 2 Cents (or is that 2.2 Cents including GST?)

  3. #3
    SitePoint Member
    Join Date
    Sep 2000
    Location
    Oregon
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you I don't know a lot about java and was trying to put up some cut and paste games and it said to put the nav file in with the html so I did so this helps I am learning all kinds of things here so glad you are here thank you
    Jassmine
    http://www.jassmine.com
    Visit me on the web

  4. #4
    SitePoint Member
    Join Date
    Sep 2000
    Location
    Oregon
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <script language="JavaScript" src="myfile.js"></script> when I put src="myfile.js> do I put the name of my file in there like games or just name the file myfile this should stupid even to a novice like me but I can't make it work
    Jassmine
    http://www.jassmine.com
    Visit me on the web

  5. #5
    SitePoint Guru CJ's Avatar
    Join Date
    Apr 2000
    Location
    Mechelen, Belgium, Europe
    Posts
    684
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by jassmine
    <script language="JavaScript" src="myfile.js"></script> when I put src="myfile.js> do I put the name of my file in there like games or just name the file myfile this should stupid even to a novice like me but I can't make it work
    If the game is called pacman.js it should become src="pacman.js" if it is hangman.js it should become src="hangman.js"

  6. #6
    SitePoint Member
    Join Date
    Sep 2000
    Location
    Oregon
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is a packet of 58 games. I did what you said like image src-"paceman" for each one on the html page at this time I am trying to get the html file to show up on my site. I don't know exactly what I am talking about so maybe don't know what to ask.
    Jassmine
    http://www.jassmine.com
    Visit me on the web

  7. #7
    SitePoint Member
    Join Date
    Sep 2000
    Location
    Oregon
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <script language="http://www.jassmine.com/myjavascript.js" src="games">

    </script> <IMG SRC="graphics/games.jpg" ALT="Click Here for Career Page" WIDTH=137 HEIGHT=31 BORDER=0 ALIGN=bottom>

    this is what I did with the script what is wrong </a>
    this is what I did with the script what is wrong
    Jassmine
    http://www.jassmine.com
    Visit me on the web


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
  •