[转]jquery-highlight-3.js使用笔记


文件高亮显示:

<html>
<head>
<title>JS HightLight!</title>
<script type = "text/javascript" src = "js/jquery-1.5.2.js"></script><script type = "text/javascript" src = "js/jquery.highlight-3.js"></script>
<script type = "text/javascript">
$(document).ready(function(){
//$('#highlight-plugin').removeHighlight().highlight('js');
‍$('#highlight-plugin').highlight('js');//以上两种写法均可
});
</script>
</head>
<body><style>
.highlight{
background:#FF0;
color:#E00;
}
</style>
<div id = "highlight-plugin">
js&nbspjsp
<form>
<table>
<tr>
<td>jsp</td>
<td>js</td>
<td>xml</td>
</tr>
</table>
</form>
</div>
</body>
</html>

 

来源:http://hi.baidu.com/shdren09/item/35feece67a7327afc00d753f


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM