|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
re: icons and img src
Can someone help me with how to write the correct path for inserting
icons on an html page on an Apache virtual server running on a pc? I'm talking 'what's the path after <img src='? I've got the 'powered by Apache' gif to show, but that was by putting the test page in the same dir as the Apache icon I wanted to use. So all I did was name the gif file I wanted. I also need a gif file in a subdir of that. Do I give the full path (e.g., C:/Program Files/Apache Group/etc/etc)? Do the slashes go forward or backward? PC directory slashes go back, but Apache slashes go foward. Which way should my slashes go? And what is the rule for the ellipses (the dots that prepend a directory listing (../))? Is the ellipses to show for ServerRoot, or is it something else? Jeez, I'm asking which way and how! Please help! I'm pulling my hair out with this. Thanks!! elsteamola |
|
#2
|
|||
|
|||
|
>> I'm talking 'what's the path after <img src='?
That's the absolute path under your docroot . Or it could also be relative path of your current document. Win32 or UNIX no different. >> Do I give the full path (e.g., C:/Program Files/Apache Group/etc/etc) You never put any server path in html files, URL path only. The root URL path = docroot |
|
#3
|
|||
|
|||
|
re: img src and icons
Thanks for the reply.
I moved the file in question to the same folder and still no luck. Here's what I've got: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <html> <head> <title>Apache Test for Enriquillo</title> </head> <!-- Background white, links blue (unvisited), navy (visited), red (active) --> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#000080" alink="#FF0000"> <h1 ALIGN="CENTER">ENRIQUILLO</h1> <h3 ALIGN="CENTER">© 1998 Translation by George Hernández</h3> <div align="center" "bottom"> <img src="rainbow.gif" alt="" /></div> <div align="center" "bottom"><img src="apache_pb.gif" alt="" /></div> </body> </html> I haven't written html for about two years, but even putting both gif files in the same dir won't work. |
|
#4
|
|||
|
|||
|
re: img src and icons
Thanks for the reply.
I've moved the gif in question to the same folder and, while viewing through my browsers, the gifs showed up on all except the HotJava browser. The IE browser tends to crowd the gifs together, while Opera and Netscape look ok. Here's the code. Any pointers would be greatly appreciated. Humbly, elsteamola <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <html> <head> <title>Apache Test for Enriquillo</title> </head> <!-- Background white, links blue (unvisited), navy (visited), red (active) --> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#000080" alink="#FF0000"> <h1 ALIGN="CENTER">ENRIQUILLO</h1> <h3 ALIGN="CENTER">© 1998 Translation by George Hernández</h3> <div align="center"> <img src="rainbow.gif" alt="" /></div> <div align="center" vertical="bottom"> <img src="apache_pb.gif" alt="" align="bottom" /></div> </body> </html> |
|
#5
|
|||
|
|||
|
Do not mess with the Apache default icons directory (don't put anything there), that's for global use. Invent another directory name like images.
|
|
#6
|
|||
|
|||
|
re: icons
thanks for the reply.
I've gotten all browsers displaying all icons, and yes, I will move everything over to a new dir. I've got alot of questions in alot of categories. You've been prompt with your answers. Cool. elsteamola |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > re: icons and img src |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|