1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| <html>
<head>
<title>HyperTextArea: The simple and extensible WYSIWYG editor</title>
<?php
include ("connexion.php");
<script language="JavaScript" type="text/javascript" src="HyperTextArea.js"></script>
</head>
<body>
<h2>HyperTextArea: The simple and extensible WYSIWYG editor</h2>
<form name="HyperTextAreaExample" action="" method="post" onsubmit="alert('sending')">
<script language="JavaScript" type="text/javascript">
<!--
area = new HyperTextArea("area1", 'here's the "<em>preloaded</em> <b>content</b>"', 520, 200,"");
//-->
</script>
<!-- uncomment for a second hypertextarea
<hr>
<script language="JavaScript" type="text/javascript">
area2 = new HyperTextArea("area2", 'here's the "<em>preloaded</em> <b>content</b>"', 520, 200,"");
</script>
//-->
<noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript>
<p>Click the button to show the HTML source of the HyperTextArea.</p>
<p><input type="submit" name="submit" value="envoyer" onclick="area.update();alert(area.html)"></p>
</form>
<? mysql_close(); ?>
</body>
</html> |
Partager