-2
我需要一個一個如下圖所示按鈕像this example引導嘰嘰喳喳像後續按鈕
我本來應該在Java腳本寫?
$('.following').hover(function(){
$(this).text("Unfollow");
},function(){
$(this).text("Following");
});
//for toggle the class following/follow When click
$('.following').click(function(){
$(this).toggleClass('following follow').unbind("hover");
if($(this).is('.follow')){
$(this).text("Follow");
}
else{
//binding mouse hover functionality
$(this).bind({
mouseleave:function(){$(this).text("Following");},
mouseenter:function(){$(this).text("Unfollow");}
});
}
});
什麼樣的變化需要引導按鈕?
我想用bootstap clasess – Clear
以及你給的鏈接有一個教程。那是行不通的? – Bobo
http://www.techumber.com/2012/10/create-twitter-like-follow-and-unfollow.html – Clear