/*!
* jQuery Text Overflow v0.7
*
* Licensed under the new BSD License.
* Copyright 2009-2010, Bram Stein
* All rights reserved.
*/
/*global jQuery, document, setInterval*/
(function ($) {
var style = document.documentElement.style,
hasTextOverflow = ('textOverflow' in style || 'OTextOverflow' in style),
domSplit = function (root, maxIndex) {
var index = 0, result = [],
domSplitAux = function (nodes) {
var i = 0, tmp;
if (index > maxIndex) {
return;
}
for (i = 0; i < nodes.length; i += 1) {
if (nodes[i].nodeType === 1) {
tmp = nodes[i].cloneNode(false);
result[result.length - 1].appendChild(tmp);
result.push(tmp);
domSplitAux(nodes[i].childNodes);
result.pop();
} else if (nodes[i].nodeType === 3) {
if (index + nodes[i].length < maxIndex) {
result[result.length - 1].appendChild(nodes[i].cloneNode(false));
} else {
tmp = nodes[i].cloneNode(false);
tmp.textContent = $.trim(tmp.textContent.substring(0, maxIndex - index));
result[result.length - 1].appendChild(tmp);
}
index += nodes[i].length;
} else {
result.appendChild(nodes[i].cloneNode(false));
}
}
};
result.push(root.cloneNode(false));
domSplitAux(root.childNodes);
return $(result.pop().childNodes);
};
$.extend($.fn, {
textOverflow: function (str, autoUpdate) {
var more = str || '…';
if (!hasTextOverflow) {
return this.each(function () {
var element = $(this),
// the clone element we modify to measure the width
clone = element.clone(),
// we save a copy so we can restore it if necessary
originalElement = element.clone(),
originalText = element.text(),
originalWidth = element.width(),
low = 0, mid = 0,
high = originalText.length,
reflow = function () {
if (originalWidth !== element.width()) {
element.replaceWith(originalElement);
element = originalElement;
originalElement = element.clone();
element.textOverflow(str, false);
originalWidth = element.width();
}
};
element.after(clone.hide().css({
'position': 'absolute',
'width': 'auto',
'overflow': 'visible',
'max-width': 'inherit'
}));
if (clone.width() > originalWidth) {
while (low < high) {
mid = Math.floor(low + ((high - low) / 2));
clone.empty().append(domSplit(originalElement.get(0), mid)).append(more);
if (clone.width() < originalWidth) {
low = mid + 1;
} else {
high = mid;
}
}
if (low < originalText.length) {
element.empty().append(domSplit(originalElement.get(0), low - 1)).append(more);
}
}
clone.remove();
if (autoUpdate) {
setInterval(reflow, 200);
}
});
} else {
return this;
}
}
});
})(jQuery);
lud20120210144509
人気無修正: カリビアンコム EroxJapanZ 米国性動画通信 一本道 X-GALLERY 稼ぐ ポップアップ・IFRAME HGMO JGIRL PARADISE Japanese Pee Ex エロイカ 投稿大魔王 ドラムカン URAMOVIE.COM LA XTACY 抜天市場 DXLIVE JOB DXLIVE ネットコミック 文庫ドラムカン エロアニメTV EXSHOT JOB EXSHOT ジャパビューティー エロスプラネット Girls21Plus くり~むれもん のぞきザムライ カリビアンコムgirl カリビアンコムgirl JOB アキバ本舗 マニアックマックス1 エッチな4610 アクアリウムTV ASIAN ANGEL JPNANPA.com DTIブログ エッチな0930 カリビアンコムプレミアム 天然むすめ JPE アンコール 合同企画ドットコム このメス豚がぁぁぁ!! 人妻斬り 制服の裏地 パコパコママ 素人党 オリエンタルムービー コスプレ1000人斬り 問答無用 3D-EROS.NET Club EX JOB Club EXSHOT Hey動画 JPBOYS SakuraLive(英語サイト) 金髪天国 ガチん娘 モンロー JOB モンロー 女体のしんぴ 「ムラムラって…」 エッチな0230 AV体験
画像:投稿画像>20枚 >30枚 >40枚 >50 >75 >100 >125 >150 >175 >200 >250 >300 >350 >400 >500 >700 >1000枚 >10枚 新着画像
時間:HEADLINE <2日 <3日 <1週間 <2週間 <1カ月 <3カ月 <半年 <1年 <2年 <3年 <4年 >5年 落ちたスレ PINK-HEADLINE
レス:>800 >500 >300 >100 || 画像スレ 掲示板へ 掲示板一覧
人気画像、投稿動画あり、Yourfilehost動画あり、投稿画像あり、>10枚、>15枚、>20枚、>30枚、>40枚、>50枚、>70枚、2ch log
各時間帯の人気検索:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
in 0.046215057373047 sec
@184