November 24, 2024, 11:32:03 AMLatest Member: PeterSuh
BoutCheetah » Forum » Other » Spam » Just seeing if this works...

Just seeing if this works...

Started by xbaras, May 12, 2012, 01:25:01 AM

Previous topic - Next topic

xbaras

May 12, 2012, 01:25:01 AM Last Edit: May 12, 2012, 01:28:13 AM by xbaras
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?

xbaras

May 12, 2012, 01:28:37 AM #1 Last Edit: May 12, 2012, 01:34:13 AM by xbaras
[h1]Hello, World![/h1]

Copyright © ZylonGaming 2009 - 2024
-Terms of Use-