[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 701- 801- 901- 1001- 2chのread.cgiへ]
Update time : 05/27 10:02 / Filesize : 204 KB / Number-of Response : 1002
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

【円光】YourFileHost【炉利】



648 名前:469 mailto:sage [2006/12/09(土) 13:31:24 ID:???0]
>>469のFLURL用スクリプトを作り直したからよかったら使ってくれ。
<html><head><title>FLURL</title><script language="javascript"><!--
function showPage(str){
lines = str.split("\n");
regex = /.*FLURL-dot-com-([0-9a-zA-Z]+)_(\w+)\.\w+/;
if(!lines[0].match(regex)){
alert("1行目にFLURL動画ファイルへのURLを入力してね");
return;
}
pageURL = "www.flurl.com/item/" + RegExp.$2 + "_u_" + RegExp.$1 + "_original";
window.open(pageURL,"_blank");
}
function showLink(str){
lines = str.split("\n");
source = ['<html><body style="font-size: 12;">'];
for(i = 0; i < lines.length; i++){
if(lines[i].length == 0){continue;}
regex = /[  \t]*(h?ttp:\/\/\S+)[  \t]?/;
if(lines[i].match(regex)){
url = (RegExp.$1.charAt() != "h") ? ("h" + RegExp.$1) : RegExp.$1;
source.push(url.link(url));
source.push("<br>");
}
}
if(source.length > 1){
source.push("</body></html>");
linkWin = window.open("","","width=700,height=200,status=yes,resizable=yes,scrollbars=yes");
linkWin.document.write(source.join(""));
linkWin.document.close();
}
}
function replace(form){
str = form.urlLines.value;
regex = form.regex.value;
replacement = form.replacement.value;
if ((str.length == 0) || (regex.length == 0)){return;}
source = new Array();
while(str.match(regex)){
source.push(RegExp.leftContext);
source.push(replacement);
str = RegExp.rightContext;
}
source.push(str);
form.urlLines.value = source.join("");
} //-->
</script></head><body><form><table>
<tr><td>regex: <input type="text" size="30" name="regex" style="width:200px;" onfocus="this.select()">
</td><td>replacement: <input type="text" size="30" name="replacement" style="width:200px;" onfocus="this.select()">
</td><td align="left"><input type="button" value="replace" onClick="replace(this.form)"></td></tr><tr><td colspan="3">
<textarea name="urlLines" cols="120" rows="10" style="font-size: 12; width:700px;"></textarea>
</td></tr><tr><td td colspan="3" align="left">
<input type="button" value="show" onClick="showPage(this.form.urlLines.value)">
 <input type="button" value="link" onClick="showLink(this.form.urlLines.value)">
 <input type="button" value="clear" onClick="this.form.urlLines.value=''">
</td></tr></table></form></body></html>






[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧]( ´∀`)<204KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef