/    Sign up×
Community /Pin to ProfileBookmark

Event tooltip problem

[url]http://testingbar.atspace.com/index2.htm[/url]

If you click on 20st January, an event will show up to the right. If you click on today’s date, it will say that there is no activity today. If today’s date is the same as an activity, the date color will turn from yellow to red. All this is fine.

But when today’s date is the same as the activity date (20st January, the color turns red) and I click on it, it will say that there is no activity today, even though it is. When I click on the red date I want it to tell about the activity that day.

Any solution?

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 16.2010 — Not seeing any dates turn red ?
Copy linkTweet thisAlerts:
@groobelarauthorJan 16.2010 — If you change your computer time so it is 20st January, or 25st January, you should be able to notice it.
Copy linkTweet thisAlerts:
@FangJan 16.2010 — Add the keyword [I]this[/I]: //add this if statement to check and see if it is an event today
if (checkevents(daycounter,monthNum,yearNum,i,x))
{
// if true make the bgcolor what ever color you like other than green or yellow
calendarString += '<td align="center" bgcolor="#ffbbbb" height="30" width="40"><a href="javascript:showevents([COLOR="Blue"]this,[/COLOR]' + daycounter + ',' + monthNum + ',' + yearNum + ',' + i + ',' + x + ')">' + daycounter + '</a></td>';
}
else
{
calendarString += '<td align="center" bgcolor="#AAFFAA" height="30" width="40"><a href="javascript:showevents([COLOR="Blue"]this,[/COLOR]' + daycounter + ',' + monthNum + ',' + yearNum + ',' + i + ',' + x + ')">' + daycounter + '</a></td>';
} }
Point out the error to whoever wrote the script
Copy linkTweet thisAlerts:
@groobelarauthorJan 16.2010 — Thank you very much, I certainly will.

Your help is much appreciated!

Just another small question: How come that when I want to see the event of today's date, I have to click on the actual number? Compared to when I click on a yellow date, I can click on the whole yellow "box".

Would like to be able to click on the color box for today's date too, not just the number.
Copy linkTweet thisAlerts:
@FangJan 16.2010 — #evtcal a {display:block;}
or change this line:else calendarString += '<td align="center" bgcolor="#FFFFC8" height="30" width="40"><a href="javascript:showevents(this,' + daycounter + ',' + monthNum + ',' + yearNum + ',' + i + ',' + x + ');" >' + daycounter + '</a></td>';
Copy linkTweet thisAlerts:
@groobelarauthorJan 16.2010 — Wow, thank you! You are great! :eek:

Is it possible to click on all the green box? When I click on the number now (or to the right/left of it), I also see a dotted line around it.
×

Success!

Help @groobelar spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...