0
ホバーイベントにカレンダーのテキスト、簡単なメッセージを追加するにはどうすればいいですか?ここでAsp.netカレンダー - 日のホバーでのテキスト
ホバーイベントにカレンダーのテキスト、簡単なメッセージを追加するにはどうすればいいですか?ここでAsp.netカレンダー - 日のホバーでのテキスト
ASP.NET Calendar
(onmouseover-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を使用することができます。