My favorites
▼
|
Sign in
fullcalendar
ISSUE TRACKER HAS MOVED. DO NOT USE THIS (more info)
Project Home
Issues
Export to GitHub
New issue
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
73
attachment: tooltip-on+mouseover.txt
(1.1 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$(document).ready(function() {
var d = new Date();
var y = d.getFullYear();
var m = d.getMonth();
$('#calendar').fullCalendar({
draggable: false,
showTime: false,
events: [
{
id: 1,
title: "New Event",
start: "2009-08-14 00:00:00",
end: "2009-08-17 00:00:00",
tooltip: "<p id='tooltip'><strong>New Event Addition</strong><br/>Here's my event description.<br/><br/>Aug 14, 2009 - Aug 17, 2009</p>"
},
{
id: 2,
title: "Another Event",
start: "2009-08-20 13:00:00",
end: "2009-08-20 16:00:00",
tooltip: "<p id='tooltip'><strong>Another Event Addition</strong><br/>Here's my event description.<br/><br/>Aug 20, 2009<br/>1:00 pm - 4:00 pm</p>"
}
],
eventMouseover: function(calEvent,jsEvent) {
xOffset = 10;
yOffset = 30;
$("body").append(calEvent.tooltip);
$("#tooltip")
.css("top",(jsEvent.clientY - xOffset) + "px")
.css("left",(jsEvent.clientX + yOffset) + "px")
.fadeIn("fast");
},
eventMouseout: function(calEvent,jsEvent) {
$("#tooltip").remove();
}
});
});
Powered by
Google Project Hosting