View Full Version : internet explorer 7 won't open my website!!
mascouta
06-10-2007, 02:05 PM
Hello,
i have problem to browse my website in Internet explorer 7, i got this error message when i try to access the website:
http://img256.imageshack.us/img256/4058/errorintru1.jpg
i need help to fix this.
I can show you my html codes if needed.
thanks,
If I remember correctly, this is something to do with having an XML prologue or comment in the wrong place. Certainly, we'll need to see your code.
mascouta
06-10-2007, 03:35 PM
ok this was the header code:
<?
ob_start();
session_start();
?>
<!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>
<title>sitename</title>
<link href="style/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
.bigbox{
border: 1px solid #a4d6f1;
background-color: #ebeff8;
padding: 2px;
margin-bottom: 3px;
width: 218px;
font-size: 14px;
font-family: "Times New Roman", Times, serif;
}
#dropmenudiv{
position:absolute;
border:1px solid black;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
}
#dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
}
#dropmenudiv a:hover{ /*hover background color*/
background-color:#d0d0d0;
}
</style>
<style type="text/css">
<!--
body {
margin-top: 0px;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
var weekdaystxt=["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"]
function showLocalTime(container, servermode, offsetMinutes, displayversion){
if (!document.getElementById || !document.getElementById(container)) return
this.container=document.getElementById(container)
this.displayversion=displayversion
var servertimestring=(servermode=="server-php")? '<? print date("F d, Y H:i:s", time())?>' : (servermode=="server-ssi")? 'June 09, 2007 13:37:11' : '<%= Now() %>'
this.localtime=this.serverdate=new Date(servertimestring)
this.localtime.setTime(this.serverdate.getTime()+offsetMinutes*60*1000) //add user offset to server time
this.updateTime()
this.updateContainer()
}
showLocalTime.prototype.updateTime=function(){
var thisobj=this
this.localtime.setSeconds(this.localtime.getSeconds()+1)
setTimeout(function(){thisobj.updateTime()}, 1000) //update time every second
}
showLocalTime.prototype.updateContainer=function(){
var thisobj=this
if (this.displayversion=="long")
this.container.innerHTML=this.localtime.toLocaleString()
else{
var hour=this.localtime.getHours()
var minutes=this.localtime.getMinutes()
var seconds=this.localtime.getSeconds()
var ampm=(hour>=12)? "PM" : "AM"
var dayofweek=weekdaystxt[this.localtime.getDay()]
this.container.innerHTML=formatField(hour, 1)+":"+formatField(minutes)+":"+formatField(seconds)+" "+ampm+" ("+dayofweek+")"
}
setTimeout(function(){thisobj.updateContainer()}, 1000) //update container every second
}
function formatField(num, isHour){
if (typeof isHour!="undefined"){ //if this is the hour field
var hour=(num>12)? num-12 : num
return (hour==0)? 12 : hour
}
return (num<=9)? "0"+num : num//if this is minute or sec field
}
</script>
<script type="text/javascript"><!--
var akm_w="218";
var akm_h="80";
var akm_ticker="USDCHF,GBPUSD,USDJPY,EURUSD";
var akm_item="USDCHF";
var akm_per="M1";
var akm_lang="en";
var akm_c1="648cbe";
var akm_c2="dfe2ea";
var akm_c3="f4f4f4";
var akm_c4="000000";
var akm_c5="FF0000";
//--></script>
<script type="text/javascript" src="http://akmeter.akmos.ru/js/ticker.js"></script>
<script type="text/javascript" src="http://akmeter.akmos.ru/js/ticker.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script src="includes/functions.js" type="text/javascript"></script>
<script src="includes/menu.js" type="text/javascript"></script>
<script language="JavaScript" src="includes/keyControl.js"></script>
</head>
Firstly, don't use XHTML, especially not Transitional. Search the forums for one of the many threads on why XHTML is currently a bad idea.
Secondly, remove the blank lines from before your DOCTYPE:
<?php
session_start();
ob_start();
?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
There are other problems with your design too: you shouldn't size things in pixels, for example, especially not fonts. Pixels are different sizes on different resolutions.
mascouta
06-10-2007, 03:58 PM
Firstly, don't use XHTML, especially not Transitional. Search the forums for one of the many threads on why XHTML is currently a bad idea.
Secondly, remove the blank lines from before your DOCTYPE:
<?php
session_start();
ob_start();
?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
There are other problems with your design too: you shouldn't size things in pixels, for example, especially not fonts. Pixels are different sizes on different resolutions.
Thank you problem solved but what i must use instead of pixels?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.