...

View Full Version : Moving up a directory



qhx398
12-22-2009, 08:26 AM
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:
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

abduraooft
12-22-2009, 08:37 AM
I prefer the use absolute paths starting with a forward slash, which would ease the things considerably. Take a look at http://www.codingforums.com/showpost.php?p=784167&postcount=9



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum