Do you use jQuery for making a site come alive?
Last updated by Tiago Araújo [SSW] almost 2 years ago.See historyTo please customers every business knows they need to keep their services and offerings fresh and up-to-date. The same is true for websites. In order to attract new traffic, we should make the website vivid.
$("p").hover(function () {
$(this).css({ "background-color":"yellow", "font-weight":"bolder" }); },
function () {
var cssObj = { "background-color": "#ddd",
"font-weight": "",
color: "rgb(0,40,244)"
}
$(this).css(cssObj);
});
Figure: Mouse hover code sample
Love it
0
Agree
0
Disagree
0
No way
0