Welcome to Abyssal Gaming Network

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

[[Template core/front/global/updateWarning is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
Sign in to follow this  
Followers 0
Tommypad

Any HTML Coders here? Looking for help!

8 posts in this topic

Hey, me and my bud have been building a website for a while now and when inserting images we are using This code

<img src="Images/Banners/banner_Top10.png"/>

As you can see we are entering 2 folders to find the image. Is there a way to reverse the process. like go back to a previous folder? I Would appreciate the help:D

Share this post


Link to post
Share on other sites

Uh, I don't think there is, but you could try the opposite slash mark "\"

Don't think it will work, though. Couldn't you just copy and paste the stuff you're trying to put in, into the main index folder?

Share this post


Link to post
Share on other sites

Yes that what we originally had lol but when you have 270 pages all with 10 images them it can get quite messy :L

Share this post


Link to post
Share on other sites

You use something like "./Images/Banners/banner_Top10.png" or "../Images/Banners/banner_Top10.png". Or just the whole URL of the image.

Share this post


Link to post
Share on other sites

To go back one directory, use


../

For example, if you have x.png in the layout_images folder, which is located in the images folder, doing


../trololo.jpg

would refer to trololo.jpg in the images folder. However, this is when your html file is in the layout_images folder (for some reason). Remember that the path is in reference to the file you writing it in.

Share this post


Link to post
Share on other sites

Arghh right, thanks alot guys:D It really helped. Now our folder can be even more organised :L

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0