用js将textarea变成富文本编辑器(立即结贴!) 或者http://www.cnblogs.com/goodness2010/archive/2010/03/25/1695241.html解释下怎么调用new editor('container', bardata);这句!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>xhEditor demo1 : 默认模式</title> <link rel="stylesheet" href="common.css" type="text/css" media="screen" /> <script type="text/javascript" src="../jquery/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="../xheditor.js"></script> </head> <body> <form method="post" action="test.php"> <h3>xhEditor demo1 : 默认模式</h3> xheditor(默认完全):<br /> <textarea id="elm1" name="elm1" class="xheditor" rows="12" cols="80" style="width: 80%"> <p><span style="font-size:small;color:#ff6600;"><strong>登幽州台歌</strong></span></p><p><u>陈子昂</u></p><p>前不见古人,后不见来者。<img src="../xheditor_emot/shocked.gif"/></p><p>念天地之悠悠,独怆然而涕下!<img src="../xheditor_emot/cry.gif"/></p> </textarea><br /><br />xheditor-simple(简单):<br /> <textarea id="elm2" name="elm2" class="xheditor-simple" rows="12" cols="80" style="width: 80%"> <p><span style="font-size:small;color:#ff6600;"><strong>登幽州台歌</strong></span></p><p><u>陈子昂</u></p><p>前不见古人,后不见来者。<img src="../xheditor_emot/shocked.gif"/></p><p>念天地之悠悠,独怆然而涕下!<img src="../xheditor_emot/cry.gif"/></p> </textarea><br /><br />xheditor-mini(迷你):<br /> <textarea id="elm3" name="elm3" class="xheditor-mini" rows="12" cols="80" style="width: 80%"> <p><span style="font-size:small;color:#ff6600;"><strong>登幽州台歌</strong></span></p><p><u>陈子昂</u></p><p>前不见古人,后不见来者。<img src="../xheditor_emot/shocked.gif"/></p><p>念天地之悠悠,独怆然而涕下!<img src="../xheditor_emot/cry.gif"/></p> </textarea> <br/><br /> <input type="submit" name="save" value="Submit" /> <input type="reset" name="reset" value="Reset" /> <br/><br/><br/> -------------------- <br/><br/><br/> <br/><br/><br/><br/> -------------------- <br/><br/><br/> <script type="text/javascript"> $(function(){ $('#btn').bind("click", function(){ $('#test').append("<textarea id=\"elm2\" name=\"elm2\" class=\"xheditor-simple\" style=\"width: 80%\"></textarea>"); }); $('#btn').trigger("click"); }) </script> </form> <button id="btn">点击我</button> <div id="test"></div> </body> </html> 解释下怎么调用new editor('container', bardata);这句!!!进那个网站! jquery问题 js动态创建div内容 求助:My97的JS怎么在struts1.x中实现 JavaScript 里 switch 怎么按照 id 选择case呀?!.. JS操作DIV的问题 怎么在页面中根据图片宽度控制图片的宽度 跪求js异或溢出的解决方案 请问下 为什么我这个选项卡中滚动2 的效果为什么不能实现 请问有没有办法取到浏览器内部图片? 怎樣動態改變TABLE的datasrc的兩個問題 EXT 如何将grid中的值赋予文本框???? 让文字不间断横向滚动(不使用marquee标签)
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xhEditor demo1 : 默认模式</title>
<link rel="stylesheet" href="common.css" type="text/css" media="screen" />
<script type="text/javascript" src="../jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../xheditor.js"></script>
</head>
<body>
<form method="post" action="test.php">
<h3>xhEditor demo1 : 默认模式</h3>
xheditor(默认完全):<br />
<textarea id="elm1" name="elm1" class="xheditor" rows="12" cols="80" style="width: 80%">
<p><span style="font-size:small;color:#ff6600;"><strong>登幽州台歌</strong></span></p><p><u>陈子昂</u></p><p>前不见古人,后不见来者。<img src="../xheditor_emot/shocked.gif"/></p><p>念天地之悠悠,独怆然而涕下!<img src="../xheditor_emot/cry.gif"/></p>
</textarea><br /><br />xheditor-simple(简单):<br />
<textarea id="elm2" name="elm2" class="xheditor-simple" rows="12" cols="80" style="width: 80%">
<p><span style="font-size:small;color:#ff6600;"><strong>登幽州台歌</strong></span></p><p><u>陈子昂</u></p><p>前不见古人,后不见来者。<img src="../xheditor_emot/shocked.gif"/></p><p>念天地之悠悠,独怆然而涕下!<img src="../xheditor_emot/cry.gif"/></p>
</textarea><br /><br />xheditor-mini(迷你):<br />
<textarea id="elm3" name="elm3" class="xheditor-mini" rows="12" cols="80" style="width: 80%">
<p><span style="font-size:small;color:#ff6600;"><strong>登幽州台歌</strong></span></p><p><u>陈子昂</u></p><p>前不见古人,后不见来者。<img src="../xheditor_emot/shocked.gif"/></p><p>念天地之悠悠,独怆然而涕下!<img src="../xheditor_emot/cry.gif"/></p>
</textarea>
<br/><br />
<input type="submit" name="save" value="Submit" />
<input type="reset" name="reset" value="Reset" />
<br/><br/><br/>
--------------------
<br/><br/><br/>
<br/><br/><br/><br/>
--------------------
<br/><br/><br/>
<script type="text/javascript">
$(function(){
$('#btn').bind("click", function(){
$('#test').append("<textarea id=\"elm2\" name=\"elm2\" class=\"xheditor-simple\" style=\"width: 80%\"></textarea>");
});
$('#btn').trigger("click");
})
</script>
</form>
<button id="btn">点击我</button>
<div id="test"></div>
</body>
</html>
进那个网站!