日历

WBOY
Release: 2016-06-20 12:44:52
Original
961 people have browsed it

从后台读取数据 2015-11-6 XXXX活动
当鼠标移到日历 2015-11-6 时,出现一个方框。方框内容显示XXX活动,这个JS我不知道如何去写


回复讨论(解决方案)

最简单的就是指定容器的 title 属性,无需编程

最简单的就是指定容器的 title 属性,无需编程



这个title要加在哪,我加在没用

$('日期元素').mouseover(function(){   if($(this).html() == 后台数据日期){       //创建一个div,写入XXX活动,position:absolute;然后整个日历position:relative;并调整div的位置在$(this)的附近    }}).mouseout(function(){      //让创建的活动的div,display:none;});
Copy after login

<table><tr><td title=A>1</td><td title=B>2</td><td title=C>3</td></tr></table>
Copy after login
Copy after login

<table><tr><td title=A>1</td><td title=B>2</td><td title=C>3</td></tr></table>
Copy after login
Copy after login




我想问一下,弹出来的那个框,样式可以改吗??

用title属性的改不了,想要能写样式那就模拟一个框出来吧。具体可以搜一下。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!