Forum Moderators: open
<!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"><!-- InstanceBegin template="/Templates/content-wide-ext-charities.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Charities Form</title>
<!-- InstanceEndEditable -->
<?php include("/inc/meta.txt"); ?>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="application/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<!-- InstanceBeginEditable name="head" -->
<?php include("scripts/volunteer-db.php"); ?>
<link href="css/keypad.css" rel="stylesheet" type="text/css"/>
<script type="application/javascript" src="scripts/keypad.js"></script>
<!-- InstanceEndEditable -->
</head>
<body onload="getImage()">
<!-- InstanceBeginEditable name="body" -->
<!-- InstanceEndEditable -->
function getImage() {
var num = Math.ceil(Math.random()*5);
var isrc = "images/bg-masthead-L" + num + ".jpg";
document.getElementById("banner-L").src = isrc;
}
W3 say that "text/javascript" - is obsolete and is replaced by "application/javascript" as the current official MIME type for JS.
type = content-type [CI]
This attribute specifies the scripting language of the element's contents and overrides the default scripting language. The scripting language is specified as a content type (e.g., "text/javascript"). Authors must supply a value for this attribute. There is no default value for this attribute.
The type attribute gives the language of the script or format of the data. If the attribute is present, its value must be a valid MIME type. The charset parameter must not be specified. The default, which is used if the attribute is absent, is "text/javascript".