Click to See Complete Forum and Search --> : style sheet and images not being accessed by page
tableforglasses
12-18-2007, 07:30 PM
Hey guys I have posted a site up and so far only the content is showing up. I have a flash file, images for the nav bar, and more, also particularly a style sheet that is linked to all of the pages. For some reason none of this is being referenced by the page. All of the image files and style sheet are up on the server it is just like the pages are not referencing them. Everything works fine when I test run the page, but now that I have put it up nothing is working. Any help would be greatly appreciated. The site is
www.libertybaptistfellowship.com
thanks
WebJoel
12-18-2007, 07:38 PM
<link href="http://www.libertybaptistfellowship.com/lbf/lbf_layout.css" rel="stylesheet" type="text/css"> This seems to work (absolute-path to CSS file).
I suspect that the images referanced suffer from some path irregularity.
back:
yeah, -that was it..
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="967" height="293" title="Liberty Baptist Fellowship">
<param name="movie" value="http://www.libertybaptistfellowship.com/lbf/lbf_main_flash.swf">
<param name="quality" value="high">
<embed src="http://www.libertybaptistfellowship.com/lbf/lbf_main_flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="967" height="293"></embed>
</object> FLASH file works now
<td><h3><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','/nav bar/home_rollover.jpg',1)"><img src="http://www.libertybaptistfellowship.com/lbf/nav bar/home.jpg" name="Image2" width="113" height="30" border="0"></a><a href="index.html"></a></h3></td> -Images work too
dtm32236
12-18-2007, 07:39 PM
this probably isn't the reason (though it could be), but you really shouldn't have spaces in any filenames:
/nav bar/home_rollover.jpg is no good.
that's forcing the browser to render it:
/nav%20bar/home_rollover.jpg
/nav_bar/home_rollover.jpg would probably be a lot better.
like i said, i don't know if this is the problem, but it wouldn't hurt to fix this.
WebJoel
12-18-2007, 07:46 PM
I assume that "nav bar" is the folder(?). I think it's okay really, to have a folder named this way. *I* don't like doing that way, though. I just prefer "images" or "NavImages", etc... -anyone? :o
tableforglasses
12-18-2007, 07:59 PM
Alright I got the flash and the style sheet to work (thanks for that), but is it really best do an href for all of the images for the nav bar and the body text containers? If that is what I have to do, then I will, just want to make sure that is the best thing to do.
thanks for the time
WebJoel
12-18-2007, 08:06 PM
It actually looks more as if the relative path you state, is incorrect or incomplete. That is why the absolute-path works. Check that you have things listed correctly in the correct path.
dtm32236
12-18-2007, 08:06 PM
I assume that "nav bar" is the folder(?). I think it's okay really, to have a folder named this way. *I* don't like doing that way, though. I just prefer "images" or "NavImages", etc... -anyone? :o
nav bar seems to be a folder.
and having the space probably does work (again, the browser converts the space to '%20'). so, yeah, it should be perfectly fine, but it's definitely not preferred by anyone.
anyway, just to give my input:
I always have all my images in the root directory in an 'images' folder.
and if that's a huge folder with tons of images, i'll commonly do /images/header/ for my header and/or navigation images.
...just the way i do it.
tableforglasses
12-18-2007, 08:48 PM
I posted the site up somewhere else, just when I was developing it, and everything worked fine with the images, so I thought the paths should be right. Maybe it has something to do with the new server I am posting to.
WebJoel
12-19-2007, 10:00 AM
I posted the site up somewhere else, just when I was developing it, and everything worked fine with the images, so I thought the paths should be right. Maybe it has something to do with the new server I am posting to. Entirely possible I suppose, that one server might accept a folder with a 'whitespace' in it's name and another, will not. I don't do 'white-spaces' in folder-names (opting instead for the shortest naming convention possible, to conserve every byte where possible), and have never had any problem hosting to different servers and have one work and another, fail.. :confused:
I do see that you used abs-path URLs and that the images are up & working this morning. :)