破解天下论坛's Archiver

wumingxiaozu 发表于 2007-10-17 14:36

[分享]一个带防穿透的月历 只有年和月 非常不错[2007-10-17]

[code]

<style type="text/css">
<!--
.month{
  cursor:hand;
  border-right:1px solid #BBBBBB;
  border-bottom:1px solid #BBBBBB;
  color:#215DC6;
  font-family:Verdana;
  font-size:12px;
  align=center;
}
</style>
<script>
document.writeln("<div id='mydate' style='position:absolute; z-index:1; visibility: hidden; filter:\"progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#999999,strength=3)\"'></div>");
function showTable(InputBox)
{
var x,y;
var DivContent;
var o=InputBox;
//显示的位置
x=o.offsetLeft;
y=o.offsetTop;
while(o=o.offsetParent)
{
x+=o.offsetLeft;
y+=o.offsetTop;
}
document.all.mydate.style.left=x+2;
document.all.mydate.style.top=y+20;
document.all.mydate.style.visibility="visible";
//document.writeln("<div style='display:none' id='mydate'>");
DivContent="<iframe frameBorder=no  style ='position:absolute; left:0; z-index:-1; border-Style:none;width=100%; height=100%;'></iframe><table width=150 border='0' cellspacing='0' style='border:1px solid #0066FF; background-color:#EDF2FC;filter:\"progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#999999,strength=3)\"'>";
DivContent+="<tr>";
DivContent+="<td colspan='3' align='center'  style='border-bottom:1px solid #0066FF; background-color:#C7D8FA ;font-family:Verdana; font-size:12px'>";
DivContent+="<input type='button' name='minus' value=' - ' style='height:18'  onClick='minus()'> <input type='text' name='selectYear' size='4' value='' style='height=18'> <input type='button' name='add' value=' + ' style='height:18' onClick='add()'>";
DivContent+="</td>";
DivContent+="<td style='border-bottom:1px solid #0066FF; background-color:#C7D8FA; font-weight:bold; font-family:Wingdings 2,Wingdings,Webdings; font-size:16px; padding-top:2px; color:#4477FF; cursor:hand' align='center' title='关闭' onClick='javascript:divClose()'>";
DivContent+="S";
DivContent+="</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('01')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>1月</td>";
DivContent+="<td align='center' onClick=\"setYear('02')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>2月</td>";
DivContent+="<td align='center' onClick=\"setYear('03')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\"  onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>3月</td>";
DivContent+="<td align='center' onClick=\"setYear('04')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>4月</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('05')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>5月</td>";
DivContent+="<td align='center' onClick=\"setYear('06')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>6月</td>";
DivContent+="<td align='center' onClick=\"setYear('07')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>7月</td>";
DivContent+="<td align='center' onClick=\"setYear('08')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>8月</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('09')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>9月</td>";
DivContent+="<td align='center' onClick=\"setYear('10')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>10月</td>";
DivContent+="<td align='center' onClick=\"setYear('11')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>11月</td>";
DivContent+="<td align='center' onClick=\"setYear('12')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>12月</td>";
DivContent+="</tr>";
DivContent+="</table>";
//document.writeln("</div>");
document.all.mydate.innerHTML=DivContent;


var divId=document.getElementById("mydate");
divId.style.display="block";
init();
}
function show()
{
showTable();
var divId=document.getElementById("mydate");
divId.style.display="block";
init();
}
function init()
{
   var now = new Date();
   var nowYear = now.getYear();
   document.all.selectYear.value = nowYear;
}
function minus()
{
    var year = parseInt(document.all.selectYear.value)-1;
if(year<1900)
{
    alert("年份选择不合理");
return;
}
document.all.selectYear.value=year;
}
function add()
{
    var year = parseInt(document.all.selectYear.value)+1;
if(year>2100)
{
    alert("年份选择不合理");
return;
}
document.all.selectYear.value=year;
}
function divClose()
{
    document.getElementById("mydate").style.display="none";
}
function setYear(year)
{
    document.all.year.value=document.all.selectYear.value+year;
divClose();
}
</script>
<input type="text" size=12 name="year" value="选择月份" onClick="showTable(this)">
<br/>
<select >
<option>fdfsdfsdf</option>
<option>fdsfsfsfsdfsdfsdfsfsfsdfsdfsdfs</option>
</select>

[/code][html]<style type="text/css">
<!--
.month{
  cursor:hand;
  border-right:1px solid #BBBBBB;
  border-bottom:1px solid #BBBBBB;
  color:#215DC6;
  font-family:Verdana;
  font-size:12px;
  align=center;
}
</style>
<script>
document.writeln("<div id='mydate' style='position:absolute; z-index:1; visibility: hidden; filter:\"progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#999999,strength=3)\"'></div>");
function showTable(InputBox)
{
var x,y;
var DivContent;
var o=InputBox;
//显示的位置
x=o.offsetLeft;
y=o.offsetTop;
while(o=o.offsetParent)
{
x+=o.offsetLeft;
y+=o.offsetTop;
}
document.all.mydate.style.left=x+2;
document.all.mydate.style.top=y+20;
document.all.mydate.style.visibility="visible";
//document.writeln("<div style='display:none' id='mydate'>");
DivContent="<iframe frameBorder=no  style ='position:absolute; left:0; z-index:-1; border-Style:none;width=100%; height=100%;'></iframe><table width=150 border='0' cellspacing='0' style='border:1px solid #0066FF; background-color:#EDF2FC;filter:\"progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#999999,strength=3)\"'>";
DivContent+="<tr>";
DivContent+="<td colspan='3' align='center'  style='border-bottom:1px solid #0066FF; background-color:#C7D8FA ;font-family:Verdana; font-size:12px'>";
DivContent+="<input type='button' name='minus' value=' - ' style='height:18'  onClick='minus()'> <input type='text' name='selectYear' size='4' value='' style='height=18'> <input type='button' name='add' value=' + ' style='height:18' onClick='add()'>";
DivContent+="</td>";
DivContent+="<td style='border-bottom:1px solid #0066FF; background-color:#C7D8FA; font-weight:bold; font-family:Wingdings 2,Wingdings,Webdings; font-size:16px; padding-top:2px; color:#4477FF; cursor:hand' align='center' title='关闭' onClick='javascript:divClose()'>";
DivContent+="S";
DivContent+="</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('01')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>1月</td>";
DivContent+="<td align='center' onClick=\"setYear('02')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>2月</td>";
DivContent+="<td align='center' onClick=\"setYear('03')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\"  onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>3月</td>";
DivContent+="<td align='center' onClick=\"setYear('04')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>4月</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('05')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>5月</td>";
DivContent+="<td align='center' onClick=\"setYear('06')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>6月</td>";
DivContent+="<td align='center' onClick=\"setYear('07')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>7月</td>";
DivContent+="<td align='center' onClick=\"setYear('08')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>8月</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('09')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>9月</td>";
DivContent+="<td align='center' onClick=\"setYear('10')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>10月</td>";
DivContent+="<td align='center' onClick=\"setYear('11')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>11月</td>";
DivContent+="<td align='center' onClick=\"setYear('12')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>12月</td>";
DivContent+="</tr>";
DivContent+="</table>";
//document.writeln("</div>");
document.all.mydate.innerHTML=DivContent;

var divId=document.getElementById("mydate");
divId.style.display="block";
init();
}
function show()
{
showTable();
var divId=document.getElementById("mydate");
divId.style.display="block";
init();
}
function init()
{
   var now = new Date();
   var nowYear = now.getYear();
   document.all.selectYear.value = nowYear;
}
function minus()
{
    var year = parseInt(document.all.selectYear.value)-1;
if(year<1900)
{
    alert("年份选择不合理");
return;
}
document.all.selectYear.value=year;
}
function add()
{
    var year = parseInt(document.all.selectYear.value)+1;
if(year>2100)
{
    alert("年份选择不合理");
return;
}
document.all.selectYear.value=year;
}
function divClose()
{
    document.getElementById("mydate").style.display="none";
}
function setYear(year)
{
    document.all.year.value=document.all.selectYear.value+year;
divClose();
}
</script>
<input type="text" size=12 name="year" value="选择月份" onClick="showTable(this)">


<select >
<option>fdfsdfsdf</option>
<option>fdsfsfsfsdfsdfsdfsfsfsdfsdfsdfs</option>
</select>[/html]

wumingxiaozu 发表于 2007-10-19 11:41

再次改善完整版本 呵呵 这个将更强!

[code]

<style type="text/css">
<!--
.month{
  cursor:hand;
  border-right:1px solid #BBBBBB;
  border-bottom:1px solid #BBBBBB;
  color:#215DC6;
  font-family:Verdana;
  font-size:12px;
  align=center;
}
</style>
<script>
document.writeln("<div id='mydate' style='position:absolute; z-index:1; visibility: hidden; filter:\"progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#999999,strength=3)\"'></div>");
function showTable(InputBox,InputBox1)
{
var x,y;
var DivContent;
var o=InputBox;
//显示的位置
x=o.offsetLeft;
y=o.offsetTop;
while(o=o.offsetParent)
{
x+=o.offsetLeft;
y+=o.offsetTop;
}
document.all.mydate.style.left=x+2;
document.all.mydate.style.top=y+20;
document.all.mydate.style.visibility="visible";
//document.writeln("<div style='display:none' id='mydate'>");
DivContent="<iframe frameBorder=no  style ='position:absolute; left:0; z-index:-1; border-Style:none;width=100%; height=100%;'></iframe><table width=150 border='0' cellspacing='0' style='border:1px solid #0066FF; background-color:#EDF2FC;filter:\"progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#999999,strength=3)\"'>";
DivContent+="<tr>";
DivContent+="<td colspan='3' align='center'  style='border-bottom:1px solid #0066FF; background-color:#C7D8FA ;font-family:Verdana; font-size:12px'>";
DivContent+="<input type='button' name='minus' value=' - ' style='height:18'  onClick='minus()'> <input type='text' name='selectYear' size='4' value='' style='height=18'> <input type='button' name='add' value=' + ' style='height:18' onClick='add()'>";
DivContent+="</td>";
DivContent+="<td style='border-bottom:1px solid #0066FF; background-color:#C7D8FA; font-weight:bold; font-family:Wingdings 2,Wingdings,Webdings; font-size:16px; padding-top:2px; color:#4477FF; cursor:hand' align='center' title='关闭' onClick='javascript:divClose()'>";
DivContent+="S";
DivContent+="</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('-01','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>1月</td>";
DivContent+="<td align='center' onClick=\"setYear('-02','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>2月</td>";
DivContent+="<td align='center' onClick=\"setYear('-03','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\"  onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>3月</td>";
DivContent+="<td align='center' onClick=\"setYear('-04','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>4月</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('-05','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>5月</td>";
DivContent+="<td align='center' onClick=\"setYear('-06','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>6月</td>";
DivContent+="<td align='center' onClick=\"setYear('-07','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>7月</td>";
DivContent+="<td align='center' onClick=\"setYear('-08','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>8月</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('-09','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>9月</td>";
DivContent+="<td align='center' onClick=\"setYear('-10','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>10月</td>";
DivContent+="<td align='center' onClick=\"setYear('-11','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>11月</td>";
DivContent+="<td align='center' onClick=\"setYear('-12','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>12月</td>";
DivContent+="</tr>";
DivContent+="</table>";
//document.writeln("</div>");
document.all.mydate.innerHTML=DivContent;
var divId=document.getElementById("mydate");
divId.style.display="block";
init();
}
function show()
{
showTable();
var divId=document.getElementById("mydate");
divId.style.display="block";
init();
}
function init()
{
   var now = new Date();
   var nowYear = now.getYear();
   document.all.selectYear.value = nowYear;
}
function minus()
{
    var year = parseInt(document.all.selectYear.value)-1;
if(year<1900)
{
    alert("年份选择不合理");
return;
}
document.all.selectYear.value=year;
}
function add()
{
    var year = parseInt(document.all.selectYear.value)+1;
if(year>2100)
{
    alert("年份选择不合理");
return;
}
document.all.selectYear.value=year;
}
function divClose()
{
    document.getElementById("mydate").style.display="none";
}
function setYear(year,a)
{
    //alert(a);
    document.all[a].value=document.all.selectYear.value+year;
divClose();
}
</script>
<input type="text" size=12 name="year1" value="选择月份" onClick="showTable(this,'year1')">
<input type="text" size=12 name="year" value="选择月份" onClick="showTable(this,'year')">
<br/>
<select >
<option>fdfsdfsdf</option>
<option>fdsfsfsfsdfsdfsdfsfsfsdfsdfsdfs</option>
</select>

[/code][html]<style type="text/css">
<!--
.month{
  cursor:hand;
  border-right:1px solid #BBBBBB;
  border-bottom:1px solid #BBBBBB;
  color:#215DC6;
  font-family:Verdana;
  font-size:12px;
  align=center;
}
</style>
<script>
document.writeln("<div id='mydate' style='position:absolute; z-index:1; visibility: hidden; filter:\"progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#999999,strength=3)\"'></div>");
function showTable(InputBox,InputBox1)
{
var x,y;
var DivContent;
var o=InputBox;
//显示的位置
x=o.offsetLeft;
y=o.offsetTop;
while(o=o.offsetParent)
{
x+=o.offsetLeft;
y+=o.offsetTop;
}
document.all.mydate.style.left=x+2;
document.all.mydate.style.top=y+20;
document.all.mydate.style.visibility="visible";
//document.writeln("<div style='display:none' id='mydate'>");
DivContent="<iframe frameBorder=no  style ='position:absolute; left:0; z-index:-1; border-Style:none;width=100%; height=100%;'></iframe><table width=150 border='0' cellspacing='0' style='border:1px solid #0066FF; background-color:#EDF2FC;filter:\"progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#999999,strength=3)\"'>";
DivContent+="<tr>";
DivContent+="<td colspan='3' align='center'  style='border-bottom:1px solid #0066FF; background-color:#C7D8FA ;font-family:Verdana; font-size:12px'>";
DivContent+="<input type='button' name='minus' value=' - ' style='height:18'  onClick='minus()'> <input type='text' name='selectYear' size='4' value='' style='height=18'> <input type='button' name='add' value=' + ' style='height:18' onClick='add()'>";
DivContent+="</td>";
DivContent+="<td style='border-bottom:1px solid #0066FF; background-color:#C7D8FA; font-weight:bold; font-family:Wingdings 2,Wingdings,Webdings; font-size:16px; padding-top:2px; color:#4477FF; cursor:hand' align='center' title='关闭' onClick='javascript:divClose()'>";
DivContent+="S";
DivContent+="</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('-01','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>1月</td>";
DivContent+="<td align='center' onClick=\"setYear('-02','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>2月</td>";
DivContent+="<td align='center' onClick=\"setYear('-03','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\"  onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>3月</td>";
DivContent+="<td align='center' onClick=\"setYear('-04','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>4月</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('-05','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>5月</td>";
DivContent+="<td align='center' onClick=\"setYear('-06','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\"  class='month'>6月</td>";
DivContent+="<td align='center' onClick=\"setYear('-07','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>7月</td>";
DivContent+="<td align='center' onClick=\"setYear('-08','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>8月</td>";
DivContent+="</tr>";
DivContent+="<tr>";
DivContent+="<td align='center' onClick=\"setYear('-09','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>9月</td>";
DivContent+="<td align='center' onClick=\"setYear('-10','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>10月</td>";
DivContent+="<td align='center' onClick=\"setYear('-11','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>11月</td>";
DivContent+="<td align='center' onClick=\"setYear('-12','" + InputBox1 + "')\" onmouseover=\"this.style.backgroundColor='#4A83E1'\" onmouseout=\"this.style.backgroundColor='#EDF2FC'\" class='month'>12月</td>";
DivContent+="</tr>";
DivContent+="</table>";
//document.writeln("</div>");
document.all.mydate.innerHTML=DivContent;
var divId=document.getElementById("mydate");
divId.style.display="block";
init();
}
function show()
{
showTable();
var divId=document.getElementById("mydate");
divId.style.display="block";
init();
}
function init()
{
   var now = new Date();
   var nowYear = now.getYear();
   document.all.selectYear.value = nowYear;
}
function minus()
{
    var year = parseInt(document.all.selectYear.value)-1;
if(year<1900)
{
    alert("年份选择不合理");
return;
}
document.all.selectYear.value=year;
}
function add()
{
    var year = parseInt(document.all.selectYear.value)+1;
if(year>2100)
{
    alert("年份选择不合理");
return;
}
document.all.selectYear.value=year;
}
function divClose()
{
    document.getElementById("mydate").style.display="none";
}
function setYear(year,a)
{
    //alert(a);
    document.all[a].value=document.all.selectYear.value+year;
divClose();
}
</script>
<input type="text" size=12 name="year1" value="选择月份" onClick="showTable(this,'year1')">
<input type="text" size=12 name="year" value="选择月份" onClick="showTable(this,'year')">


<select >
<option>fdfsdfsdf</option>
<option>fdsfsfsfsdfsdfsdfsfsfsdfsdfsdfs</option>
</select>[/html]

wish 发表于 2008-8-17 08:59

@,@..楼猪.重量级人物阿.?

cgofun 发表于 2008-8-22 13:59

一个个全都骑到老大头上来了... 我也来骑一下。  

aota699 发表于 2008-10-10 22:05

最新最准确的企业名录和全球通VIP数据

环球名录网您需要的名录都可以在这里找到

提供每月更新的注册企业名录,老板手机号码,各地的车主名录, 最新电视购物数据,内部通讯录
全国各地全球通数据,联通数据,最新股民资料,银行大客户资料,移动vip, 业主名录资料,企业黄页,航空数据,公司名单, 阿里公司库数据,传真号码等名录号码资源。
产品质量非常高,可以把目标客户定位得非常精准,是精准营销的利器;可以助你轻松业绩飙升!

参考网站:[url=http://www.hq818.cn]http://www.hq818.cn[/url] qq:178533126

chenrongdianlu 发表于 2008-12-8 20:16

春宵一刻值千全

春宵一刻值千全

某甲娶妻,大喜之日,贺客盈门,晚间闹房,诸客皆以新娘能
诗,必欲一聆听。新娘害羞,不肯吟诗,众客人不散。适至夜阑更深,
新娘无奈,只得轻咳一声,展开樱桃口,朗诵一绝句:“谢天谢地谢
诸君,我本无才哪会吟?曾记诗一句,‘春宵一刻值千金’。”众
客轰然而散。

[url=http://www.jihan.sh.cn]上海网站建设[/url]
[url=http://www.jihan.sh.cn]上海网站设计[/url]
[url=http://www.jihan.sh.cn]上海网站优化[/url]
[url=http://www.jihan.sh.cn/google.html]google左侧优化[/url]

opqr235 发表于 2009-2-24 06:06

楼主说得非常不错。我支持你!

献上几句诗给大家读读:
疏影横斜水清浅,暗香浮动月黄昏
天莲叶无穷碧,映日荷花别样红
山外青山楼外楼/西湖歌舞几时休/暖风薰得游人醉/直把杭州作汴州
仲夏夜之梦 垂柳依依 西湖暖风醉游人
山外青山楼外楼,西湖歌舞几时休
水光潋艳晴偏好,山色空蒙雨亦奇
船头研鲜细缕缕,船尾炊玉香浮浮
映山黄帽璃头肪,夹道青烟雀尾炉
[url=http://www.mmogcart.com]wow gold[/url]
[url=http://www.wowtot.com]wow gold[/url]
[url=http://www.wowpoweron.com]wow gold[/url]
[url=http://www.ready4game.com]wow gold[/url]
[url=http://www.wowtot.com]wow power leveling[/url]

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.