IE not displaying page correctly

the images are not displaying on page... works with FFox and Safari

Page 1 of 1

4 Replies - 1238 Views - Last Post: 05 March 2009 - 11:35 AM

#1 brianh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 05-March 09

IE not displaying page correctly

Posted 05 March 2009 - 11:00 AM

<!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">
<head><script language=Javascript>
<!-- http://www.spacegun.co.uk -->
	var message = "All images are copyright of Precious Expressions Photography"; 
	function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){ 	alert(message); return false; } 
	if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { 	alert(message); 	return false; } } 
	document.onmousedown = rtclickcheck;
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Pensacola</title>
</head>

<body>
<table align="center">
<tr>
<td>
<a href="http://www.preciousexpressionsphotography.freewebsites.com/pensacola/1.jpg"><img src="/pensacola/1.jpg" alt="" name="image1" width="100%" height="100%" id="image1"/>
</a></td>
<td>
<a href="http://www.preciousexpressionsphotography.freewebsites.com/pensacola/2.jpg"><img src="/pensacola/2.jpg" alt="" name="image2" width="100%" height="100%" id="image2"/>
</a></td>
<td>
<a href="http://www.preciousexpressionsphotography.freewebsites.com/pensacola/3.jpg"><img src="/pensacola/3.jpg" alt="" name="image3" width="100%" height="100%" id="image3"/>
</a></td>
<td>
<a href="http://www.preciousexpressionsphotography.freewebsites.com/pensacola/4.jpg"><img src="/pensacola/4.jpg" alt="" name="image4" width="100%" height="100%" id="image4"/>
</a></td></tr>
</table>
</body>
</html>

This post has been edited by brianh: 05 March 2009 - 11:10 AM


Is This A Good Question/Topic? 0
  • +

Replies To: IE not displaying page correctly

#2 richiebee  Icon User is offline

  • D.I.C Regular

Reputation: 4
  • View blog
  • Posts: 259
  • Joined: 27-November 08

Re: IE not displaying page correctly

Posted 05 March 2009 - 11:09 AM

Internet explorer has difficulty sometimes with js google the error...
Was This Post Helpful? 0
  • +
  • -

#3 thehat  Icon User is offline

  • awake ? web();
  • member icon

Reputation: 106
  • View blog
  • Posts: 951
  • Joined: 28-February 08

Re: IE not displaying page correctly

Posted 05 March 2009 - 11:17 AM

You're using an xhtml doctype, so none of your tags should contain capital letters.

You're missing some speechmarks in your script tag, and if you want this to validate you should use <script type="text/javascript"> instead.

Your images are all set to 100% height and width. This will probably cause problems at the best of times, but you also aren't setting any dimensions for your table so I don't think the browser knows what the images should be 100% of. The best thing to do would be to set pixel dimensions for your images.

After these points, if it still doesn't look right, we're going to need a bit more information about what you are expecting to see and what is actually happening.
Was This Post Helpful? 0
  • +
  • -

#4 brianh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 05-March 09

Re: IE not displaying page correctly

Posted 05 March 2009 - 11:17 AM

View Postrichiebee, on 5 Mar, 2009 - 10:09 AM, said:

Internet explorer has difficulty sometimes with js google the error...


I tried taking out the js... still not displaying the images.

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Pensacola</title>
</head>

<body>
<table align="center">
<tr>
<td>
<a href="http://www.preciousexpressionsphotography.freewebsites.com/pensacola/1.jpg"><img src="/pensacola/1.jpg" alt="" name="image1" width="100%" height="100%" id="image1"/>
</a></td>
<td>
<a href="http://www.preciousexpressionsphotography.freewebsites.com/pensacola/2.jpg"><img src="/pensacola/2.jpg" alt="" name="image2" width="100%" height="100%" id="image2"/>
</a></td>
<td>
<a href="http://www.preciousexpressionsphotography.freewebsites.com/pensacola/3.jpg"><img src="/pensacola/3.jpg" alt="" name="image3" width="100%" height="100%" id="image3"/>
</a></td>
<td>
<a href="http://www.preciousexpressionsphotography.freewebsites.com/pensacola/4.jpg"><img src="/pensacola/4.jpg" alt="" name="image4" width="100%" height="100%" id="image4"/>
</a></td></tr>
</table>
</body>
</html>

Was This Post Helpful? 0
  • +
  • -

#5 thehat  Icon User is offline

  • awake ? web();
  • member icon

Reputation: 106
  • View blog
  • Posts: 951
  • Joined: 28-February 08

Re: IE not displaying page correctly

Posted 05 March 2009 - 11:35 AM

Try taking the width and height off your images.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1