Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2009
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Moving up a directory

    Hi everyone, I'm trying to implement a script on my site. Only problem is, where the HTML file I want to implement the script to is in a different directory than the source file. The HTML file I'm using the script in is in the folder "includes/globalscripts.html" and the source file is located in the folder "page_effects/snow/snow.gif". So, in my script I tried using this command:
    Code:
     var snowsrc="../page_effects/snow/snow.gif"
    but that didn't work. Is there something I'm doing wrong? The script is java script if that helps. Thanks

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I prefer the use absolute paths starting with a forward slash, which would ease the things considerably. Take a look at CSS, Div,Linking
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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