チャットネーム整形ツール

本番

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<meta http-equiv="content-language" content="ja,jp-ja"/>
<meta charset="UTF-8"/>
<title>チャット名前整形</title>
<script type="text/javascript" src="http://ja.scp-wiki.net/scpmetatitlesearch/code/4"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded",function(){
var chatV = document.getElementById("chat");
try{
var name = location.href.split("#")[1];
var height = name.split(";")[1];
name = decodeURIExtension(name.split("#")[0]).split(" ").join("_");
chatV.src = "http://cgiirc.synirc.net/irc.cgi?chan=%23site8181,%23scp-jp;nick="+name;
if(height.length <= 0){
height = "600";
}
if(isNaN(Number(height)) ){
height = "600";
}
chatV.height = height+"px";
}catch(e){
chatV.src = "http://cgiirc.synirc.net/irc.cgi?chan=%23site8181,%23scp-jp"
chatV.height = "600px";
}
 
});
</script>
</head>
<body>
<div style="width:100%;" id="set">
<iframe src="http://cgiirc.synirc.net/irc.cgi?chan=%23site8181,%23scp-jp" id="chat" scrolling="no" frameborder="0" width="100%" height="600px"></iframe>
</div>
</body>
</html>

テスト

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<meta http-equiv="content-language" content="ja,jp-ja"/>
<meta charset="UTF-8"/>
<title>チャット名前整形</title>
<script type="text/javascript" src="http://ja.scp-wiki.net/scpmetatitlesearch/code/4"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded",function(){
var chatV = document.getElementById("chat");
try{
var name = location.href.split("#")[1];
var height = name.split(";")[1];
name = decodeURIExtension(name.split("#")[0]).split(" ").join("_");
chatV.src = "http://cgiirc.synirc.net/irc.cgi?chan=%23site8181,%23scp-jp;nick="+name;
if(height.length <= 0){
height = "600";
}
if(isNaN(Number(height)) ){
height = "600";
}
chatV.height = height+"px";
}catch(e){
chatV.src = "http://cgiirc.synirc.net/irc.cgi?chan=%23site8181,%23scp-jp"
chatV.height = "600px";
}
 
});
</script>
</head>
<body>
<div style="width:100%;" id="set">
<iframe src="http://cgiirc.synirc.net/irc.cgi?chan=%23site8181,%23scp-jp" id="chat" scrolling="no" frameborder="0" width="100%" height="600px"></iframe>
</div>
</body>
</html>
特に指定がない限り、このサイトのコンテンツには次のライセンスが適用されます: Creative Commons Attribution-ShareAlike 3.0 License