Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-22-2009, 08:26 AM   PM User | #1
qhx398
New Coder

 
Join Date: Dec 2009
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
qhx398 is an unknown quantity at this point
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
qhx398 is offline   Reply With Quote
Old 12-22-2009, 08:37 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
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...67&postcount=9
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:11 PM.


Advertisement
Log in to turn off these ads.