JavaScript
随便记录下 乱搞的
Posted in JavaScript on 2008/07/03 / 评论(0) »

JS代码格式化
Posted in JavaScript on 2007/05/21 / 评论(0) »
JS代码格式化
备忘的一些JS片段
Posted in JavaScript on 2007/05/18 / 评论(0) »
备忘的一些JS片段
1个不错的滤镜
Posted in JavaScript on 2007/04/30 / 评论(0) »
1个滤镜不错的用法
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function flash(which2){
theobject=which2
theobject.filters.alpha.opacity=0
highlighting=setInterval("highlightit(theobject)",80)
}

function leave(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=1
else if (which2.filters)
which2.filters.alpha.opacity=100
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

//-->
</SCRIPT>
   <td width="520" height="25" align="right" valign="top"><p>      <IMG height=14 src="images/tou_r2_c11.jpg" width=23 border=0 name=tou_r2_c11><A onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.langte.net')" href="#">设为首页</a><IMG height=14 src="images//tou_r2_c15.jpg" width=26 border=0 name=tou_r2_c15> <A href="#" onclick="javascript:window.external.AddFavorite(location.href,document.title)" >加入收藏</a><IMG height=14 src="images//tou_r2_c18.jpg" width=26 border=0 name=tou_r2_c18><a href="mailto:zhuopukeji@163.com">与我联系</a><img height=14 src="images//tou_r2_c21.jpg" width=11 border=0 name=tou_r2_c21></p>
   </td>
 </tr>

 <tr>
   <td height="25" align="right" valign="top">2007年4月30日&nbsp;星期一
   &nbsp;&nbsp;&nbsp; </td>
 </tr>
 <tr>
   <td align="right" valign="bottom"><table width="471" border="0" cellpadding="0" cellspacing="0">
     <tr>
       <td width="1%"><img src="images/9-9.jpg" width="4" height="36"></td>

       <td><a href="/"><img src="images/332.jpg" width="49" height="36" border="0" onmouseover=flash(this) style="FILTER: alpha(opacity=100); moz-opacity: 1" onmouseout=leave(this)></a></td>
       <td width="6%"><img src="images/12-5_r2_c2.jpg" width="5" height="36"></td>
       <td width="6%"><a href="aboutus.asp"><img src="images/ddd-3.jpg" width="72" height="36" border="0" onmouseover=flash(this) style="FILTER: alpha(opacity=100); moz-opacity: 1" onmouseout=leave(this)></a></td>
       <td><img src="images/12-5_r2_c2.jpg" width="5" height="36"></td>
       <td width="6%"><a href="news.asp"><img src="images/ddd-4.jpg" width="72" height="36" border="0" onmouseover=flash(this) style="FILTER: alpha(opacity=100); moz-opacity: 1" onmouseout=leave(this)></a></td>
       <td><img src="images/12-5_r2_c2.jpg" width="5" height="36"></td>
       <td width="6%"><a href="products.asp"><img src="images/ddd-5.jpg" width="72" height="36" border="0" onmouseover=flash(this) style="FILTER: alpha(opacity=100); moz-opacity: 1" onmouseout=leave(this)></a></td>
       <td><img src="images/12-5_r2_c2.jpg" width="5" height="36"></td>
       <td width="12%"><a href="download.asp"><img src="images/ddd-6.jpg" width="72" height="36" border="0" onmouseover=flash(this) style="FILTER: alpha(opacity=100); moz-opacity: 1" onmouseout=leave(this)></a></td>

       <td><img src="images/12-5_r2_c2.jpg" width="5" height="36"></td>
       <td width="4%"><a href="services.asp"><img src="images/ddd-7.jpg" width="72" height="36" border="0" onmouseover=flash(this) style="FILTER: alpha(opacity=100); moz-opacity: 1" onmouseout=leave(this)></a></td>
       <td width="3%"><img src="images/12-5_r2_c2.jpg" width="5" height="36"></td>
       <td width="3%"><a href="contactus.asp"><img src="images/ddd-8.jpg" width="72" height="36" border="0" onmouseover=flash(this) style="FILTER: alpha(opacity=100); moz-opacity: 1" onmouseout=leave(this)></a></td>
       <td width="1%"><img src="images/8-8.jpg" width="5" height="37"></td>
     </tr>
   </table>
js Ajax 技术运用的不错
Posted in JavaScript on 2007/02/15 / 评论(0) »
http://mugtravel.ohpy.com/#
分页: 1/5 第一页 1 2 3 4 5 下页 最后页 [ 显示模式: 摘要 | 列表 ]