2012-03-07 6 views

答えて

1

ASP.NET Calendaronmouseover-style込み)をスタイリングのためのいくつかのヒントは、hereを発見された:

Protected Sub Calendar1_DayRender(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DayRenderEventArgs) Handles Calendar1.DayRender 
Dim onmouseoverStyle As String = "this.style.backgroundColor='#D4EDFF'" 
Dim onmouseoutStyle As String = "this.style.backgroundColor='@BackColor'" 
Dim rowBackColor As String = String.Empty 

e.Cell.Attributes.Add("onmouseover", onmouseoverStyle) 
e.Cell.Attributes.Add("onmouseout", onmouseoutStyle.Replace("@BackColor", rowBackColor)) 

If Not e.Day.IsWeekend Then 
    e.Cell.Attributes.Add("onmouseover", onmouseoverStyle) 
    e.Cell.Attributes.Add("onmouseout", onmouseoutStyle.Replace("@BackColor", rowBackColor)) 
End If 

あなたは、たとえば、ツールチップonmouseoverを表示するjQueryを使用することができます。

http://flowplayer.org/tools/tooltip/index.html

関連する問題