At the moment, I'm learning JavaScript and CSS (already know HTML), and I'm just using this thread to experiment and find out how to add genuine scripting into a forum post. The scripts start out pretty basic, but i'm just seeing what works well and what doesn't. So here goes...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<style type="text/css">
h1.headingStyle
{
color:PowderBlue;
}
</style>
<script type="text/javascript">
function oClick()
{
document.write(Date())
}
</script>
</head>
<body>
<h1 class="headingStyle">Test Heading</h1>
<hr />
<form>
<input type="button" onclick="oClick()" value="Hit me for the date!" />
</form>
</body>
</html>
Does anybody know how to embed this into a forum post?