Re: doctype not found? [message #173607 is a reply to message #173606] |
Wed, 20 April 2011 12:20 |
geoff
Messages: 8 Registered: April 2011
Karma:
|
Junior Member |
|
|
On Wed, 20 Apr 2011 13:00:34 +0200, "Álvaro G. Vicario"
<alvaro(dot)NOSPAMTHANX(at)demogracia(dot)com(dot)invalid> wrote:
> There is no DOCTYPE *on top* of the document. Even if there was one, you
Álvaro
thanks for your comments.
I have added the doctype etc info to the php at the top of the page
and now the page is centred in IE9 and the other browsers and W3C HTML
checker finds no errors.
Seems OK?
Cheers
Geoff
<?php
session_start();
setcookie("firsttime","no");
$firsttime = $_COOKIE[firsttime];
if (@$firsttime != "no") {
echo "
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN'
'http://www.w3.org/TR/html4/strict.dtd'>
<html>
<head>
<meta http-equiv='Content-Type'
content='text/html;charset=iso-8859-1'>
<!-- SEARCH-ENGINE-OFF -->
<title>Micro Active Net Ltd Home page</title>
<script type='text/javascript'
src='assets/javascripts/soundmanager2.js'></script>
<script type='text/javascript'
src='assets/javascripts/jquery-1.5.1.js'></script>
<script type='text/javascript'>
soundManager.debugMode = false;
soundManager.onready(function () {
/*soundManager.createSound('helloWorld',
'assets/audio-new/chord1.mp3');*/
soundManager.createSound('helloWorld',
'assets/audio-new/welcome-plus6.mp3');
soundManager.play('helloWorld');
});
</script>
";
}
?>
>
> --
> -- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
> -- Mi sitio sobre programación web: http://borrame.com
> -- Mi web de humor satinado: http://www.demogracia.com
|
|
|