如何使用javascript将Calendar控件从后向前引导 [英] How to bring Calendar control from back to front using javascript

查看:66
本文介绍了如何使用javascript将Calendar控件从后向前引导的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有

请帮帮我

即时通讯使用表格中的压缩控件

只是我贴这里的问题,

问题是,当我点击压延按钮时,压光机同时打开背面形状组件也可以在前面看到我怎么能直接这个呢?我改变了z-index也没用?


[HTML]< TABLE border =" 1" BORDERCOLOR ="#DDDFE7" bgcolor ="#565656" cellPadding = 0 cellSpacing =" 1" id = calendar style =" DISPLAY:none;位置:绝对的;的z-index:4;" >

< TBODY>

< TR>


< TD Align =" left" colspan =" 7">

<! - 月组合框 - >

< SELECT id = month class = sbox onchange = newCalendar() >

< SCRIPT语言= JavaScript>

//在文档中输出月份。

//选择当月。

for(var intLoop = 0; intLoop< months.length; intLoop ++)

document.write("< OPTION&qu​​ot; +(today.month == intLoop?" Selected" ;:"")+">" + months [intLoop]);

< / SCRIPT>

< / SELECT>


<! - 年份组合框 - >

< SELECT id = year class = sbox onchange = newCalendar()>

< SCRIPT语言= JavaScript>

//在文档中输出年份。

//选择当前年份。

for(var intLoop = 1900; intLoop< 2028; intLoop ++)

document.write("< OPTION&qu​​ot; +(today.year == intLoop?" Selected": "")+">" + intLoop);

< / SCRIPT>

< / SELECT>



< / TD>

< / TR>

< TR class = days align = "中心" >

<! - 为每一天生成列。 - >

< SCRIPT语言= JavaScript>

//输出天数。

for(var intLoop = 0; intLoop< days.length; intLoop ++)

document.write("< TD>" + days [intLoop] +"< / TD>");

< / SCRIPT>

< / TR>


< TBODY class = dates id = dayList onclick =" getDate( '' '')" Align = center>

<! - 为个别日子生成网格。 - >

< SCRIPT语言= JavaScript>

for(var intWeeks = 0; intWeeks< 6; intWeeks ++)

{

document.write("< TR>");

for(var intDays = 0; intDays< days.length; intDays ++)

document.write("< TD>< / TD>");

document.write("< / TR>");

}

< / SCRIPT>


<! - 今天生成。 - >< / TBODY>

< TBODY>

< TR>

< TD class = today colSpan = 5 id = todayday onclick = getTodayDay()>< / TD>

< TD align = right colSpan = 2>< A href =" javascript : HideCalendar();">< SPAN class =" content">< B>

隐藏< / B>< / SPAN>< / A>< / TD> ;

< / TR>

< / TBODY>

< / table> [/ HTML]



hi dear all
please help me
im using the calander control from a form
just i paste here the problem,
the problem is when i click the calander button the calander is opening at the same time backside form component also visible in front side how can i rectfiy this one? i changed the z-index also but no use?

[HTML]<TABLE border="1" bordercolor="#DDDFE7" bgcolor="#565656"cellPadding=0 cellSpacing="1" id=calendar style="DISPLAY:none; POSITION:absolute; z-index:4;" >
<TBODY>
<TR>

<TD Align="left" colspan="7">
<!-- Month combo box -->
<SELECT id=month class=sbox onchange=newCalendar()>
<SCRIPT language=JavaScript>
// Output months into the document.
// Select current month.
for (var intLoop = 0; intLoop < months.length; intLoop++)
document.write("<OPTION " + (today.month == intLoop ? "Selected" : "") + ">" + months[intLoop]);
</SCRIPT>
</SELECT>

<!-- Year combo box -->
<SELECT id=year class=sbox onchange=newCalendar()>
<SCRIPT language=JavaScript>
// Output years into the document.
// Select current year.
for (var intLoop = 1900; intLoop < 2028; intLoop++)
document.write("<OPTION " + (today.year == intLoop ? "Selected" : "") + ">" + intLoop);
</SCRIPT>
</SELECT>


</TD>
</TR>
<TR class=days align="center" >
<!-- Generate column for each day. -->
<SCRIPT language=JavaScript>
// Output days.
for (var intLoop = 0; intLoop < days.length; intLoop++)
document.write("<TD>" + days[intLoop] + "</TD>");
</SCRIPT>
</TR>


<TBODY class=dates id=dayList onclick="getDate('''')" Align=center >
<!-- Generate grid for individual days. -->
<SCRIPT language=JavaScript>
for (var intWeeks = 0; intWeeks < 6; intWeeks++)
{
document.write("<TR>");
for (var intDays = 0; intDays < days.length; intDays++)
document.write("<TD></TD>");
document.write("</TR>");
}
</SCRIPT>

<!-- Generate today day. --></TBODY>
<TBODY>
<TR >
<TD class=today colSpan=5 id=todayday onclick=getTodayDay()></TD>
<TD align=right colSpan=2><A href="javascript:HideCalendar();"><SPAN class="content"><B>
Hide</B></SPAN></A></TD>
</TR>
</TBODY>
</table>[/HTML]

附加图像
prob.jpg (38.7 KB,381 views)
Attached Images
prob.jpg (38.7 KB, 381 views)

推荐答案

欢迎来到TSDN。


不要做双重帖子。

并尝试遵循帖子指南当你发帖。


亲切问候,

Dmjpro。
Welcome to TSDN.

Don''t do double Post.
And try to follow the Post Guidelines while you do Post.

Kind regards,
Dmjpro.



欢迎来到TSDN。


不要做双重帖子。

并在发帖时尝试遵循帖子指南。


亲切的问候,

Dmjpro。
Welcome to TSDN.

Don''t do double Post.
And try to follow the Post Guidelines while you do Post.

Kind regards,
Dmjpro.



ok谢谢你的建议

ok thanks for ur advise



ok谢谢你的建议
ok thanks for ur advise



你最好在这里使用 DIV 而不是表格。

尝试这个,看看会发生什么。 />

亲切的问候,

Dmjpro。

You better to use DIV instead of table here.
Try this one and see what happens.

Kind regards,
Dmjpro.


这篇关于如何使用javascript将Calendar控件从后向前引导的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆