Re: doctype not found? [message #173624 is a reply to message #173616] |
Wed, 20 April 2011 22:10 |
geoff
Messages: 8 Registered: April 2011
Karma:
|
Junior Member |
|
|
On Wed, 20 Apr 2011 18:05:18 +0200, "Álvaro G. Vicario"
<alvaro(dot)NOSPAMTHANX(at)demogracia(dot)com(dot)invalid> wrote:
Álvar
I have given up the approach I was using and the following seems OK at
http://www.micro-active.com/index.php
The sound is played on the first visit in a session but not on the
second and I get no php errors and also the W3C HTML Validator finds
no errors.
I am checking to see that if the $_SESSION["index_with_sound"] is not
set then the the audio is played. The $_SESSION["index_with_sound" is
set after that part of the code so when the user goes to another page
and then returns to index.php the $_SESSION["index_with_sound"] is set
and so no sound is played.
The logic seem OK to you?
There is a problem with IE9 in that although the page is centred on
the first visit (using css), after going to another page and then
returning to the index.php file, the page is no longer centred and the
drop down menu no longer works!
This does not happen with other browsers.
Any ideas?
Cheers
Geoff
<?php
//error_reporting(E_ALL);
session_start();
if (!isset($_SESSION["index_with_sound"])) {
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>
";
}
$_SESSION["index_with_sound"] = "yes";
?>
|
|
|