Results 1 to 5 of 5

Thread: internet explorer 7 won't open my website!!

  1. #1
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation internet explorer 7 won't open my website!!

    Hello,

    i have problem to browse my website in Internet explorer 7, i got this error message when i try to access the website:



    i need help to fix this.
    I can show you my html codes if needed.

    thanks,

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ok this was the header code:


    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>

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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:
    Code:
    <?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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    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:
    Code:
    <?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?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •