Board index Hands-On Community Forums Web Design
Change font size
Login
Register

images not showing on page....

Are you to a point in web design you don't know what went wrong? Maybe someone here can help you get the correct code figured out!

Moderator: Conor

images not showing on page....

Postby topaze » Wed Feb 11, 2009 2:40 pm

Okay, moving on from the XML issues. I'm putting together the rest of the site [or trying to]

http://test.topazgraphix.com/index.htm

the problem this go-round? Images are not showing, but their alt tags are. I've tried every configuration I can think of, including creating an absolute path to the images folder. The permissions on the folders are set to 755... of course, they show fine on machine locally, but live - not seeing a thing....

>sigh<
topaze
 
Posts: 26
Joined: Sat Sep 24, 2005 5:12 pm

Re: images not showing on page....

Postby Conor » Thu Feb 12, 2009 11:11 am

When I view it in chrome browser, I see the following as the error;

Resource interpreted as image but transferred with MIME type text/html. http://test.topazgraphix.com/images/testlogo.jpg
Resource interpreted as image but transferred with MIME type text/html. http://test.topazgraphix.com/images/mm_spacer.gif
Resource interpreted as image but transferred with MIME type text/html. http://test.topazgraphix.com/images/mm_dashed_line.gif
Resource interpreted as image but transferred with MIME
http://test.topazgraphix.com/images/mm_ ... _image.jpg

So there's something in your code trying to get the images to display as text/html rather than as an image. When you open the graphics directly in a browser, they load up with no problem, so there's something in the code declaring the text rather than images.
Conor Treacy
Forums Admin

http://www.HandsOnWebHosting.com
Conor
Site Admin
 
Posts: 648
Joined: Sat Mar 08, 2003 8:00 am
Location: Omaha, Nebraska

Re: images not showing on page....

Postby topaze » Mon Feb 16, 2009 9:28 am

As far as I can see, my code isn't different from any other site I've done, including my own.

here's the doctype:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

Here's the image code [didn't want to post the entire page, unless you think it might help if I did]


<tr bgcolor="#D5EDB3">
<td colspan="3" rowspan="2" valign="top"><img src="images/testlogo.jpg" alt="test logo no color" width="358" height="203" align="top" /></td>
<td height="50" colspan="3" id="logo" valign="bottom" align="center" nowrap="nowrap">mark of the beast</td>
<td width="474">&nbsp;</td>
</tr>

I did some googling trying to find an answer to the mime type and there were some articles referring to the htaccess file - is this something you could check for me when you get a chance? I'm thinking if this is the case, this is probably why the images from the slideshows weren't showing either...
I'm not handling my images any differently than I ever have, so I don't understand how they are suddenly the wrong mime type; could this have anything to do with the fact that I'm using a subdomain to test these pages on? As you can see, I'm grasping at straws here....

I noticed that the htaccess code in my public_html folder doesn't have test.topazgraphix.com - could this be it? [I admit it, I'm afraid to touch it] lol

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://jpm.topazgraphix.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://jpm.topazgraphix.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://topazgraphix.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://topazgraphix.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.jpm.topazgraphix.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.jpm.topazgraphix.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.topazgraphix.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.topazgraphix.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
topaze
 
Posts: 26
Joined: Sat Sep 24, 2005 5:12 pm

Re: images not showing on page....PROBLEM SOLVED

Postby topaze » Mon Feb 16, 2009 5:09 pm

first....

::bangs head on keyboard:::

turns out [and I'm reserving judgment until I try this again and again over the next few hours] it was the HOTLINK protection

added the test.site to the list and it all is working ok. For now. And the slideshows too.

I hope I haven't driven anyone any more crazier than I did myself... but y'all are the best for doing your best to help!
topaze
 
Posts: 26
Joined: Sat Sep 24, 2005 5:12 pm

 

Return to Web Design

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © phpBB Group • Ace Design By Planetstyles.com
The teamDelete all board cookies • All times are UTC - 6 hours [ DST ]