Warning: fopen(temp_ip/count/38.107.191.87): failed to open stream: No space left on device in /home/httpd/vhosts/432.tw/httpdocs/banip.php on line 10
//==========================================================================================================
//PC home Online 網路家庭的文字、圖片、資料、商標、標識、及網頁設計等皆受中華民國相關智慧財產權法令的保護。
//嚴禁任何未經事先同意的非法轉載和使用。若經查知,PC home Online 網路家庭將採取必要之法律行動
//==========================================================================================================
var SNSPush2Class = {
SNSet: [{Id:'facebook', Icon:'/img/snspush/icon0.png', Title:'貼到 Facebook'}, {Id:'plurk', Icon:'/img/snspush/icon1.png', Title:'噗到 Plurk'}, {Id:'twitter', Icon:'/img/snspush/icon2.png', Title:'推到 twitter'}],
Timer: 3000,//micro second
TitleSet: '分享',
BlockW: 8,
getOW: '',
getSNSPush: '',
getEW: '',
TimerIntervalID: '',
//method
trim: function (str) {
return str.replace(/^\s*|\s*$/g,"");
},
getPosition: function(theElement) {
var positionX = 0;
var positionY = 0;
while (theElement != null) {
positionX += theElement.offsetLeft;
positionY += theElement.offsetTop;
theElement = theElement.offsetParent;
}
return [positionX, positionY];
},
EWAction: function() {
clearTimeout(this.TimerIntervalID);
if (parseInt(this.getEW.style.left) < 0) {
var getPos = this.getPosition(this.getSNSPush);
this.getEW.style.left = getPos[0] + this.getSNSPush.offsetWidth - this.getEW.offsetWidth + 'px';
this.getEW.style.top = getPos[1] + this.getSNSPush.offsetHeight + 'px';
this.TimerIntervalID = setTimeout('SNSPush2Class.EWAction()', this.Timer);
} else {
this.getEW.style.left = '-1000px';
this.getEW.style.top = '0px';
}//end if
},
ClickAction: function(Type) {
if (this.getOW && !this.getOW.closed) this.getOW.close();
switch (Type) {
case 'facebook':
this.getOW = window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title), 'WinSNSPush', 'toolbar=0,status=0,width=650,height=420', false);
break;
case 'plurk':
//window.open('http://www.plurk.com/?qualifier=shares&status='.concat('ent.msn.com.tw/images/poster/1090/MS000000109009090118211101.jpg').concat(' ').concat(encodeURIComponent(location.href)).concat(' ').concat('(').concat(encodeURIComponent(document.title)).concat(')'), 'WinSNSPush');
this.getOW = window.open('http://www.plurk.com/?qualifier=shares&status='.concat(encodeURIComponent(location.href).concat(' ').concat('(').concat(encodeURIComponent(document.title)).concat(')')), 'WinSNSPush', 'scrollbars=yes,toolbar=yes,status=0,width=650,height=420', false);
break;
case 'twitter':
this.getOW = window.open('http://twitter.com/home/?status='.concat(encodeURIComponent(document.title)).concat(' ').concat(encodeURIComponent(location.href)), 'WinSNSPush', 'scrollbars=yes,toolbar=0,status=0,width=650,height=420', false);
break;
}//end switch
},
Constructor: function() {
if (!document.getElementById('SNSPushSection')) return;
var SNSPush = document.getElementById('SNSPushSection');
SNSPush.className = 'SNSPushContainerV3';
this.getSNSPush = SNSPush;
//SNSExpandWin
var SNSExpandWin = document.createElement('div');
SNSExpandWin.className = 'SNSPushExpandV3';
SNSExpandWin.style.left = '-1000px';
SNSExpandWin.onmouseover = function() { clearTimeout(SNSPush2Class.TimerIntervalID); };
SNSExpandWin.onmouseout = function() {
clearTimeout(SNSPush2Class.TimerIntervalID);
SNSPush2Class.TimerIntervalID = setTimeout('SNSPush2Class.EWAction()', SNSPush2Class.Timer);
};
document.getElementsByTagName('body')[0].appendChild(SNSExpandWin);
this.getEW = SNSExpandWin;
var Pattern = /DataSet\[(.*)\]/;
for (var i=0; i