随笔分类 -  js

摘要:function htmlToubb(h,u){ str = pattern(document.getElementById(h).value); document.getElementById(u).value=str; } function ubbTohtml(u,h){ str = up(document.getElementById(u).val... 阅读全文
posted @ 2011-10-13 09:53 shine_panda
摘要:<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script> //供DEMO02_01页面的关闭按钮调用 function myFunction(v){ //alert("这里是父窗口中的函数"+v); document.getElementById("parentText").value=v; } //打开新窗口 function openNewWindow(){ window 阅读全文
posted @ 2008-06-15 12:31 shine_panda
摘要:<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script> //补充完成下边的函数,打开新的一个模式窗口 function openShowModalDialog(){ var obj = window; var params = new Array("aaaa",obj);var returnValue = window.showModalDialog("DEMO04_01.html& 阅读全文
posted @ 2008-06-15 12:27 shine_panda
摘要:DEM003.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head></head><frameset rows="70,*" cols="*" framespacing 阅读全文
posted @ 2008-06-15 12:24 shine_panda
摘要:calendar.js --------------------------------------------------------------------------------<!--document.write("<div id=meizzCalendarLayer style='position: absolute; z-index: 9999; width: 144; height: 193; display: none'>");document.write("<iframe name=meizzCalenda 阅读全文
posted @ 2008-05-31 17:56 shine_panda
摘要:<html><head><title></title></head><body><tableid="editTable"border="1"><tr><td>aaaaaaa</td><td>bbbbbbb</td><td>ccccccc</td></tr><tr><td>ddddddd</td><td>eeeeeee</td 阅读全文
posted @ 2008-05-27 11:49 shine_panda
摘要:<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/> 阅读全文
posted @ 2008-05-20 07:28 shine_panda
摘要:如果要求结果是17、27、100这样的数字大小排序,应该使用下面的程序: <SCRIPT language=JavaScript> var a=new Array(3); a[0]=27; a[1]=17; a[2]=100; a.sort(function(x,y){return parseInt(x)-parseInt(y);}); document.write(a+" "); </SCRIPT> 要控制按照自己的规律进行排序,就得学会字节编写排序函数,我下面粘贴Array对象的sort方法说明,你看了就会明白,不明白再回头结合上面的例子。 Ar 阅读全文
posted @ 2008-05-12 12:16 shine_panda