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

ÎÞ·ì¹ö¶¯ÐÂÎŵÄJavascriptÔ´´úÂë

ÖصãÔÚÓÚfunction scroll()£¬function clipShow()¼°ÒÔÏÂforÑ­»·¡£
ÎÞ·ì¹ö¶¯ÐÂÎŵÄJavascriptÔ´´úÂ룬·ÅÔÚÕâÀÓÐÐèÒªµÄʱºò¿ÉÄÜÓõÃÉÏ£º
//CSSÑùʽ
<style>
.new_newsT{
 padding-top: 10px;
 padding-bottom: 8px;
}
.new_newsT  .list {
 CLEAR: both; MARGIN: 0px 6px 0px 10px
}
.new_newsT  .list UL {
 PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 6px
}
.new_newsT  .list LI {
 CLEAR: both;
 PADDING-RIGHT: 0px;
 PADDING-BOTTOM: 0px;
 LINE-HEIGHT: 26px;
 PADDING-TOP: 0px;
 TEXT-ALIGN: left;
 width: 390px;
 white-space: nowrap;
 padding-left: 8px;
 overflow: hidden;
 background-image: url(/images/2/icon_20.gif);
 background-repeat: no-repeat;
 background-position: left;
 font-size: 14px;
 text-overflow:ellipsis;
}
.newReportMarquee {
 width:420px;
 height:128px;
 text-align:left;
 margin:0px;padding:0px;
 overflow:hidden;
 white-space:nowrap;
}
</style>
//Ïà¹ØÄÚÈÝ
<table>
  <tr>
    <td class="new_newsT"><div onmouseover="iScrollAmount=0" onmouseout="iScrollAmount=1">
        <div id="newReport" class="newReportMarquee">
          <ul id="NewsMarquees" class="list">
            <li><a href="/Article/ShowInfo.asp?ID=4757" title="¿ñÉÕ16Сʱ ÎåǧƽÃײֿâÁѳÉÁ½°ë">¿ñÉÕ16Сʱ&nbsp;ÎåǧƽÃײֿâÁѳÉÁ½°ë</a>&nbsp;<span style="color:red">[09ÔÂ17ÈÕ]</span></li>
            <li><a href="/Article/ShowInfo.asp?ID=4743" title="¶«Ý¸Êз¢ÉúÒ»ÆðÌØ´ó½»Í¨Ê¹ÊÖÂ4ËÀÁ½ÉË">¶«Ý¸Êз¢ÉúÒ»ÆðÌØ´ó½»Í¨Ê¹ÊÖÂ4ËÀÁ½ÉË</a>&nbsp;<span>[09ÔÂ14ÈÕ]</span></li>
  &n


Ïà¹ØÎĵµ£º

Javascript ÏÔʾ±êǩҳЧ¹û

ҪʵÏÖÕâ¸ö¹¦ÄܹؼüÊÇÒªÀí½â¿éµÄdisplayÊôÐÔ¡£Ò»¸ö¿éµÄdisplayÊôÐÔÉèΪnone£¬¾ÍÏ൱ÓÚÕâ¸ö¿é²»´æÔÚ¡£ËùÒÔ½«ÒªÏÔʾµÄ¶à¸ö¿éµÄdisplayÊôÐÔÉèΪnone,ÔÙ¸ù¾ÝÐèÒª½«ÒªÏÔʾµÄ¿éµÄdisplayÊôÐÔÉèΪblock¾Í¿ÉÒÔ×ö³ö±êǩҳЧ¹ûÁË¡£
£¨1£©      ½¨±êÇ©ÌâÒÔ¼°¸÷±êÇ©ÌâËù¶ÔÓ¦µÄÏÔʾÄÚÈÝ£º
<span id="span1 ......

javascript»ñÈ¡iframeÎĵµÄÚÈÝ(¼æÈÝIEºÍFirefox)

ÔÚÍøÉÏÕÒµ½ÔÚIEϲÙ×÷IFrameÄÚÈݵĴúÂë:
   
document.frames["MyIFrame"].document.getElementById("s").style.color="blue";
µ«ÊÇÕâÔÚFirefoxÏÂÎÞЧ¡£
ËùÒÔ£¬Ïëµ½ÔÚFirefoxÏÂÓÃFireBugÀ´µ÷ÊÔ¡£¾­¹ýµ÷ÊÔ·¢ÏÖÔÚFirefoxÏ¿ÉÓÃÒÔÏ´úÂëÀ´ÊµÏÖ:
   
document.getElementById("MyIFr ......

Javascript·ÃÎÊhtmlÒ³ÃæµÄ¿Ø¼þµÄ·½·¨Ïêϸ·ÖÎö

·ÃÎʿؼþµÄÖ÷Òª¶ÔÏóÊÇ:document¶ÔÏó¡£·Ö±ð¶ÔÓ¦µ±Ç°ÎĵµËùÓеģ¨×Ó¶ÔÏ󣩸öÈ˹۵㡣²¢ÇÒÒѾ­ÌṩµÄ¼¸¸öÖ÷Òª·½·¨À´·ÃÎʶÔÏó¡£
1. document.getElementById
2. document.getElementsByName
3 document.getElementsByTagName
4 document.all
ÏÂÃæÎÒÖ÷Ҫ̸̸ÒÔÉϼ¸¸ö·½·¨µÄ¾ßÌåÓ÷¨£º
Ò»£®Ê×ÏÈÎÒÀ´Ì¸Ì¸document.getE ......

javaScriptͨÓÃÊý¾ÝÀàÐÍУÑé

  /** 
* È¡µÃ×Ö·û´®µÄ×Ö½Ú³¤¶È 
*/ 
´úÂë
function strlen(str)
{
var i;
var len;

len = 0;
for (i=0;i<str.length;i++)
{
if (str.charCodeAt(i)>255) len+=2; else len++;
}
return l ......

javascriptÖеÄmoveStartºÍmoveEnd·½·¨

Ïê̽TextRange¶ÔÏó--²éÕÒÓëÑ¡Ôñ
TextRange¶ÔÏóÊǶ¯Ì¬HTML(DHTML)µÄ¸ß¼¶ÌØÐÔ£¬Ê¹ÓÃËü¿ÉÒÔʵÏֺܶàºÍÎı¾ÓйصÄÈÎÎñ£¬ÀýÈçËÑË÷ºÍÑ¡ÔñÎı¾¡£Îı¾·¶Î§ÈÃÄú¿ÉÒÔÑ¡ÔñÐԵĽ«×Ö·û¡¢µ¥´ÊºÍ¾ä×Ó´ÓÎĵµÖÐÌôÑ¡³öÀ´¡£TextRange¶ÔÏóÊÇÔÚHTMLÎĵµ½«ÒªÏÔʾµÄÎı¾Á÷ÉϽ¨Á¢¿ªÊ¼ºÍ½áÊøλÖõijéÏó¶ÔÏó¡£
ÏÂÃæÊÇTextRangeµÄ³£ÓÃÊôÐÔÓë·½·¨£º
Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ