訪客留言 (47)
|
|
kwabe 於 2010-05-02 10:24 PM 發表:
c0mm3nt f0r 家姐
|
|
kwabe 於 2010-04-23 07:12 AM 發表:
c0mm3nt
|
|
kwabe 於 2010-04-21 08:44 PM 發表:
c0mm3nt!
|
|
LAMTAKCHUN 於 2010-04-17 03:27 PM 發表:
回BLOG同主頁
c0mm3n7回
c0mm3n7回 c0mm3n7回 c0mm3n7回
c0mm3n7回 c0mm3n7回 c0mm3n7回 c0mm3n7回 c0mm3n7回 |
|
kwabe 於 2010-04-13 12:15 AM 發表:
c0mm3nt
|
|
LAMTAKCHUN 於 2010-04-09 12:57 PM 發表:
C
0
M
M
E
N
T
要回
$(function() {
$("#sharing2 .share").hover(function() {
$(this).addClass("on");
},function(){
$(this).removeClass("on");
});
$("#sharing2 .share .facebook").hover(function() {
$(this).addClass("on");
},function(){
$(this).removeClass("on");
});
$("#sharing2 .share .email").hover(function() {
$(this).addClass("on");
},function(){
$(this).removeClass("on");
});
$("#sharing2 .add_to_playlist").hover(function() {
$(this).addClass("on");
},function(){
$(this).removeClass("on");
});
$("#sharing2 .add_to_playlist").click(function() {
if (!logged_in) prompt_login();
});
$("#sharing2 .add_buzz").click( function () {
alert('buzz');
});
$("#sharing2 .share .facebook").click( function () {
facebook(location.href, sharing_title);
return false;
});
$("#sharing2 .share .email").click( function () {
email_to_friend(video_id);
return false;
});
$("#sharing2 a.favourite_it_now").click(function(){
if (!logged_in) prompt_login();
else {
var m = $(this).siblings(".message");
$.ajax({
url: "/wsapi/ws_vdo_rating.php",
data: {
'video_id': $(this).attr('video_id'),
'action': 'add',
'user_login': user_login
},
success: function(d){
d = jQuery.trim(d);
if (d == "1") show_message_for(3, m, "成功推介");
else if (d == "2") show_message_for(3, m, "已成功推介");
},
dataType: "text",
cache: false
});
}
});
function facebook(link, title) {
if (!logged_in) prompt_login();
//else window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(link)+'&t='+encodeURIComponent(title),'sharer','toolbar=0,status=0,width=626,height=436');
else window.open('/wsapi/facebook_share.php?u='+encodeURIComponent(link)+'&t='+encodeURIComponent(title),'sharer','toolbar=0,status=0,width=626,height=436');
}
function email_to_friend(video_id) {
if (!logged_in) prompt_login();
else window.open('/wsapi/share.php?video_id=' + video_id, 'email_to_friend', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=626,height=436');
}
function show_message_for(seconds, target, message) {
target.html(message).fadeIn("slow", function() {
setTimeout(function() { target.fadeOut("slow"); }, seconds*1000);
});
}
});
|
|
kwabe 於 2010-04-05 12:59 AM 發表:
cm`
TO Y!nG`
|
|
emilyay0925 於 2010-04-04 12:45 AM 發表:
永爰妳`
by'小金`
|
|
chichiu314 於 2010-04-01 11:53 PM 發表:
`c0mm3nT;)
愚人節快樂:)
生日快樂:) |
|
kwabe 於 2010-03-13 07:04 PM 發表:
CM 要回` |
[ 發表留言 ]