Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: HTML - who knows it?


I ain't a Pirate and I ain't called Anne, but I sure am Bonnie!

(Mrs)





Status: Offline
Posts: 3266
Date: Aug 3, 2004
HTML - who knows it?


i have a real question yo.. please proceed with care


i have a main directory on my server - there are two (well more, but for the purpose of this explanation) subdirectories.. one has images, and one has password protected pages..


does anyone know how to in the <img src....> tag, step back outta the password directory.. and into the image directory to use an image without having to put the entire url in there..


anyone? anyone? i sure dont.. but i do need to know



__________________
current location: Antrim. I like it.


Vice JDK
and Man of the People





Status: Offline
Posts: 5453
Date: Aug 3, 2004

Do what with what tag taking someone to where?

You have an image that's supposed to take a user somewhere?

-- Edited by NateO at 19:26, 2004-08-03

__________________
You can't polish a turd


I ain't a Pirate and I ain't called Anne, but I sure am Bonnie!

(Mrs)





Status: Offline
Posts: 3266
Date: Aug 3, 2004

no no no.. me explain well not


i have a directory called.. let's say MAIN.. the index.html file is in there.. it has a pretty picture on it found in the subdirectory IMAGES.. and then it links to another page called secondpage.html which is found in the subdirectory called PAGES.. so we have:


main.html
images/picture.jpeg
pages/secondpage.html


both the main page and the secondpage need access to picture.jpeg.. in the main page all i have to say is:


< img src = "images/picture.jpeg"   / >


BUT .. how do i reference the image from the secondpage without having to put the entire url in there.. ie www.mycoolpage.com/images/picture.jpeg.. (WARNING: THIS IS NOT A REAL PAGE.. i dont think)


i need to step back from the PAGES subdirectory to the main directory.. then step into the IMAGES subdirectory to get it.. is there a nicer way to do it.. see?


 



__________________
current location: Antrim. I like it.


Proud House-Owner




Status: Offline
Posts: 1139
Date: Aug 3, 2004

quote:

Originally posted by: bonniepirateanne

"in the main page all i have to say is: < img src = "images/picture.jpeg"   / > BUT .. how do i reference the image from the secondpage without having to put the entire url in there.. "


use img src ="../images/picture.jpeg"


added note: use one ../ for every directory you need to go back... i'm assuming it's only one.



-- Edited by Andromeda at 22:02, 2004-08-03

__________________


I am the Jammie King!




Status: Offline
Posts: 12736
Date: Aug 3, 2004

You're so clever!

__________________
The King has spoken... But nobody listened.


Proud House-Owner




Status: Offline
Posts: 1139
Date: Aug 3, 2004



__________________


Vice JDK
and Man of the People





Status: Offline
Posts: 5453
Date: Aug 3, 2004





__________________
You can't polish a turd


I am the Jammie King!




Status: Offline
Posts: 12736
Date: Aug 3, 2004

Ok, here's a job for ya, Katie and And (and And?)


You've seen the new front page at www.freewebs.com/jdbb.  It's a bit basic cos ...well my HTML knowledge is a bit basic.  So why don't you use your amazing powers of web design to come up with something a little less basic and a little more....  cool!  Like including a background image like this:


 


I mean, how the hell do you do that?


Amaze me!


I'm experimenting with Flash.  I may be able to come up with a nice little flash intro given a few erm...months.



-- Edited by ddvmor at 22:36, 2004-08-03

__________________
The King has spoken... But nobody listened.


I ain't a Pirate and I ain't called Anne, but I sure am Bonnie!

(Mrs)





Status: Offline
Posts: 3266
Date: Aug 3, 2004

quote:

Originally posted by: Andromeda

" use img src ="../images/picture.jpeg" added note: use one ../ for every directory you need to go back... i'm assuming it's only one.-- Edited by Andromeda at 22:02, 2004-08-03"



darren, i shall look into the page.. in 6 weeks when i'm done with my dissertation



__________________
current location: Antrim. I like it.


I ain't a Pirate and I ain't called Anne, but I sure am Bonnie!

(Mrs)





Status: Offline
Posts: 3266
Date: Aug 3, 2004

btw.. < body background="http://www.freewebs.com/backgrounds/jammie.jpg" /> (or whatever)


will get you your background image ( i  think   )



__________________
current location: Antrim. I like it.
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard