Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ò»¸öcss javascriptµÄ¶þ¼¶ºáÏò²Ëµ¥

  ÑÝʾµØÖ·: http://www.wowo-design.com/view/51_01/index.htm
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>css²Ëµ¥ÑÝʾ</title>
<style type="text/css">
<!--
*{margin:0;padding:0;border:0;}
body {
  font-family: arial, ËÎÌå, serif;
font-size:12px;
}
#nav {
   line-height: 24px; list-style-type: none; background:#666;
}
#nav a {
  display: block; width: 80px; text-align:center;
}
#nav a:link {
  color:#666; text-decoration:none;
}
#nav a:visited {
  color:#666;text-decoration:none;
}
#nav a:hover {
  color:#FFF;text-decoration:none;font-weight:bold;
}
#nav li {
  float: left; width: 80px; background:#CCC;
}
#nav li a:hover{
  background:#999;
}
#nav li ul {
  line-height: 27px; list-style-type: none;text-align:left;
  left: -999em; width: 980px; position: absolute; float:left;
}
#nav li ul li{
  float: left; width: 80px;
  background: #F6F6F6;
}
#nav li ul a{
  display: block; width: 80px;text-align:center;
}
#nav li ul a:link {
  color:#666; text-decoration:none;
}
#nav li ul a:visited {
  color:#666;text-decoration:none;
}
#nav li ul a:hover {
  color:#F3F3F3;text-decoration:none;font-weight:normal;
  background:#C00;
}
#nav li:hover ul {
  left: 0;
}
#nav li.sfhover ul {
  left: 0;
}
#content {
  clear: left;
}
-->
</style>
<script type=text/javascript><!--//--><![CDATA[//><!--
function menuFix() {
  var sfEls = document.getElementById("nav").getElementsByTagName("li");
  for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
    this.className+=(this.className.length>0? " ": "") + "sfhover";
&nb


Ïà¹ØÎĵµ£º

JavaScript »ñÈ¡¶ÔÏóµÄ¸ß¶ÈºÍ¿í¶ÈÏêϸ˵Ã÷

scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......

javascript

 µÚÒ»Ìâ
±àдһ¸ö·½·¨ ÇóÒ»¸ö×Ö·û´®µÄ×Ö½Ú³¤¶È
µÚ¶þÌâ
ÈçºÎ¿ØÖÆalertÖеĻ»ÐÐ
µÚÈýÌâ
½âÊÍdocument.getElementById("ElementID").style.fontSize="1.5em"
µÚËÄÌâ
½«Ò»¸öÀàËÆͼÖеÄЧ¹û·ÖÀë³ÉcssºÍhtml
µÚÎåÌâ
°´ÕÕ¸ñʽ xxxxÄêxxÔÂxxÈÕxxʱxx·ÖxxÃ붯̬ÏÔʾʱ¼ä ÒªÇó²»×ã10µÄ²¹0
µÚÁùÌâ
±àдһ¸ö·½·¨ È¥µôÒ» ......

Ïê½âFirefox 3.5µÄÐÂJavaScriptÒýÇæ

 ±¾ÎÄ×÷ÕßΪDavid
Mandelin£¬©¤©¤Mozilla JavaScriptÍŶӹ¤×÷ÈËÔ±¡£
Firefox 3.5ÓµÓÐÒ»¸öȫеÄJavaScriptÒýÇ棬½Ð×öTraceMonkey£¬ÔÚ¸ÃÒýÇæÉÏÅÜJSÓ¦ÓÃÒª±ÈFirefox
3¿ìµ½3-4±¶£¬´Ó¶øΪÏÖÓеÄÍøÂçÓ¦ÓüÓËÙ¡£ÕâƪÎÄÕ´óÖµÄÃèÊöÒ»ÏÂÔÚTraceMonkeyÖаüÀ¨µÄÖØÒª²¿¼þ£¬ÒÔ¼°ËûÃÇÊÇÈçºÎ¼ÓËÙJavaScriptµÄ¡£Í¬Ñù£¬ÔÚÁ˽âÕâÐ ......

javascript Ìøת ÈýÖÖ

<html>
<head>
<mce:script language="javascript"><!--

function old_page()
{
window.location = "http://www.jb51.net"
}
function replace()
{
window.location.replace("http://www.jb51.net")
}
function new_page()
{
window.op ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ