css|js| link | Mouse hyperlink, the general practice is to give a title property, so that the user's mouse hover over the hyperlink, it will show the title of the content. But are you tired of the same mouse hover effect?
Of course, there are also very cool code, but only across the browser Kungfu is not enough, hehe. I met a good css, in IE and Firefox browsing the same effect.
The actual effect you can refer to: Campus Recruitment catch (
http://www.xyzp.net/)、
http://www.xyzp.net/index.html
The code is as follows:
/*************************************************************************
Dw_viewport.js
Version Date Nov 2003
This code was from Dynamic Web coding
At http://www.dyn-web.com/
Copyright 2003 by Sharon Paine
Terms of Use at http://www.dyn-web.com/bus/terms.html
Regarding conditions under which you with this code.
This notice must is retained in the code as is!
/*************************************************************************
Dw_event.js (version date Feb 2004)
This code is from Dynamic Web coding at http://www.dyn-web.com/
Terms of Use at http://www.dyn-web.com/bus/terms.html
Regarding conditions under which you with this code.
This notice must is retained in the code as is!
*************************************************************************/
var dw_event = {
Add:function (obj, etype, FP, cap) {
Cap = Cap | | False
if (Obj.addeventlistener) Obj.addeventlistener (etype, FP, CAP);
else if (obj.attachevent) obj.attachevent ("on" + etype, FP);
},
Remove:function (obj, etype, FP, cap) {
Cap = Cap | | False
if (Obj.removeeventlistener) Obj.removeeventlistener (etype, FP, CAP);
else if (obj.detachevent) obj.detachevent ("on" + etype, FP);
},
if (!e.preventdefault) E.preventdefault = function () {return false;}
if (!e.stoppropagation) e.stoppropagation = function ()
{if (window.event) window.event.cancelBubble = true;}
return e;
}
}
/*************************************************************************
Dw_tooltip.js Requires:dw_event.js and Dw_viewport.js
Version Date:march 14, 2005
(minor changes in position algorithm and timer mechanism)
This code is from Dynamic Web coding at dyn-web.com
Copyright 2003-5 by Sharon Paine
Terms of Use at www.dyn-web.com/bus/terms.html
Regarding conditions under which you with this code.
This notice must is retained in the code as is!
*************************************************************************/
Positiontip:function (e) {
if (This.tip && this.tip.style) {
Put e.pagex/y first! (For Safari)
var x = E.pagex? E.pagex:e.clientx + viewport.scrollx;
var y = e.pagey? E.pagey:e.clienty + viewport.scrolly;
if (x + this.tip.offsetWidth + this.offx > viewport.width + viewport.scrollx) {
x = X-THIS.TIP.OFFSETWIDTH-THIS.OFFX;
if (x < 0) x = 0;
else x = x + this.offx;
if (y + this.tip.offsetHeight + this.offy > viewport.height + viewport.scrolly) {
y = Y-this.tip.offsetheight-this.offy;
if (Y < viewport.scrolly) y = viewport.height + viewport.scrolly-this.tip.offsetheight;
else y = y + this.offy;
This.tip.style.left = x + "px"; This.tip.style.top = y + "px";
}
},
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.