javascript Ìá½»¼ÓÃÜ
Ìṩһ¸ö¼òµ¥µÄÀý×Ó£º
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<SCRIPT language=javascript src='jshash-2.2/md5.js'
type=text/javascript></SCRIPT>
</HEAD>
<form onsubmit="pwd.value =hex_md5(pwd.value)" >
<input type='password' name='pwd'></input>
<input type='submit'></input>
</form>
<BODY>
</BODY>
</HTML>
µ÷ÓÃhex_md5(pwd.value)À´¼ÓÃÜÌá½»
jshash-2.2°üµ½http://pajhome.org.uk/crypt/md5/scripts.htmlÏÂÔØ
Ïà¹ØÎĵµ£º
/********************
* È¡´°¿Ú¹ö¶¯Ìõ¸ß¶È
******************/
function getScrollTop()
{
var scrollTop=0;
if(document.documentElement&&document.documentElement.scrollTop)
{
......
1
¡¢±àд
js
º¯Êý
<script
type="text/javascript">
function display(id){
var
traget=document.getElementById(id);
if(traget.style.display=="none"){
&nbs ......
javascriptÄÚ´æÐ¹Â¶µÄÎÊÌâÒ»Ö±ÒÔÀ´¶¼²»Êܵ½´ó¼ÒµÄÖØÊÓ£¬ÔÒòÊǶÔÓû§µÄÓ°ÏìûÓÐ̫ʵ¼ÊµÄ±íÏÖ£¬»òÐí½ü¼¸ÄêÄڴ淢չѸËÙ¡£½Å±¾ÄÚ´æÔÙй¶Ҳ²»»áÓÐÌ«´óÓ°Ïì¡£
µ±È»×÷Ϊǰ¶Ë¿ª·¢µÄͬѧÃÇ£¬¾Í²»ÄÜÓÐÕâÑùµÄ½ÄÐÒÐÄÀí¡£³öÏÖmemory leaksºÜ´ó³Ì¶ÈÉÏÊÇÒòΪ³ÌÐòµÄ²»³ÉÊìºÍ±àÂ벻̫¹æ·¶Ôì³ÉµÄ¡£²»¹ý£¬ÕâÀï¾Í²»ËµÈçºÎ³öÏÖÎÊÌâµÄ£¬¶ÔÎÊÌ ......
a href="#"> µã»÷Á´½Óºó£¬Ò³Ãæ»áÏòÉϹöµ½Ò³Ê×£¬# ĬÈÏêµãΪ #TOP
<a href="javascript:void(0)" onClick="window.open()"> µã»÷Á´½Óºó£¬Ò³Ãæ²»¶¯£¬Ö»´ò¿ªÁ´½Ó
<a href="#" onclick="javascript:return false;"> ×÷ÓÃͬÉÏ£¬²»Í¬ä¯ÀÀÆ÷»áÓвîÒì¡£
µã»÷Á´½Óºó£¬²»ÏëÊ¹Ò³Ãæ¹öµ½Ò³Ê×£¬¾ÍÓÃhref="javascript:v ......
ÍøÒ³¿É¼ûÇøÓò¿í£º document.body.clientWidth
ÍøÒ³¿É¼ûÇøÓò¸ß£º document.body.clientHeight
ÍøÒ³¿É¼ûÇøÓò¿í£º document.body.offsetWidth (°üÀ¨±ßÏߵĿí)
ÍøÒ³¿É¼ûÇøÓò¸ß£º document.body.offsetHeight (°üÀ¨±ßÏߵĸß)
ÍøÒ³ÕýÎÄÈ«ÎÄ¿í£º document.body.scrollWidth
ÍøÒ³ÕýÎÄÈ«Îĸߣº document.body.scrollHeight
ÍøÒ ......