• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

ギコナビ


Commit MetaInfo

Revision1705bd7d52c4bc4743c987eb74dfca64ba50e047 (tree)
Time2007-05-06 16:50:26
Authorh677 <h677>
Commiterh677

Log Message

IE7用のskin30-xGを追加

Change Summary

Incremental Difference

--- /dev/null
+++ b/res/skin/skin30-2G_IE7/Bookmark.html
@@ -0,0 +1 @@
1+<dt style="text-align:center;"><a name="koko"></a>ƒRƒR‚Ü‚Å“Ç‚ñ‚¾</dt><dd></dd>
\ No newline at end of file
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/Footer.html
@@ -0,0 +1,8 @@
1+<dt id="sizeinfo">@<span><SIZEKB/>KB (<SIZE/>Byte) <script type="text/javascript">
2+ end_time = new Date();
3+ start_num=start_time.getMilliseconds()+1000*(start_time.getSeconds()+60*start_time.getMinutes()+3600*start_time.getHours());
4+ end_num =end_time.getMilliseconds() +1000*(end_time.getSeconds() +60*end_time.getMinutes() +3600*end_time.getHours());
5+ document.write((end_num-start_num)/1000+'•b');
6+</script></span></dt><dd style="display:none">dummy_for_searchRef</dd></dl>
7+</body>
8+</html>
\ No newline at end of file
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/Header.html
@@ -0,0 +1,64 @@
1+<html lang="ja">
2+<head>
3+<title><THREADNAME/></title>
4+<meta http-equiv="Content-type" content="text/html; charset=Shift_JIS">
5+<meta name="ThreadURL" content="<THREADURL/>">
6+<meta name="SkinPath" content="<SKINPATH/>">
7+<meta name="GetRescount" content="<GETRESCOUNT/>">
8+<link rel="stylesheet" type="text/css" charset="Shift_JIS" href="<SKINPATH/>chie_blue.css">
9+<link rel="stylesheet" type="text/css" charset="Shift_JIS" href="<SKINPATH/>chie_image.css">
10+<script type="text/javascript" charset="Shift_JIS" src="<SKINPATH/>chie_search.js"></script>
11+<script type="text/javascript" charset="Shift_JIS" src="<SKINPATH/>chie_image.js"></script>
12+<script type="text/javascript" charset="Shift_JIS" src="<SKINPATH/>chie_popup.js"></script>
13+<script type="text/javascript" charset="Shift_JIS" src="<SKINPATH/>chie_event.js"></script>
14+<!--script type="text/javascript" charset="Shift_JIS" src="<SKINPATH/>chie_mail.js"></script-->
15+<script type="text/javascript">
16+var start_time = new Date();
17+//==========ƒOƒ[ƒoƒ‹•Ï”
18+var anchorHead="";
19+var skinName="skin30-2 v3.7.1112";
20+var browser="ƒMƒRƒiƒr";
21+//==========ƒMƒRƒiƒr—pƒAƒ“ƒJ[‚Ì”»’èi0:ˆ—–³‚µ,1:ƒ|ƒbƒvƒAƒbƒv,2:ƒ{ƒ^ƒ“‘}“üj
22+// ƒMƒRƒiƒr‚ł́AƒŒƒXƒAƒ“ƒJ[‚Í‘Š‘΃AƒhƒŒƒX‚Å‹Lq‚³‚ê‚é
23+function checkAnchor(href){if(!href){return(0)}
24+ if (href.match(/decoy:|about:/)){return(1)}
25+ else if(href.match(/menu:|be:|read\.cgi|\.2ch\.net\/.*\/kako/)){return(0)}
26+ else{return(2)}
27+}
28+//==========ƒŠƒ“ƒNÝ’è
29+function addAnchor(inner,num){
30+ if(!t_url){threadurl()}
31+ var url=document.getElementsByName("ThreadURL")[0].content;
32+ if(url.match(/&/)){
33+ return('<a href="../test/read.cgi?bbs='+t_bbs+'&key='+t_key+'&st='+inner+'&to='+inner+'&nofirst=true" target="_blank" onclick="blur()">'+num+'</a>')
34+ }else{
35+ return('<a href="../test/read.cgi/'+t_bbs+'/'+t_key+'/'+inner+'" target="_blank" onclick="blur()">'+num+'</a>')
36+ }
37+}
38+// ƒXƒŒƒbƒhURL‚̎擾
39+var t_url=false,t_domain,t_bbs,t_key;
40+function threadurl(){
41+ var threadurl=document.getElementsByName("ThreadURL")[0].content;
42+ if(threadurl.match(/&/)){
43+ threadurl.match(/bbs=(.*)&key=(\d*)/);
44+ }else{
45+ threadurl.match(/^.*\/test\/read.cgi\/(.*)\/(.*)\//);
46+ }
47+ t_url=true;
48+ t_bbs=RegExp.$1;
49+ t_key=RegExp.$2;
50+}
51+//==========”ñ•\Ž¦ƒŒƒX‚Ì•\Ž¦-ƒMƒRƒiƒr‚Ì‚Ý
52+function hiddenRes(e){
53+ var number=tohan(event.srcElement.innerText.replace(/>|„/g,""));
54+ var i=0;while(document.anchors[i].name.match(/\D/)){i++}
55+ var startRes=parseInt(document.anchors[i+1].name.replace(/\D/g,""));
56+ if(number.match(/(\d*)\D+(\d*)/)){var start=parseInt(RegExp.$1);}
57+ else {var start=parseInt(number);}
58+ //alert(startRes+">"+start+" && "+start+"!="+1);
59+ if(startRes>start && start!=1){return true}else{return false}
60+}
61+</script>
62+</head>
63+<body>
64+<dl id="dl">
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/NewRes.html
@@ -0,0 +1 @@
1+<dt class="new"><NUMBER/><u><NAME/></u><MAIL/><span><DATE/></span></dt><dd><MESSAGE/></dd>
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/Newmark.html
@@ -0,0 +1 @@
1+<dt style="text-align:center;" class="new"><a name="new"></a>V’…ƒŒƒX | <NEWDATE/> Žæ“¾</dt><dd></dd>
\ No newline at end of file
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/Res.html
@@ -0,0 +1 @@
1+<dt><NUMBER/><u><NAME/></u><MAIL/><span><DATE/></span></dt><dd><MESSAGE/></dd>
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/chie_base.css
@@ -0,0 +1,93 @@
1+@charset "Shift_JIS";
2+* {font-family:"‚l‚r ‚oƒSƒVƒbƒN"}
3+/* ‚Ó‚¿–³‚µ */
4+body {margin:0px;padding:0px;}
5+/* ƒŠƒ“ƒN */
6+dt a{text-decoration:none;}
7+dd a{text-decoration:underline;line-height:1.1}
8+
9+/* ŒŸõŒ‹‰Ê */
10+#foundPanel{color:LightSlateGray;}
11+#foundPanel div {font-family:"‚l‚r ƒSƒVƒbƒN";}
12+#foundPanel div span{font-family:Times;cursor:hand;}
13+#foundPanel a {color:LightSlateGray;}
14+#foundPanel a:hover{color:#000;}
15+
16+/* dt */
17+dt{
18+ padding:0.3em;
19+ border-width:1px 0px;
20+ border-color:#999;
21+ border-style:solid;
22+}
23+
24+/* –¼‘O */
25+dt u {
26+ margin:1ex;
27+ text-decoration:none;
28+ cursor:hand;
29+}
30+u a{border-width:0px;padding:0px;}
31+
32+/* ID */
33+dt span{
34+ float:right;
35+/* margin-left:1em;*/
36+ margin-top:-23px;
37+ margin-right:0.5em;
38+ font-family:"‚l‚r ƒSƒVƒbƒN";
39+ font-size:95%;
40+ cursor: hand;
41+}
42+dt span a{font-family:"‚l‚r ƒSƒVƒbƒN";}
43+
44+/* dd */
45+dd{
46+ padding:0.5em 1em 0.5em 0em;
47+ word-break:break-all;
48+ word-wrap:break-word;
49+}
50+
51+/* ƒ{ƒ^ƒ“ */
52+input,button{ /*‚±‚±‚Å‚ÌŽw’è‚Íimage.css‚ŏ㏑‚«‚³‚ê‚é*/
53+ font-family:"Terminal";
54+ font-size:8px;
55+ margin:2px;
56+ border:1px solid #BCB5B5;
57+}
58+#controlPanel{
59+ position:absolute;
60+ top:expression(body.scrollTop+3);
61+ right:3px;
62+ padding:2px 3px;
63+ background-color:#789;
64+ z-index:6;
65+ visibility:hidden;
66+}
67+#command {text-align:center}
68+#command input{
69+ font-family:"‚l‚r ƒSƒVƒbƒN";
70+ font-size:9pt;
71+ margin:1px;
72+ width:98px;
73+}
74+#context {
75+ position:absolute;
76+ visibility:hidden;
77+ background-color:Menu;
78+ border-style:solid;
79+ border-width:2px;
80+ border-color:ThreeDHighlight ThreeDDarkShadow ThreeDDarkShadow ThreeDHighlight;
81+ padding:1px;
82+ z-index:7;
83+}
84+#context div{
85+ display:block;
86+ font:menu;
87+ padding:4px 17px;
88+ cursor:hand;
89+}
90+#sizeinfo{
91+ background-color:transparent;
92+ border:none;
93+}
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/chie_blue.css
@@ -0,0 +1,19 @@
1+@import url(chie_base.css);
2+/* ƒŠƒ“ƒN */
3+a{color:#000;}
4+dt a {border:1px solid #EEE;}
5+dt.new a {border:1px solid #DCEAF5;}
6+dt a:active {color:#F00; background-color:#FDD; border-color:#F44;}
7+dt a:hover {color:#F00; background-color:#FDD; border-color:#F44;}
8+
9+dd a:link {color:#06559B;}
10+dd a:visited{color:#669;}
11+dd a:active {color:#F55; background-color:#FDD;}
12+dd a:hover {color:#F55; background-color:#FDD;}
13+
14+/* dt */
15+dt {background-color: #EEE;}
16+dt.new {background-color:#DCEAF5;}
17+
18+/* ‹tŽQÆ“à•” */
19+.refResult dt a{color:#000;text-decoration:none}
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/chie_event.js
@@ -0,0 +1,285 @@
1+try{document.charset='Shift_JIS'}catch(e){}
2+//========V’…ƒWƒƒƒ“ƒvÝ’è
3+var buffer=1; // ’ᑬ‰ñü‚â’ᑬƒ}ƒVƒ“‚̏ꍇ‚É‚Íbuffer‚̐”’l‚𑝂₷‚Æ‚æ‚萳Šm‚ɃWƒƒƒ“ƒvi1‘‚â‚·‚Æ0.1•b’x‚ê‚éj
4+var newResJump=1; // V’…ƒŒƒXƒWƒƒƒ“ƒvi0:ƒuƒ‰ƒEƒU”C‚¹A1:“Ç—¹Žž‚̂݁A2:íŽžj–‚©‚¿‚ãAOpenJaneAtwintail‚݂̂̐ݒè
5+//==========ˆÈ‰º‚̓XƒNƒŠƒvƒg–{•¶‚Å‚·‚æB
6+//ƒCƒxƒ“ƒgƒnƒ“ƒhƒ‰’è‹`
7+//ŠO•”ŠÖ”Ftohan
8+//ŠO•”•Ï”FanchorHead,lightmode,getID,skinName,browser,dts
9+//=========ŠO•”ƒtƒ@ƒCƒ‹‹¤—p‚̃Oƒ[ƒoƒ‹•Ï”
10+var waited=false;//command•\Ž¦Œãtrue‚É‚µA‘I‘ðŒã‚Éfalse‚É‚·‚éB
11+var viewed=false;//thumb“Ǎž‚ÝŒãtrue‚É‚µAthumbPanel‚ɏæ~Œãfalse‚É‚·‚éB
12+var searched=false; //ŒŸõŒã‚ɁAtrue‚É‚µAfoundPanel‚ɏæ~Œãfalse‚É‚·‚éB
13+var cp,tp,vp,fp;
14+//========Clickˆ—¨search,‘¼
15+ document.onclick = clickEvent;
16+function clickEvent(){
17+ if(clickCancel){return false}else{clearTimeout(clickTimer);if(document.getElementById("context")){document.getElementById("context").removeNode(true);}}
18+ var obj=window.event.srcElement;
19+ var tag=obj.tagName;
20+ if(tag=="B"||tag=="U"||tag=="SPAN"){searchPerson(obj)} //–¼‘O,ƒgƒŠƒbƒv,ID
21+ else if(tag=="DT") {searchRef(obj)}
22+ else if(tag=="DD") {defaultPopup()}
23+ else if(tag=="A"){
24+ if(obj.rel){obj.href=obj.rel;}
25+ //if(obj.parentElement.tagName!="DIV"){setHistory(obj);}
26+ //”•t‚«ƒŠƒ“ƒN
27+ if(browser=="Live2ch" || browser=="‚©‚¿‚ã`‚µ‚á"){
28+ if(obj.href.match(/^http:.*#/)){window.open(obj.href,"_parent");return false}
29+ }
30+ //A Bone•â³i”ñ•\Ž¦ƒŒƒX‚Ì•\Ž¦j
31+ if((browser=="A Bone"||browser=="ƒMƒRƒiƒr") && hiddenRes(obj)){showModelessDialog(document.getElementsByName("ThreadURL")[0].content.replace(/\/l50$/,"/")+tohan(obj.innerText.replace(/[>„]/g,"")),window,"dialogWidth:"+document.body.clientWidth+"px;help:no;resizable:yes;status:no;unadorned:yes;");window.focus();}
32+ //Jane,Live,ƒMƒRƒiƒr•â³iskin30-2Normal‹y‚уMƒRƒiƒrj–ƒŒƒXƒWƒƒƒ“ƒv‚ªscrollIntoView‚Å‚È‚¢‚à‚Ì‚ÉŒW‚é•â³
33+ if(browser=="A Bone" || browser=="OpenJane" || browser=="Live2ch" || browser=="ƒMƒRƒiƒr"){if(obj.href.match(/^about|jumpres/)){
34+ var h=tohan(obj.innerText.replace(/[>„]/g,""));
35+ var anchor=document.anchors(anchorHead+h);
36+ if(anchor){anchor.scrollIntoView(true);return false}
37+ }}
38+ return true;
39+ }
40+ else{panelOver();return}
41+}
42+
43+//=========MouseOverˆ—¨image,popup
44+ document.onmouseover = mouseOverEvent;
45+function mouseOverEvent() {
46+ var e = window.event.srcElement;
47+ if(e.tagName=='B'){if(browser!="twintail2"){
48+ if(e.innerText.match(/^([^\d‚O-‚X]*)([\d‚O-‚X]+)([^\d‚O-‚X]*.*)/)){namePopup(e,RegExp.$1,RegExp.$2,RegExp.$3);}
49+ else if(e.innerText.match(/^‚ ‚ځ`‚ñ$/)) {abonePopup(e);}
50+ }}
51+ if(e.tagName=='A'){
52+ if(!e.innerText.match(/%/)){ // URLƒGƒ“ƒR[ƒh‚Å‚ ‚肪‚¿‚È%‚ª‚È‚¯‚ê‚Î
53+ //e.href=e.href.replace(/>/g,"");
54+ //e.href=e.href.replace(/\/ime.\w+/g,"");
55+ }else{
56+ try{
57+ e.title=decodeURI(e.innerText);
58+ }catch(err){
59+ // ShiftJIS,EUC-JP‚̃fƒR[ƒh‚Í–Ê“|‚¾‚©‚ç‚‚¯‚È‚¢B
60+ }
61+ }
62+ try{e.href}catch(err){return} // IE7‚¾‚Ɖ½ŒÌ‚©e.href‚ªŽæ“¾o—ˆ‚È‚¢A—v‘f‚ª‚ ‚é
63+ if (checkAnchor(e.href)==2){insButton(e);return;}
64+ else if(checkAnchor(e.href)==1){ // ‘½’iƒ|ƒbƒvƒAƒbƒv
65+ if(event.shiftKey){if(e.rel){e.href=e.rel}return}
66+ var parent=e.parentElement;
67+ var aNum= (parent.tagName!="DD") ? parent.firstChild.sourceIndex : parent.previousSibling.firstChild.innerText;
68+ if(!document.getElementById("p"+aNum)){
69+ var obj=e;var onPopup;
70+ while(obj.tagName!="BODY"){if(obj.id.match(/p\d+/)){onPopup=true;break}else{obj=obj.parentElement}}
71+ if(!onPopup){removePopup()}
72+ makePopContent(e);return;
73+ }
74+ }else if(checkAnchor(e.href)==0){ // ‹tŽQÆƒ|ƒbƒvƒAƒbƒv
75+ if(e.href.match(/menu:/) && event.shiftKey){searchPopup(e)}
76+ }
77+ }else if(e.tagName=="SPAN"||e.tagName=="TT"){
78+ var obj=e;var onPopup;
79+ while(obj.tagName!="BODY"){if(obj.id.match(/p\d+/)){onPopup=true;break}else{obj=obj.parentElement}}
80+ if(e.tagName=="SPAN"){
81+ if(!onPopup && event.shiftKey){searchPopup(e)}
82+ }else{searchPopup(e)}
83+ }else{ // ‘½’iƒ|ƒbƒvƒAƒbƒvÁ‹Ž
84+ var obj=e;var onPopup;
85+ if(obj.sourceIndex<0){obj=document.body;if(document.getElementById("popupBase")){onPopup=true;}} // namePopup‚Æ‚Ì‹£‡‚Ńm[ƒh‚ªŠO‚ê‚éuŠÔ‚̉ñ”ð
86+ while(obj.tagName!="BODY"){if(obj.id.match(/(p\d+)/)){onPopup=true;break}else{obj=obj.parentElement;}}
87+ if(onPopup){while(obj.id!=obj.parentElement.lastChild.id){obj.parentElement.lastChild.removeNode(true)}}
88+ else {removePopup()}
89+ }
90+}
91+//=========MouseMoveˆ—¨panelOver()
92+ document.onmousemove=mouseMoveEvent;
93+function mouseMoveEvent() {
94+ if(!cp){
95+ var nHTML ='<div id="controlPanel"><input type="button" value="TOP" onclick="scroll_Top();blur()"><input type="button" value="END" onclick="scroll_End();blur()"><input type="button" value="IMG" onmouseup="imgCommand();blur()"><input type="button" value="FND" onclick="fndCommand();blur();"></div><div id="foundPanel" onmouseout="searched=false"></div>';
96+ if(skinName.match(/30-2/)){nHTML+='<div id="thumbPanel" onmouseout="viewed=false"></div><div id="viewPanel"></div>';}
97+ document.body.insertAdjacentHTML("afterBegin",nHTML);
98+ cp=document.getElementById("controlPanel");fp=document.getElementById("foundPanel");
99+ if(skinName.match(/30-2/)){tp=document.getElementById("thumbPanel");vp=document.getElementById("viewPanel");}else{tp=vp=new Object()}
100+ cp.condition="waited";tp.condition="vp.firstChild || viewed || !lightmode";fp.condition=resultView ? "fp.hasChildNodes()" : "searched";
101+ cp.territory="<25"; tp.territory=">20"; fp.territory="<(30+fp.clientHeight) && fp.hasChildNodes()";
102+ }
103+ if(event){panelOver();}
104+ if(!idHash.length){setHash();searchColoring();}
105+}
106+// Šeƒpƒlƒ‹
107+function panelOver(){
108+ var territoryW=document.body.clientWidth-120;var territoryH=25;
109+ var panels=new Array("cp","tp","fp");
110+ for(var i in panels){
111+ if(skinName.match(/30-3/)&&panels[i]=="tp"){continue}
112+ var panel=eval(panels[i]); var territoryY=eval("event.y"+panel.territory); var territoryX=eval(event.x>document.body.clientWidth-panel.offsetWidth-15);
113+ if(eval(panel.condition)){panel.style.visibility="visible";return}
114+ if(territoryY && territoryX){panel.style.visibility="visible";}else{panel.style.visibility="hidden";}
115+ }
116+}
117+// TOP,END
118+function scroll_Top(){document.getElementsByTagName("DL")[0].firstChild.scrollIntoView(true);}
119+function scroll_End(){document.getElementsByTagName("DL")[0].lastChild.scrollIntoView(true);}
120+// IMG
121+function imgCommand(mode,s){
122+ if(!waited){
123+ var nHTML='<div id="command" onclick="clearCommand()"><input type="button" onclick="allImageLoad(\'all\')" value="‘SƒŒƒXˆêŠ‡“Ǎž"><br><input type="button" onclick="allImageLoad(\'new\')" value="VƒŒƒXˆêŠ‡“Ǎž"><br><input type="button" onclick="removeError()" value="Error‰æ‘œíœ"><br></div>';
124+ event.srcElement.parentElement.insertAdjacentHTML('beforeEnd',nHTML);
125+ if(skinName.match(/30-2/)){
126+ //if(!lightmode){document.getElementById("command").insertAdjacentHTML('afterBegin','<input type="button" onclick="changePanel()" value="ƒpƒlƒ‹Ø‘Ö"><br>')}
127+ document.getElementById("command").insertAdjacentHTML('beforeEnd','<input type="button" onclick="changeMode()" value="ƒ‚[ƒhØ‘Ö">')
128+ }
129+ waited=true;
130+ }else{
131+ clearCommand();
132+ }
133+}
134+function fndCommand(mode,s){
135+ if(!waited){
136+ findIt(document.selection.createRange().text);
137+ event.cancelBubble=true;
138+ }else{
139+ clearCommand();
140+ }
141+}
142+function clearCommand(){
143+ waited=false;
144+ document.getElementById("command").removeNode(true);
145+}
146+//=========¶’·‰Ÿˆ—¨copyMenu()
147+ document.onmousedown=mousedownEvent;
148+var clickCancel,e,ex,ey,clickTimer;
149+function mousedownEvent(){
150+ var obj=e=event.srcElement;ex=event.x;ey=event.y;
151+ if(document.getElementById("context") && obj.innerText==document.getElementById("context").name){return}
152+ clickCancel=false;
153+ if(obj.nextSibling && obj.nextSibling.tagName=="U" && event.button==1){
154+ clickTimer=setTimeout("copyMenu()",500);
155+ }
156+}
157+
158+//ƒRƒs[ƒƒjƒ…[¨colorChange(),search::copyText()
159+function copyMenu(){
160+ clickCancel=true; clearTimeout(clickTimer);
161+ if(document.getElementById("context")){document.getElementById("context").removeNode(true);}
162+ var nHTML='<div id="context" name="'+e.innerText+'"><div onclick="copyText(\'res\')" onmouseover="colorChange()" onmouseout="colorChange()">ƒŒƒX‚ðƒRƒs[</div><div onclick="copyText(\'name\')" onmouseover="colorChange()" onmouseout="colorChange()">–¼‘O‚ðƒRƒs[</div><div onclick="copyText(\'id\')" onmouseover="colorChange()" onmouseout="colorChange()">ID‚ðƒRƒs[</div></div>';
163+ document.body.insertAdjacentHTML("afterBegin",nHTML);
164+ var context=document.getElementById("context");
165+ context.style.pixelLeft=document.body.scrollLeft+ex
166+ context.style.pixelTop =document.body.scrollTop+ey;
167+ context.style.visibility="visible";
168+}
169+function colorChange(){
170+ var style=event.srcElement.style;
171+ if(event.type=="mouseout"){style.backgroundColor="Menu"; style.color="MenuText";}
172+ else {style.backgroundColor="Highlight";style.color="HighlightText";}
173+}
174+
175+//=========ƒL[ƒ{[ƒh“ü—́iskin30-2‚ł̃L[–³Œø‚̉ñ”ð{ƒ¿j
176+ document.onkeydown=key;
177+function key(){
178+ var dl=document.getElementsByTagName("DL").item(0);
179+ var code=event.keyCode;
180+ if (code=="32" && !event.shiftKey || code=="34"){dl.scrollTop+=dl.offsetHeight;}
181+ else if(code=="32" && event.shiftKey || code=="33"){dl.scrollTop-=dl.offsetHeight;}
182+// else if(code=="37" && event.altKey || code=="8"){jumpHis.back();if(code=="8"){return false}}
183+// else if(code=="39" && event.altKey){jumpHis.forward();return false;}
184+ else if(code=="40"){dl.scrollTop+=36;}
185+ else if(code=="38"){dl.scrollTop-=36;return true;}
186+ else if(code=="36"){scroll_Top()}
187+ else if(code=="35"){scroll_End()}
188+ else if(code=="73" && event.shiftKey){changePanel();return false;} // shift+I
189+ else if(code=="70" && event.shiftKey){findIt(document.selection.createRange().text);return false;} // shift+F
190+ else if(code=="78" && event.shiftKey && firstNew){firstNew.scrollIntoView(true)} // shift+N
191+ else if(code=="82" && event.shiftKey && event.ctrlKey){ // ctrl+shift+R
192+ //‚©‚¿‚ã`‚µ‚á•â³i”XV‚̃Vƒ‡[ƒgƒJƒbƒgƒL[j
193+ if(browser=="‚©‚¿‚ã`‚µ‚á"){
194+ if(!t_url){threadurl();}
195+ window.open("http://"+t_domain+"/"+t_bbs+"/","_blank");
196+ return false;
197+ }
198+ }
199+}
200+
201+//=========V’…ƒŒƒXŽæ“¾Œãˆ—i•W€ƒXƒLƒ“–¢‘Ήžƒuƒ‰ƒEƒU—pj©Timer–”‚ÍFooter‚©‚çŒÄ‚яo‚µ
202+//=========‚©‚¿‚ãAABoneAƒ]ƒk‚Q
203+var newResNum=parseInt(document.getElementsByName("GetRescount")[0].content)+1;
204+var k=0;
205+function loadEvent(num){
206+ //====V’…ƒŒƒXƒWƒƒƒ“ƒv
207+ if(newResJump==0){clearInterval(timerID);return} //uƒuƒ‰ƒEƒU”C‚¹v‚È‚çI—¹
208+ //V’…ƒŒƒX‚ÌŠJŽn”ԍ†‚ðŽæ“¾
209+ if (browser=="‚©‚¿‚ã`‚µ‚á"){if(isNaN(newResNum)){while(dts[k]){if(dts[k].className=="new"){newResNum=parseInt(dts[k].firstChild.innerText);break;} k++;}}}
210+ else if(browser=="ƒzƒbƒgƒ]ƒk‚Q"){newResNum=num+1;}
211+ var anc=document.anchors(anchorHead+newResNum);
212+ if(!anc || !anc.parentElement){return} // “§–¾‚ ‚ځ`‚ñ‚³‚ê‚Ä‚½‚çI—¹
213+ //V’…ƒŒƒXƒWƒƒƒ“ƒv
214+ scr=lightmode ? document.body : document.getElementById("dl");
215+ viewPos=scr.scrollTop+scr.clientHeight;// ƒXƒNƒ[ƒ‹Œã‚̉æ–ʉº•”ˆÊ’u
216+ endPos =anc.offsetTop+20; // VƒŒƒXƒAƒ“ƒJ[ˆÊ’u
217+ //ÅŒã‚Ü‚Å“Ç—¹ or uí‚ɐV’…ƒWƒƒƒ“ƒvv‚È‚çƒWƒƒƒ“ƒv
218+ if(viewPos>endPos || newResJump==2){clearInterval(timerID);setTimeout("moveToNew("+newResNum+")",buffer*100)}
219+ else{firstNew=document.anchors(anchorHead+newResNum).parentElement.nextSibling;}
220+}
221+//=========V’…ƒŒƒXŽæ“¾Œãˆ—i•W€ƒXƒLƒ“‘Ήžƒuƒ‰ƒEƒU—pj©NewMark‚©‚çŒÄ‚яo‚µ
222+//=========OpenJAtwin
223+var scr,viewPos,endPos=0;
224+function reloadEvent(){
225+ //====Šù“lj»
226+ var lastDt=dts[dts.length-2];if(!lastDt){return}// ‘S•”V’…‚È‚çI—¹
227+ while(lastDt && lastDt.className=="new"){lastDt.className="";lastDt=lastDt.previousSibling.previousSibling;}
228+ //====V’…ƒŒƒXƒWƒƒƒ“ƒv
229+ if(newResJump==0){return} //uƒuƒ‰ƒEƒU”C‚¹v‚È‚çI—¹
230+ var ancs=document.anchors;
231+ var newResNum=parseInt(ancs[ancs.length-1].name)+1;
232+ scr=lightmode ? document.body : document.getElementById("dl");
233+ viewPos=scr.scrollTop;
234+ endPos =scr.scrollHeight-scr.clientHeight-20;
235+ //ÅŒã‚Ü‚Å“Ç—¹ or uí‚ɐV’…ƒWƒƒƒ“ƒvv‚È‚çƒWƒƒƒ“ƒv
236+ if(viewPos>endPos || newResJump==2){setTimeout("moveToNew("+newResNum+")",buffer*100);}
237+}
238+
239+// V’…ƒŒƒXˆÚ“®{V’…ƒŒƒX‚̈ʒu‚ð‹L‰¯
240+var firstNew;
241+function moveToNew(num){
242+ firstNew=getDTfromAnc(num);
243+ while(!firstNew){num--;firstNew=getDTfromAnc(num);} //‘Ώۂª“§–¾‚ ‚ځ`‚ñ‚Ȃ琔‚ðŒ¸‚ç‚·
244+ firstNew.scrollIntoView(true);
245+}
246+
247+//=========DoubleClickˆ—¨defaultPopup()
248+ document.ondblclick=defaultPopup;
249+function defaultPopup(){
250+ var num=document.selection.createRange().text.replace(/\s$/,"");
251+ var hnum=tohan(num);
252+ if(!isNaN(hnum) && hnum<=1000){
253+ var obj=document.createElement("a");
254+ obj.innerText=num;
255+ obj.href="#"+hnum;
256+ makePopContent(obj);
257+ }else if(num.match(/\w{8,9}/)){ //\w{8}‚Å‚Í‚¾‚߂ہH
258+ var obj=document.createElement("DT");
259+ obj.innerHTML="<span>date time ID:"+num+"</span>";
260+ searchPerson(obj.firstChild);
261+ }
262+}
263+
264+//=========Copyˆ—
265+//head‚©‚ç“Ç‚Þ‚Æbody‚ÍŒ©‚¦‚È‚¢‚̂ŁAê—pƒuƒ‰ƒEƒU‚Ì“ÁŽ¿‚ð—˜—p‚µ‚Äbody‚ÌŒã‚ë‚ɏ‘‚«o‚·
266+//–{—ˆ‚Ç‚¨‚èhead‚ɏ‘‚«o‚·SkinManager‘΍ô‚Å”»’è‚ðˆê‚“ü‚ê‚é
267+ if(document.body) document.write('<script type="text/javascript">document.body.oncopy=copyEvent</script>\n');
268+function copyEvent(){
269+ var textarea=document.createElement("TEXTAREA");
270+ textarea.value=document.selection.createRange().text.replace(/\s(\r\n|$)/g,"\n");
271+ var copyText=textarea.createTextRange();
272+ copyText.execCommand("Copy");
273+ return false;
274+}
275+//=========onScrollˆ—
276+//window.onscroll=function(){clearInterval(beforeScrollTimer);onLoadEvent()}
277+window.onscroll=function(){onLoadEvent()}
278+if(document.getElementById("dl")){
279+ document.getElementById("dl").onscroll=function(){onLoadEvent()}
280+}
281+//=========onLoadˆ—
282+window.onload=onLoadEvent;
283+function onLoadEvent(){mouseMoveEvent();setHash();searchColoring();}
284+setTimeout("onLoadEvent()",1000); // ˆê‰ñ‚¾‚¯’…F
285+
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/chie_image.css
@@ -0,0 +1,40 @@
1+body{overflow-x:hidden}
2+/* ƒŠƒ“ƒN‰¡ƒ{ƒ^ƒ“ */
3+input,button{
4+ font-family:"Terminal";
5+ font-size:8px;
6+ margin:0px 2px 2px 4px;
7+ border:1px solid #BCB5B5;
8+}
9+/* ƒTƒ€ƒlƒCƒ‹ */
10+#thumbPanel{
11+ position:absolute;
12+ top :expression(body.scrollTop+23);
13+ right :0px;
14+ width :115px;
15+ height:expression(document.body.clientHeight-25);
16+ overflow-y:auto;
17+ z-index:4;
18+}
19+#thumbPanel div{
20+ width:100px;
21+ margin-bottom:0px;
22+ border:solid 1px #D6DCE1;
23+ background-color:#FFF;
24+ text-align:right;
25+}
26+#thumbPanel img {width:100px; height:75px; display:none; filter: Alpha(opacity=30);}
27+#thumbPanel embed{width:100px; height:75px; display:block;}
28+#thumbPanel a{margin-right:8px;}
29+/* ƒrƒ…[ */
30+#viewPanel{
31+ position:absolute;
32+ top :expression(body.scrollTop+10);
33+ right :119px;
34+ text-align:right;
35+ z-index:6;
36+ overflow:auto;
37+}
38+#viewPanel img {border:outset 2px LightSlateGray;}
39+#viewPanel embed,#viewPanel object
40+ {border:inset 1px LightSlateGray; width:99%; height:expression(document.body.clientHeight-55);}
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/chie_image.js
@@ -0,0 +1,220 @@
1+//======‰æ‘œ“Ǎž‚̐ݒè
2+var onOpenLoad =1; // ƒXƒŒ“ǍžŽž‚̉摜“Ǎž@0:“ǂݍž‚Ü‚È‚¢A1:V’…ƒŒƒX‚̂݁A2:‘S•”
3+var onMouseLoad=true; // true:ƒJ[ƒ\ƒ‹‚ð‡‚í‚¹‚½‚¾‚¯Afalse:LOADƒ{ƒ^ƒ“‚ðƒNƒŠƒbƒN‚µ‚Ä‚©‚ç
4+var takeArisk=false; // true:‰æ‘œ“ǂݍž‚ÝŽž‚Ƀ‚[ƒhØ‘ցAfalse:Žè“®‚Ń‚[ƒhØ‘Ö
5+//==========ˆÈ‰º‚̓XƒNƒŠƒvƒg–{•¶‚Å‚·‚æB
6+// ƒCƒxƒ“ƒgƒnƒ“ƒhƒ‰FonMouseover
7+// ŠO•”ŠÖ”FaddAnchor
8+// ŠO•”•Ï”Fcp,tp,vp,dds
9+//==========ƒOƒ[ƒoƒ‹•Ï”
10+//==========‰æ‘œˆ—“™
11+var lightmode = true;
12+// ƒ‚[ƒhØ‘Ö
13+function changeMode(){
14+ var bd=document.body;
15+ var dl=document.getElementById("dl");
16+ if(lightmode){//normal‚Ö
17+ /* scrollˆÊ’u‹L‰¯ */ var y=bd.scrollTop;
18+ /* ‹[Ž—ƒtƒŒ[ƒ€‰» */
19+ bd.style.overflowY="hidden";
20+ dl.style.posWidth =bd.clientWidth-120;
21+ dl.style.height ="100%";
22+ dl.style.overflowY="scroll";
23+ /* ƒ‚[ƒhˆÚs */ lightmode=false;
24+ /* ƒXƒNƒ[ƒ‹ */ dl.scrollTop=y; scrollTo(0,0);
25+ /* tp‚Ì•\Ž¦ */ tp.style.visibility="visible";
26+ /* cp‚̈ړ® */ cp.style.posRight=3;
27+ /* panel=on */ panel=true;
28+ }else{ //light‚Ö
29+ var dcW=panel ? dl.clientWidth+120 : dl.clientWidth;
30+ /* scrollˆÊ’u‹L‰¯ */ var y=dl.scrollTop;
31+ /* ‹[Ž—ƒtƒŒ[ƒ€‰ðœ */
32+ bd.style.overflowY="scroll";
33+ dl.style.posWidth =dcW;
34+ dl.style.posHeight="";
35+ dl.style.overflowY="auto";
36+ /* ƒ‚[ƒhˆÚs */ lightmode=true;
37+ /* ƒXƒNƒ[ƒ‹ */ bd.scrollTop=y;
38+ /* tp‚Ì”ñ•\Ž¦ */ tp.style.visibility="hidden";
39+ /* cp‚̈ړ® */ cp.style.posRight=3;
40+ /* panel=off */ panel=false;
41+ }
42+}
43+
44+// ƒpƒlƒ‹‚Ì“WŠJ
45+var panel;
46+function changePanel(){
47+ if(lightmode){return}
48+ var dl=document.getElementById("DL");
49+ /* •Â */if(panel){cp.style.posRight=18;dl.style.posWidth=document.body.clientWidth; tp.style.visibility="hidden"; panel=false;}
50+ /* ŠJ */else {cp.style.posRight=3; dl.style.posWidth=document.body.clientWidth-120;tp.style.visibility="visible"; panel=true;}
51+}
52+// LOADƒ{ƒ^ƒ“
53+function insButton(a,hRH) {
54+ if(a.className!='replaced' && a.parentElement.tagName!='DIV'){
55+ if(imageExt2(a.href)){
56+ var nHTML='<input type="button" value="LOAD" onClick=\'loadImage(this,"'+a.href+'");blur()\'>';
57+ }else if(imageExt(a.href)){
58+ var nHTML='<input type="button" value="LOAD" onClick=\'loadImage(this,"'+a.href+'");blur()\'>'
59+ +'<input type="button" value="VIEW" onClick=\'changeView("swf","'+a.href+'");blur()\'>';
60+ }else{
61+ var ahref=(hRH)?hRH:a.href;
62+ if(ahref.match(/^javascript:.*'(.*)'.*/)){ahref=RegExp.$1+document.getElementsByName("ThreadURL")[0].content;a.href=ahref}
63+ var nHTML='<input type="button" value="VIEW" onClick=\'changeView("html","'+ahref+'");blur()\'>'
64+ +'<input type="button" value="CHECK" onClick=\'changeView("html","http://so.7walker.net/?site='+ahref+'");blur()\'>';
65+ }
66+ a.insertAdjacentHTML('AfterEnd',nHTML);
67+ a.className = 'replaced';
68+ if(imageExt2(a.href)){
69+ if(!event||event.type=="mousemove"||event.type=="scroll"||event.type=="onload"){ // autoImageLoad‚ł̓Ǎž
70+ if(onOpenLoad){loadImage(a.nextSibling,a.href)}
71+ }else if(event.type=="mouseover"){ // mouseover‚ł̓Ǎž
72+ if(onMouseLoad){loadImage(a.nextSibling,a.href)}
73+ }else if(event.type=="click"){ // allImageload‚ł̓Ǎž
74+ loadImage(a.nextSibling,a.href);
75+ }
76+ }
77+ return;
78+ }
79+}
80+// ‰æ‘œ“Ǎž
81+function loadImage(btn,href){
82+ if(!panel){changePanel()}
83+ if(takeArisk && lightmode){changeMode()}
84+ // “¯ˆê‰æ‘œŠm”F
85+ var thumbs = document.images;
86+ var l=thumbs.length;
87+ for(var i=l;i--;){if(thumbs[i].src==href){
88+ if(lightmode){tp.style.visibility="visible";viewed=true;}
89+ //thumbs[i].scrollIntoView(true);
90+ imgOver(thumbs[i],100);
91+ return true;
92+ }}
93+ if(btn.parentElement.tagName=="DD"){var dt = btn.parentElement.previousSibling;}
94+ else {var dt = btn.parentElement;}
95+ var num = dt.firstChild.innerText;
96+ if(href.match(/www.securityfocus.com/)){if(!confirm(num+"‚̃ŒƒX‚É‚ ‚éhttp://www.securityfocus.com/‚̉摜‚̓uƒ‰ƒNƒ‰‚̉”\«‚ª‚‚¢‚Å‚·‚ªAŠJ‚«‚Ü‚·‚©H")){return}}
97+ if(href.search(/\.swf/i)==-1){
98+ var nHTML = '<div><img src="'+href+'" onLoad="imgResult(this)" onError="imgResult(this)" onClick="changeView(\'img\')" onmouseover="imgOver(this,100)" onmouseout="imgOver(this,30)">'
99+ +addAnchor(num,num)+' '
100+ +'<button onClick="changeSize(this);blur()">...</button>'
101+ +'<button onClick="removeThumb(this)">DEL</button>'
102+ +'</div>';
103+ }else{
104+ var nHTML = '<div><embed src="'+href+'" onFocus="changeView(\'swf\')"></embed>'
105+ +addAnchor(num,num)+' '
106+ +'<button onClick="blur()">___</button>'
107+ +'<button onClick="removeThumb(this)">DEL</button>'
108+ +'</div>';
109+ }
110+ if(btn.tagName=="INPUT"){btn.value = 'LOADED';}
111+ tp.insertAdjacentHTML('BeforeEnd',nHTML);
112+ //•\Ž¦Œp‘±
113+ if(!viewed){tp.style.visibility="visible";viewed=true;}
114+}
115+// ‰æ‘œ“Ǎž”»’è
116+function imgResult(img){
117+ var btn=img.parentElement.children.item(2);
118+ if(event.type=="load"){btn.value='___'; img.style.display='block';}
119+ else {btn.value='NONE';btn.style.color='#C00';}
120+ if(event.type=="error"){
121+ var dt=getDTfromAnc(img.parentElement.children.item(1).innerText);
122+ var ddAnc=dt.nextSibling.getElementsByTagName("A");
123+ var a;var i=0;do{a=ddAnc[i];i++;}while(a.href!=img.href);
124+ var btn=a.nextSibling;
125+ btn.value='NONE';btn.style.color='#C00';
126+ }
127+}
128+// ƒTƒCƒY‚̐ؑÖ
129+function changeSize(btn){
130+ var img=vp.firstChild;
131+ if(!img){return}
132+ if(btn.innerText.match(/100%|_+/)){
133+ var hRatio=vp.style.pixelWidth /img.offsetWidth;
134+ var vRatio=vp.style.pixelHeight/img.offsetHeight;
135+ var ratio =(hRatio>vRatio) ? vRatio : hRatio;
136+ if(ratio>1){ratio=1}else{img.style.zoom=ratio*100+'%';}
137+ btn.innerText=Math.round(ratio*100-0.5)+"%";
138+ }else{
139+ img.style.zoom="100%";
140+ btn.innerText="100%";
141+ }
142+}
143+// ƒTƒ€ƒlƒCƒ‹‚̍폜
144+function removeThumb(btn){btn.parentElement.removeNode(true);}
145+function removeError(){
146+ if(tp){
147+ var l=tp.childNodes.length;
148+ for(var i=l;i--;){
149+ var stateBtn=tp.childNodes[i].childNodes[2];
150+ if(stateBtn.tagName=="BUTTON" && stateBtn.innerText=="NONE"){stateBtn.parentElement.removeNode(true);}
151+ }
152+ }
153+}
154+// ‰æ‘œ•\Ž¦‚̐ؑÖ
155+function changeView(mode,href){
156+ if(!href){href=event.srcElement.src}
157+ if(tp){
158+ var l=tp.childNodes.length;
159+ for(var i=l;i--;){
160+ var stateBtn=tp.childNodes[i].childNodes[2];
161+ if(stateBtn.tagName=="BUTTON" && stateBtn.innerText!="NONE"){stateBtn.innerText="___"} //embed‚ÍchildNodes‚É“ü‚ç‚È‚¢?
162+ }
163+ }
164+ if(!vp.hasChildNodes() || vp.firstChild.src!=href){
165+ var nHTML,buttons;
166+ if(browser!="ƒzƒbƒgƒ]ƒk‚Q"){buttons='<button onclick="window.open(\''+href+'\',\'_parent\');clearView()">OPEN</button><button onclick="clearView()">CLOSE</button>';}
167+ else {buttons='<button onclick="window.open(\''+href+'\',\'_blank\');clearView()">OPEN</button><button onclick="clearView()">CLOSE</button>';}
168+ if (mode=="img") {nHTML='<img src="'+href+'" ondragstart="imageMoveStart(this)" ondrag="imageMove(this)" onclick="clearView()">'}
169+ else if(mode=="swf") {nHTML='<embed src="'+href+'"></embed>'+buttons}
170+ else if(mode=="html"){nHTML='<object data="'+href+'" type="text/html" onError="htmlNotFound()"></object>'+buttons}
171+ vp.innerHTML=nHTML;
172+ vp.style.posWidth =document.body.clientWidth -130;
173+ vp.style.posHeight=document.body.clientHeight-20;
174+ if(mode=="img"){changeSize(event.srcElement.parentElement.childNodes[2])}
175+ }else{clearView()}
176+}
177+//Viewƒpƒlƒ‹ƒNƒŠƒA
178+function clearView(){
179+ while(vp.hasChildNodes()){vp.childNodes[0].removeNode(true)}
180+ vp.style.posWidth ="";
181+ vp.style.posHeight="";
182+}
183+var imageMoveX,imageMoveY;
184+function imageMoveStart(obj){
185+ imageMoveX=obj.parentElement.scrollLeft+event.clientX;
186+ imageMoveY=obj.parentElement.scrollTop +event.clientY
187+}
188+function imageMove(obj) {
189+ obj.parentElement.scrollLeft=imageMoveX-event.clientX;
190+ obj.parentElement.scrollTop=imageMoveY -event.clientY
191+}
192+function htmlNotFound(){
193+ alert('404 NotFound ‚©‚à\ ');
194+ clearView();
195+}
196+// LOADƒ{ƒ^ƒ“‘}“ü‘Ώۊg’£Žqi’ʏí—pj
197+function imageExt(isu) {if(isu.search(/\.png$|\.jp(g|e|eg)$|\.gif$|\.bmp$|\.swf/i)!=-1){return true}else{return false}}
198+// LOADƒ{ƒ^ƒ“‘}“ü‘Ώۊg’£ŽqiˆêŠ‡“Ǎž—pj
199+function imageExt2(isu){if(isu.search(/\.png$|\.jp(g|e|eg)$|\.gif$|\.bmp$/i)!=-1){return true}else{return false}}
200+
201+// ‰æ‘œˆêŠ‡“ǂݍž‚Ý
202+var allLoaded;
203+function allImageLoad(mode){
204+ var ddl=dds.length;var exist;
205+ for(var i=0;i<ddl;i++){
206+ if(mode=="new"){if(dds[i].previousSibling.className!="new"){continue}}
207+ var ddAnc=dds[i].getElementsByTagName("A");
208+ for(j=0;j<ddAnc.length;j++){
209+ cn=ddAnc[j];
210+ if(imageExt2(cn.href)){insButton(cn,cn.href);exist=true}
211+ }
212+ }
213+ if(!exist){
214+ var target;
215+ if(mode=="new"){target="V’…ƒŒƒX"}else{target="‘S‚ẴŒƒX"}
216+ alert(target+"‚ɉ摜‚Í‚È‚¢‚æ\ ")
217+ }
218+}
219+// ƒ‚ƒUƒCƒNˆ—
220+function imgOver(my,num) {my.style.filter="Alpha(opacity="+num+")"}
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/chie_popup.js
@@ -0,0 +1,114 @@
1+//==========ˆÈ‰º‚̓XƒNƒŠƒvƒg–{•¶‚Å‚·‚æB
2+// ƒCƒxƒ“ƒgƒnƒ“ƒhƒ‰FonMouseover
3+// ŠO•”•Ï”FidHash,refHash,foudRes,highlight
4+// ŠO•”ŠÖ”FaddAnchor,getDTfromAnc
5+// “Á’¥FDIV#popupBase‰º‚Ɂuƒtƒ‰ƒbƒg‚ŃŠƒjƒAv‚ÉDL#p\d‚ðì¬‚·‚éB
6+//==========CSS‚̏o—Í
7+var nCSS=''
8+nCSS+='#popupBase{font-size:90%;}'; //ƒtƒHƒ“ƒgƒTƒCƒY‚ÌŽw’è
9+nCSS+='#popupBase{position:absolute;width:100%;height:100%;z-index:7}';
10+nCSS+='#popupBase dl{position:absolute; background-color:window; border:outset 1px infobackground; overflow-y:auto; z-index:5; border-top:none}';
11+nCSS+='#popupBase dt span{float:none; margin-left:1em;}';
12+nCSS+='#popupBase dd{margin:auto 1em}';
13+document.write('<style type="text/css">'+nCSS+'</style>\n');
14+//=========ŠO•”ƒtƒ@ƒCƒ‹‹¤—p‚̃Oƒ[ƒoƒ‹•Ï”
15+//=========ƒiƒ“ƒo[‚È–¼‘O‚̃|ƒbƒvƒAƒbƒv
16+function namePopup(e,before,num,after){
17+ var hnum=tohan(num);
18+ if(hnum==774 || hnum==21 || hnum==1 || hnum==30){return} // Socket774A774KBA21‹ÖA[1-30]A‚È‚Ç‚Í–³Ž‹
19+ if(before && before.match(/–¼–³/)){return} //–¼–³‚µ‚Á‚Û‚¢‚Ì‚Í–³Ž‹
20+ if(after) {if(after=="Žü”N"){return}} // ƒfƒtƒHƒ‹ƒg‚È"‚ŽŽü”N"‚Í–³Ž‹
21+ var nB = before ? "<b>"+before+"</b><b>":"<b>"; nB+=addAnchor(hnum,num); nB+=after ? "</b><b>"+after+"</b>":"</b>";
22+ e.outerHTML=nB;
23+}
24+//=========Žã‚ ‚ځ`‚ñ‚̃|ƒbƒvƒAƒbƒv
25+function abonePopup(e){e.outerHTML = "<b>"+addAnchor(e.parentElement.previousSibling.innerText,'‚ ‚ځ`‚ñ')+"</b>";}
26+//=========ŒŸõ‚µ‚½ƒŒƒX‚̃|ƒbƒvƒAƒbƒv
27+function searchPopup(obj){
28+ var reg,cArray;var tag=obj.tagName;
29+ /*ref Popup*/if (tag=="A") {if(refHash[obj.innerText]){cArray=refHash[obj.innerText].split(" ")}else{return}}
30+ /*ID Popup*/ else if(tag=="SPAN"){reg=getID(obj);if(reg&&reg.length>3){cArray=idHash[reg].split(" ");}else{return} if(cArray.length==1){return}}
31+ /*ŒŸõPopup*/else if(tag=="TT") {var cHash=(obj.parentElement.rel=="res")?foundRes:highlight;cArray=cHash[obj.parentElement.firstChild.style.backgroundColor];if(!cArray){return}}
32+ var targetString=""; for(var i=0;i<cArray.length;i++){targetString+=returnString(cArray[i]);} //’†g‚̐؂èo‚µ
33+ if(targetString){popup(targetString);} //‘Ώۂª‘¶Ý‚µ‚½‚çƒ|ƒbƒvƒAƒbƒv
34+}
35+//=========‘½’iƒ|ƒbƒvƒAƒbƒv
36+//Eƒ|ƒbƒvƒAƒbƒv‚̍쐬
37+function makePopContent(obj){
38+ //Ž–‘O€”õ
39+ var num=obj.innerText.replace(/[>„]/g,""); var number=tohan(num);
40+ if(!obj.rel){obj.rel=obj.href;} obj.href="decoy:"; // ƒuƒ‰ƒEƒU–{‘̂̃|ƒbƒvƒAƒbƒv‰ñ”ð
41+ //”ԍ†’²¸
42+ if(number.match(/(\d*)\D+(\d*)/)){var start=parseInt(RegExp.$1); var end=parseInt(RegExp.$2);}
43+ else {var start=end=parseInt(number);}
44+ if(end-start>100){end=start+100} // 100ˆÈã•\Ž¦‚µ‚È‚¢
45+ //’†g‚̐؂èo‚µ
46+ var targetString=""; for(var i=0;i<=end-start;i++){targetString+=returnString(start+i)}
47+ //‘Ώۂª‘¶Ý‚µ‚½‚çrel‚É‘Þ”ð‚µ‚Äƒ|ƒbƒvƒAƒbƒv
48+ if(targetString){popup(targetString);}else{obj.href=obj.rel;}
49+}
50+//E’†g‚̐؂èo‚µ
51+function returnString(num){
52+ var obj=getDTfromAnc(num);
53+ setSearchColor(obj);//ƒ|ƒbƒvƒAƒbƒvæ‚Ì’…F
54+ if(!obj){return("")} //‘Ώۂª“§–¾‚ ‚ځ`‚ñ‚È‚çI—¹
55+ var dt=obj.cloneNode(true);
56+ var dtOuter=dt.outerHTML.replace(/name=.*?>/g,">"); // LABELNUMBER‘Ήž‚Ì‚à‚Ì‚ÉŒW‚郊ƒ“ƒNƒAƒ“ƒJ[‚̏œ‹Ž
57+ var dd=obj.nextSibling.cloneNode(true);
58+ if(dd.hasChildNodes()){
59+ while(dd.lastChild.name){dd.lastChild.removeNode(true)} // LABELNUMBER”ñ‘Ήž‚Ì‚à‚Ì‚ÉŒW‚郊ƒ“ƒNƒAƒ“ƒJ[‚̏œ‹Ž
60+ if(dd.lastChild.tagName=="DL"){dd.lastChild.removeNode(true)} // ‹tŽQÆ‚̏œ‹Ž
61+ }
62+ var ddOuter=dd.outerHTML;
63+ return(dtOuter+ddOuter);
64+}
65+//Eƒ|ƒbƒvƒAƒbƒv
66+var pb;
67+function popup(inner){
68+ if(!pb){document.body.insertAdjacentHTML('afterBegin','<div id="popupBase"></div>');pb=document.getElementById("popupBase")}
69+ //—v‘f‚̍쐬
70+ var parent=event.srcElement.parentElement;
71+ //var aNum= (parent.tagName!="DD") ? parent.firstChild.sourceIndex : parent.previousSibling.firstChild.innerText; // DDˆÈŠO–¼‘O—“A‰æ‘œAIDŒŸõ
72+ var aNum=event.srcElement.sourceIndex;if(!aNum){alert("aNumŽæ“¾ƒGƒ‰[")}
73+ if(document.getElementById('p'+aNum)){return} // ƒ|ƒbƒvƒAƒbƒv‚µ‚Ä‚½‚çI—¹
74+ pb.insertAdjacentHTML("beforeEnd",'<dl id="p'+aNum+'">'+inner+'</dl>');
75+ //—v‘f‚Ì”z’u
76+ var p=document.getElementById('p'+aNum);
77+ // yŽ²’²®
78+ var pos=Math.min(event.y,document.body.clientHeight-event.y);
79+ var scTop=document.body.scrollTop+event.y;
80+ if(pos==event.y){var y=scTop-30;} // ƒJ[ƒ\ƒ‹‚̉º‚Ö•\Ž¦
81+ else {var y=scTop+10-p.clientHeight;} // ƒJ[ƒ\ƒ‹‚̏ã‚Ö•\Ž¦
82+ if(y<0){y=0}
83+ if(event.srcElement.parentElement.tagName=="TT"){y+=35;}
84+ p.style.pixelTop=y;
85+ // xŽ²’²®
86+ var pos=Math.min(event.x,document.body.clientWidth-event.x);
87+ var scLeft=document.body.scrollLeft+event.x;
88+ if(pos==event.x){var x=scLeft-2} // ƒJ[ƒ\ƒ‹‚̉E‚Ö•\Ž¦
89+ else {var x=scLeft-4-p.clientWidth;} // ƒJ[ƒ\ƒ‹‚̍¶‚Ö•\Ž¦
90+ if(x<0){x=0}
91+ p.style.pixelLeft=x;
92+ // ‚‚³’²®iscrollBar‚ð—v‚·ê‡‚Æ—v‚µ‚È‚¢ê‡‚ª‚ ‚éj¨yŽ²’²®
93+ if(p.clientHeight>Math.max(event.y,document.body.clientHeight-event.y)){
94+ if(p.clientHeight>document.body.clientHeight){p.style.pixelHeight=document.body.clientHeight-2;}
95+ p.style.pixelTop=document.body.scrollTop;
96+ }
97+}
98+//Eƒ|ƒbƒvƒAƒbƒvÁ‹Ž
99+function removePopup(popid){
100+ if(pb){while(pb.lastChild){pb.lastChild.removeNode(true)}}
101+}
102+//”’l•ÏŠ·ito”¼Špj
103+function tohan(num){
104+ var zen="‚O‚P‚Q‚R‚S‚T‚U‚V‚W‚X";
105+ var han="0123456789";
106+ var hnum="";
107+ if(zen.indexOf(num.charAt(0))!=-1){
108+ for(var i=0;i<num.length;i++){
109+ var at=zen.indexOf(num.charAt(i));
110+ hnum+=han.charAt(at);
111+ }
112+ }else{hnum=num}
113+ return hnum;
114+}
--- /dev/null
+++ b/res/skin/skin30-2G_IE7/chie_search.js
@@ -0,0 +1,489 @@
1+beID=false; // be‚ɃƒOƒCƒ“o—ˆ‚éê‡‚́Atrue
2+//==========ŒŸõÝ’è
3+var expression="multiAND"; // ŒŸõ•û–@@@default:•W€AregExp:³‹K•\Œ»AmultiAND:ANDŒŸõAmultiOR:ORŒŸõ
4+var searchView="resList"; // ŒŸõŒ‹‰Ê•\Ž¦@@resList:ŠY“–ƒŒƒX”ԍ†•\Ž¦AresPopup:ŠY“–ƒŒƒXƒ|ƒbƒvƒAƒbƒvA
5+var resultView=false; // ŒŸõŒ‹‰Ê‚̏펞•\Ž¦@@true:íŽž•\Ž¦Afalse:ƒ}ƒEƒX‚ŋ߂¯‚½‚Æ‚«‚Ì‚Ý•\Ž¦
6+var listLimit =10; // searchView‚ªresPopup‚Å‚È‚¢ê‡‚́AƒŒƒX”ԍ†‚Ì•\Ž¦§ŒÀ
7+//==========ƒŒƒX”ԍ†A“ú•t•¶Žš—ñ‚Ì’…FÝ’è
8+coloring=1; // ’…F‚·‚é:1@’…F‚µ‚È‚¢:0
9+threshold1=[2,"#0000ff"]; // ‘‚«ž‚Ý‚ª•¡”‚ ‚éID ‚Ì‚µ‚«‚¢’l‚ƐF
10+threshold2=[5,"#aaaa00"]; // ‘‚«ž‚Ý‚ª‘½”‚ ‚éID ‚Ì‚µ‚«‚¢’l‚ƐF
11+threshold3=[8,"#ff0000"]; // ‘‚«ž‚Ý‚ª‘½”‚ ‚éID ‚Ì‚µ‚«‚¢’l‚ƐF
12+threshold4=[1,"#0000FF"]; // ‘‚«ž‚Ý‚ª‚ ‚é ƒŒƒX ‚Ì‚µ‚«‚¢’l‚ƃŒƒX”ԍ†‚̐F
13+threshold5=[4,"#aaaa00"]; // ‘‚«ž‚Ý‚ª‘½”‚ ‚郌ƒX ‚Ì‚µ‚«‚¢’l‚ƃŒƒX”ԍ†‚̐F
14+threshold6=[7,"#ff0000"]; // ‘‚«ž‚Ý‚ª‘½”‚ ‚郌ƒX ‚Ì‚µ‚«‚¢’l‚ƃŒƒX”ԍ†‚̐F
15+//==========–¼‘OEIDŒŸõ‚É‚æ‚郌ƒX‚̑т̐FŽw’èi16i”–”‚ÍWebŒ`Ž®‚̐F–¼‚ÅŽw’èB‚¢‚­‚‚łà‰ÂBƒAƒ‹ƒtƒ@ƒxƒbƒg‚͏¬•¶Žš‚Å‚¨Šè‚¢j
16+var foundResColor =new Array("#ffdfee","#eeffdf","#ffeedf","#dfffee","#eedfff","#ffffe1");
17+//==========’PŒêŒŸõ‚É‚æ‚éƒnƒCƒ‰ƒCƒgFŽw’èi“¯ãj
18+var highlightColor=new Array("#ffff66","#a0ffff","#99ff99","#ff9999","#ff66ff","#880000","#00aa00","#886800","#004699","#990099");
19+//==========ˆÈ‰º‚̓XƒNƒŠƒvƒg–{•¶‚Å‚·‚æB
20+// ƒCƒxƒ“ƒgƒnƒ“ƒhƒ‰FonClick,onScroll,onMousemove
21+// ŠO•”ŠÖ”FaddAnchor,checkAnchor,tohan,searchPopup
22+// ŠO•”•Ï”FanchorHead,browser,fp
23+// ‹tŽQÆ‚Ì“Á’¥FƒCƒxƒ“ƒg”­¶DT‚ɑΉž‚·‚éDD‰º‚ɁADL-DT-DD\‘¢‚ðì¬‚·‚éB
24+//==========CSS‚̏o—Í
25+var nCSS='';
26+nCSS+='#foundPanel {position:absolute;top:expression(body.scrollTop+25);right:18px;padding:2px 5px;z-index:6;background-color:white;border:1px solid #999;visibility:hidden}';
27+nCSS+='#foundPanel div{padding-left:5px;text-align:right;font-size:100%;}';
28+nCSS+='.refResult{margin:0.5em 0.3em; border:1px solid #666;padding-right:0px}';
29+nCSS+='.refResult{border-top:none}';
30+nCSS+='.refResult dt{margin-right:0px;}';
31+nCSS+='.refResult dd{margin-left:0.8em;}';
32+document.write('<style type="text/css">'+nCSS+'</style>\n');
33+var nCSS='';
34+for(var css in foundResColor){
35+ var c=foundResColor[css].replace(/#/,"");
36+ nCSS+='#COLOR'+c+" a{border-color:"+foundResColor[css]+"}\n";
37+ nCSS+='#COLOR'+c+" a:hover{border-color:red}\n";
38+}
39+document.write('<style type="text/css">'+nCSS+'</style>\n');
40+//=========ŠO•”ƒtƒ@ƒCƒ‹‹¤—p‚̃Oƒ[ƒoƒ‹•Ï”
41+var dts=document.getElementsByTagName('DT');
42+var dds=document.getElementsByTagName('DD');
43+var idHash=new Array(); var refHash=new Array();
44+var foundRes,highlight;
45+//==========ID‚ÆŽQÆ‚ðƒnƒbƒVƒ…‚ÉŠi”[
46+// ”z—ñ‚̃nƒbƒVƒ…‚æ‚èŒy‚¢‚Á‚Û‚¢‚̂ŁA‹ó”’‹æØ‚è‚Ì’l‚É‚æ‚é’Pƒ‚ȃnƒbƒVƒ…‚É‚µ‚Ä‚Ý‚éƒeƒXƒgB
47+// setEndIdx:–{•¶‚Ì“¯ƒŒƒX‚ðd•¡ˆ—‚µ‚È‚¢‚悤‚ɁAHash‰»ˆÊ’u‚Æ‚µ‚Ä‚Ìdts‚̍ŏIindex‚ð‹L‰¯
48+// setEndNum:–{•¶ˆÈŠOƒŒƒX‚ðd•¡ˆ—‚µ‚È‚¢‚悤‚ɁAÅIƒŒƒX”ԍ†‚ð‹L‰¯
49+var setEndIdx=setEndNum=0;
50+function setHash(){
51+ //var t0=new Date();
52+ var l=Math.min(dts.length,dds.length);
53+ var lastNum=l ? parseInt(dts[l-1].firstChild.innerText) : 0;
54+ if(isNaN(lastNum)&&l>1){lastNum=parseInt(dts[l-2].firstChild.innerText)} //Footer‚ ‚è‚È‚çˆê‚‘O
55+ if(l==0 || lastNum<=setEndNum){return} // ÅŒã‚Ü‚Å’²¸Ï‚Ý‚È‚ç‰ñ”ð
56+ for(var i=setEndIdx;i<l;i++){
57+ if(dds[i].parentElement.className=="refResult"){continue} // ‹tŽQÆ“à‚ÌDD‚È‚ç‰ñ”ð
58+ var num=dts[i].firstChild.innerText; var span=dts[i].lastChild;
59+ // ID
60+ var t=getID(span); if(t&&t.length>3){idHash[t] = idHash[t] ? idHash[t]+" "+num : num;} // ???‚âID:0,ID:#(@ƒ]ƒk)‚̓Xƒ‹[B
61+ // ‰æ‘œ”Â
62+ var imgURL=getIMG(span);
63+ if(imgURL){
64+ var dd=dts[i].nextSibling;
65+ if(tp && imgURL && !dd.getElementsByTagName("IMG").length){
66+ var aObj=(dd.innerText)?'<br><a href="'+imgURL+'">'+imgURL+'</a>':'<a href="'+imgURL+'">'+imgURL+'</a>';
67+ if(!beID && imgURL.match(/kako/)){/*dd.insertAdjacentHTML("beforeEnd","<br>Be‚ɃƒOƒCƒ“‚µ‚Ä‚È‚¢‚Ǝ擾‚Å‚«‚Ü‚¹‚ñ");*/}else{dd.insertAdjacentHTML("beforeEnd",aObj)}
68+ }
69+ }
70+ // ref,IMG
71+ var ddAnc=dds[i].getElementsByTagName("A");
72+ for(var j=0;j<ddAnc.length;j++){
73+ try{ddAnc[j].href}catch(err){continue} // IE7‚¾‚Ɖ½ŒÌ‚©href‚ªŽæ“¾o—ˆ‚È‚¢A—v‘f‚ª‚ ‚é
74+ var ancType=checkAnchor(ddAnc[j].href);
75+ if (ancType==0){
76+ continue;
77+ }else if(ancType==1){
78+ var anc=tohan(ddAnc[j].innerText.replace(/[>„]/g,""));var start,end;
79+ if(anc.match(/(\d*)\D+(\d*)/)){
80+ start=parseInt(RegExp.$1); end=parseInt(RegExp.$2);
81+ if( (end-start>100) || (num-end<4 && start==1) ){continue} // >>1-1000‚Æ‚©>>1-n(’¼‘OƒŒƒX)‚Æ‚©‚͉ؗí‚ɃXƒ‹[
82+ }else{
83+ start=end=parseInt(anc);
84+ }
85+ var k=start-1;do{k++;
86+ if((!refHash[k] || refHash[k].indexOf(num)==-1) && num>k){refHash[k]=refHash[k] ? refHash[k]+" "+num : num;} // d•¡‚â–¢—ˆ‚ւ̃Aƒ“ƒJ[‚̓Xƒ‹[
87+ }while(k<end);
88+ }else if(imageExt2(ddAnc[j].href) && onOpenLoad!=0){
89+ if(onOpenLoad==1){if(dds[i].previousSibling.className!="new"){continue}}
90+ insButton(ddAnc[j],ddAnc[j].href);
91+ }
92+ }
93+ }
94+ setEndIdx=l;setEndNum=lastNum;
95+ //var t1=new Date(); var t=(t1-t0)/1000; if(t){alert(t+"•b");}
96+}
97+// ƒXƒŒƒbƒhƒEƒBƒ“ƒhƒE’†S‚É‘OŒã5ƒŒƒX‚𒅐F
98+var resUnit=new Array();
99+function searchColoring(){
100+ if(!coloring){return;} // ’…F•s—v‚È‚çI—¹
101+ if(!scr){scr=lightmode ? document.body : document.getElementById("dl");}
102+ var nowScrollPos=scr.scrollTop+document.body.clientHeight/2;
103+ var l=Math.min(dts.length,dds.length);var st,ed;
104+ // dt‚ÌoffsetTop‚ðŠi”[i25ƒŒƒX’PˆÊj
105+ if(resUnit.length<=Math.floor(dts.length/25)){resUnit[0]=0;
106+ for(var i=25;i<l;i+=25){resUnit[i/25]=dts[i].offsetTop;}
107+ }
108+ // Œ»Ý‚Ç‚Ì‚ ‚½‚è‚܂ŃXƒNƒ[ƒ‹‚µ‚Ä‚é‚©’²¸
109+ var rul=resUnit.length-1;
110+ if (rul==0) {st=0;ed=l-1;} //25–¢–ž
111+ else if(resUnit[0]>nowScrollPos) {st=0;ed=24;} //0-24
112+ else if(resUnit[rul]<nowScrollPos){st=l-26;ed=l-1;} // ÅI25ƒŒƒX
113+ else{
114+ for(var i=rul;i--;){
115+ if(resUnit[i+1]>nowScrollPos&&resUnit[i]<=nowScrollPos){st=i*25;ed=st+25;break}
116+ }
117+ }
118+ // Œ»Ý‚Ì”ÍˆÍ“à‚©‚çƒEƒBƒ“ƒhƒE‚̐^‚ñ’†‚ ‚½‚è‚É•\Ž¦‚µ‚Ă郌ƒX‚ðŽæ“¾i‚±‚±‚Å’…F‚·‚é‚ƁA25ƒŒƒX’PˆÊ‚̐ؑ֎ž‚ɐ”ƒŒƒX‚ª’…F‚³‚ê‚È‚¢j
119+ var dtIdx=0; //if(cp){cp.childNodes[1].value=(st+1)+"-"+(ed+1);cp.style.visibility="visible";}
120+ for(var i=st;i<=ed;i++){if(!dts[i+1]){dtIdx=ed;break;}
121+ if(dts[i+1].offsetTop>nowScrollPos && dts[i].offsetTop<=nowScrollPos){dtIdx=i;break;}
122+ }
123+ // dtIdx‚©‚ç‚»‚ÌŽü•Ó‚ð“Á’è
124+ var start=dtIdx-5;var end=dtIdx+5;//
125+ for(var i=start;i<=end;i++){
126+ if(dts[i]){setSearchColor(dts[i])}
127+ }
128+}
129+// IDHashArefHash‚ðŒ³‚É’…F
130+function setSearchColor(dt){
131+ if(!dt.innerText){return}
132+ // ID
133+ var span=dt.lastChild; var t=getID(span);//alert(t +"&&"+ idHash[t] +"&&"+ span);
134+ if (browser=="ƒzƒbƒgƒ]ƒk‚Q"){span=span.lastChild}
135+ else if(browser=="A Bone") {span=span.childNodes[1]}
136+ if(t && idHash[t] && span){
137+ var idResult=idHash[t].split(" "); if(t.match(/\?\?\?/)){idResult="";idHash[t]="";}
138+ if (idResult.length>=threshold3[0]){span.style.color=threshold3[1];span.title="“¯ˆêID ("+idResult.length+"‰ñ)\n"+idHash[t]}
139+ else if(idResult.length>=threshold2[0]){span.style.color=threshold2[1];span.title="“¯ˆêID ("+idResult.length+"‰ñ)\n"+idHash[t]}
140+ else if(idResult.length>=threshold1[0]){span.style.color=threshold1[1];span.title="“¯ˆêID ("+idResult.length+"‰ñ)\n"+idHash[t]}
141+ else if(idResult.length==1){span.title="“¯ˆêID‚Í\n‚ ‚è‚Ü‚¹‚ñ"}
142+ }
143+ // ref
144+ var numA=dt.firstChild; var num=numA.innerText;
145+ if(refHash[num]){
146+ var refResult=refHash[num].split(" ");
147+ if (refResult.length>=threshold6[0]){numA.style.color=threshold6[1];dt.title="‚±‚ê‚ւ̃ŒƒX ("+refResult.length+"ŒÂ)\n"+refHash[num];}
148+ else if(refResult.length>=threshold5[0]){numA.style.color=threshold5[1];dt.title="‚±‚ê‚ւ̃ŒƒX ("+refResult.length+"ŒÂ)\n"+refHash[num];}
149+ else if(refResult.length>=threshold4[0]){numA.style.color=threshold4[1];dt.title="‚±‚ê‚ւ̃ŒƒX ("+refResult.length+"ŒÂ)\n"+refHash[num];}
150+ else{numA.title="‚±‚ê‚ւ̃ŒƒX‚Í‚È‚¢–Í—l"}
151+ }
152+ // anc
153+ var dd=dt.nextSibling; if(!dd){return} // footer‚Ìdt‚©‚çŒÄ‚΂ê‚é‚ÆŽŸ‚Ìdd‚Í•s‘¶Ý
154+ ddAnc=dd.getElementsByTagName("A");
155+ for(var i=ddAnc.length;i--;){
156+ var h=tohan(ddAnc[i].innerText);var tNum=h.replace(/\D/g,"");
157+ if(refHash[tNum]){
158+ var refResult=refHash[tNum].split(" ");
159+ if (refResult.length>=threshold6[0]){ddAnc[i].style.color=threshold6[1];}
160+ else if(refResult.length>=threshold5[0]){ddAnc[i].style.color=threshold5[1];}
161+ else if(refResult.length>=threshold4[0]){ddAnc[i].style.color=threshold4[1];}
162+ }
163+ }
164+}
165+//==========–¼‘OEIDŒŸõ“™
166+function searchPerson(obj){
167+ var by,thisDT,reg;
168+ if (obj.tagName=="DT") {by="ID"; thisDT=obj; reg=getID(obj)}
169+ else if(obj.tagName=="SPAN"){by="ID"; thisDT=obj.parentElement;reg=getID(obj)}
170+ else if(obj.tagName=="U") {by="NAME";thisDT=obj.parentElement; reg=obj.innerHTML.replace(/<B>(.*?)<\/B>/ig,"");if(!reg){reg=RegExp.$1.replace(/<.*?A.*?>/ig,"")}/*–¼‘O‚ª”Žš*/}
171+ else if(obj.tagName=="B") {by="NAME";thisDT=obj.parentElement.parentElement;reg=obj.innerText}
172+ else{return}
173+ if(!thisDT.rel){
174+ var c=selectColor("res"); if(!c){return} var color=new Array(c); // ƒJƒ‰[‘I‘ð
175+ if(by=="ID"){
176+ if(!reg || !idHash[reg]){return} // ID‚È‚µAID:???A–{•¶’†‚Ì‘¼ƒXƒŒ‚̃RƒsƒyID
177+ // ŒŸõƒnƒbƒVƒ…‚É’l‚ðÝ’肵‚āA‚»‚ê‚ÉŠî‚«ƒŒƒX’…F
178+ foundRes[c]=idHash[reg].split(" "); foundRes[c].word="ID:"+reg;
179+ for(i in foundRes[c]){var dt=getDTfromAnc(foundRes[c][i]);toggleResColor(dt,c);}
180+ }else{
181+ var us=document.getElementsByTagName("U"); var l=us.length;
182+ var regName=new RegExp();regName.compile(reg);
183+ // ƒ‹[ƒv’†‚ɃŒƒX’…FE’l‚̐ݒè‚𓯎žŽÀs
184+ for(var i=l;i--;){var dt=us[i].parentElement;
185+ if(dt.parentElement.className=="refResult"){continue} // ‹tŽQÆ“à‚ÌDT‚È‚ç‰ñ”ð
186+ if(regName.test(us[i].innerText)){toggleResColor(dt,c);foundRes[c].unshift(dt.firstChild.innerText);}
187+ }
188+ foundRes[c].word=reg;
189+ }
190+ returnFound("res",color);
191+ }else{
192+ clearColor("res",thisDT.style.backgroundColor);
193+ }
194+}
195+// ID•¶Žš—ñ‚Ì’Šo
196+var regID=new RegExp(); // HOST‚à‰Â”\‚É‚µ‚Ä‚Ý‚é
197+regID.compile(".*?\\s.*?\\s.*:(.*?)(\\s|$)"); // 1000res‚Å0.02•b‚قǍ‚‘¬
198+function getID(span){
199+ if(regID.test(span.innerText)){return(RegExp.$1)}else{return(false)}
200+}
201+//==========FÝ’è‰ðœ
202+// ƒIƒuƒWƒFƒNƒg‚̏‰Šú‰»
203+function createHash(name,key,arr,word){
204+ name[key]=arr?arr:new Array();
205+ name[key].word=word?word:"";
206+ name[key].justMovedRes=undefined;
207+}
208+// F‘I‘ð(ŠY“–ƒŒƒX”ԍ†”z—ñ‚ðŽ‚½‚È‚¢ƒL[‚ð•Ô‚·)
209+function selectColor(type){
210+ if(!foundRes) {foundRes =new Array();for(var i in foundResColor) {createHash(foundRes,foundResColor[i]);}} // Hash foundRes ={F:ŠY“–ƒŒƒX”ԍ†”z—ñ}
211+ if(!highlight){highlight=new Array();for(var i in highlightColor){createHash(highlight,highlightColor[i]);}} // Hash hightLight={F:ŠY“–ƒŒƒX”ԍ†”z—ñ}
212+ var cHash,cArray,cMess;
213+ if(type=="res"){cHash=foundRes; cArray=foundResColor; cMess="¡‚܂ł̃ŒƒX’…F‚ð‰ðœ‚µ‚Ü‚·‚©H";}
214+ else {cHash=highlight;cArray=highlightColor;cMess="¡‚܂ł̃nƒCƒ‰ƒCƒg‚ð‰ðœ‚µ‚Ü‚·‚©H";}
215+ var i=0; while(cHash[cArray[i]].word){
216+ i++; if(i==cArray.length){if(confirm(cMess)){clearColor(type);i=0;break}else{i=null;break}}
217+ }
218+ return(cArray[i]);
219+}
220+// F‰ðœiƒnƒbƒVƒ…A‘ΏہAfoundPanelj
221+function clearColor(type,color){
222+ var cHash=(type=="res")?foundRes:highlight;
223+ if(event && event.altKey){color=""}
224+ for(var i in cHash){
225+ if(type=="res"){
226+ if(color && i!=color){continue} // Žw’èF‚Å‚È‚¯‚ê‚΃Xƒ‹[
227+ for(var j in cHash[i]){
228+ if(event.srcElement.value=="DEL"){removeRes(getDTfromAnc(cHash[i][j]))}else{toggleResColor(getDTfromAnc(cHash[i][j]))}
229+ }
230+ cHash[i]=new Array();
231+ document.getElementById("c"+i).removeNode(true);
232+ }else{
233+ var strongs=document.getElementsByTagName("STRONG");
234+ var reg=new RegExp(i);
235+ if(!color.match(i)){continue} // Žw’èF‚Å‚È‚¯‚ê‚΃Xƒ‹[
236+ for(var j=0;j<strongs.length;j++){
237+ if(strongs[j].style.backgroundColor==i){
238+ if(event.srcElement.value=="DEL"){removeRes(strongs[j].parentElement.previousSibling);j--}else{strongs[j].removeNode(false);j--}
239+ }
240+ }
241+ cHash[i]=new Array();
242+ if(document.getElementById("c"+i)){document.getElementById("c"+i).removeNode(true);} // and,orŒŸõ‚Å‚PF–Ú‚Ì‚Ý
243+ }
244+ }
245+ if(!fp.hasChildNodes()){fp.style.visibility="hidden";searched=false;}
246+}
247+// ƒŒƒXFƒgƒOƒ‹
248+function toggleResColor(dt,c){
249+ if(!dt){return} // for-in‚Å‘—‚ç‚ê‚é”ԍ†ˆÈŠO‚Ìobj‚È‚çI—¹
250+ if(c){
251+ dt.rev=dt.style.backgroundColor;
252+ dt.rel="colored";
253+ dt.id ="COLOR"+c.replace(/#/,"");
254+ dt.style.backgroundColor=c;
255+ }else{
256+ dt.style.backgroundColor=dt.rev;
257+ if(dt.id.match(/COLOR/)){dt.removeAttribute("id")}//else{alert("dt‚ÉCOLOR***ˆÈŠO‚Ìidi"+dt.id+"j‚ªÝ’肳‚ê‚Ä‚¢‚Ü‚·")}
258+ dt.removeAttribute("rev");
259+ dt.removeAttribute("rel");
260+ }
261+}
262+// ŒŸõŒ‹‰Ê‚ÉŠî‚«Á‹Ž
263+function removeRes(dt){if(!dt){return} // cHash[i][j]=ID:xxxxxxxx‚Ì‚Æ‚«
264+ if(browser=="Live2ch"){location.href='func:ABONECLEAR?'+dt.firstChild.innerText;} // Live‚Ì‚Ý-“§–¾‚ ‚ځ`‚ñ
265+ dt.nextSibling.removeNode(true);dt.removeNode(true);
266+}
267+//==========Œ‹‰Ê•\Ž¦
268+// ƒŒƒX”ԍ†ƒŠƒXƒgiƒ|ƒbƒvƒAƒbƒvƒAƒ“ƒJ[‚ðŠÜ‚ށj
269+function returnFound(type,color){
270+ var nDIV="";
271+ var cHash,numArray;
272+ // ‘ΏۃIƒuƒWƒFƒNƒgiŒŸõ‚ÌŽž‚͏d•¡”rœj
273+ if(type=="res"){
274+ cHash=foundRes;numArray=cHash[color[0]];
275+ }else{
276+ cHash=highlight;numArray=cHash[color[0]];
277+ }
278+ // •\Ž¦•û–@
279+ var display=new Array(["none","POP"],["inline","LST"]);
280+ if(searchView=="resPopup" || numArray.length==0 || numArray.length>=listLimit){display=display.reverse();}
281+ // ƒ|ƒbƒvƒAƒbƒv
282+ var nTT="";for(var i=0;i<color.length;i++){nTT+='<tt style="background-color:'+color[i]+'"> '+cHash[color[i]].word+'</tt>';}
283+ nDIV+='<span rel="'+type+'" style="display:'+display[0][0]+'">'+nTT+'</span>';
284+ // ƒŠƒXƒg
285+ var nA="";for(var i=0;i<numArray.length;i++){nA+=addAnchor(numArray[i],numArray[i])+" "}
286+ nDIV+='<tt style="background-color:'+color[0]+'" style="display:'+display[1][0]+'"> '+nA+'</tt>';
287+ // ŒÂ”
288+ nDIV+='&nbsp;'+numArray.length+' ';
289+ var buttons='<input type="button" value="'+display[0][1]+'" onclick="changeSearchView();blur()"><input type="button" value="É" onclick="moveToSearchRes(\''+type+'\',\''+color+'\')" title="‰º‚ÖŒŸõ"><input type="button" value="È" onclick="moveToSearchRes(\''+type+'\',\''+color+'\')" title="ã‚ÖŒŸõ"><input type="button" value="CLR" onclick="clearColor(\''+type+'\',\''+color+'\')" title="Alt‰Ÿ‰ºŽž\n’…FƒŒƒX‘S‚Ä"><input type="button" value="DEL" onclick="clearColor(\''+type+'\',\''+color+'\')" title="Alt‰Ÿ‰ºŽž\n’…FƒŒƒX‘S‚Ä">';
290+ fp.innerHTML+='<div id="c'+color[0]+'">'+nDIV+buttons+'</div>';
291+ fp.style.visibility="visible";searched=true;
292+}
293+// ‘ΏۃŒƒX‚ɃWƒƒƒ“ƒv
294+var markedDT;
295+function moveToSearchRes(type,color){
296+ if(color.match(/(.*?),/)){color=RegExp.$1}
297+ var scope = (event && event.srcElement.value=="È") ? false : true ;
298+ var numArray= (type=="res") ? foundRes[color] : highlight[color];
299+ if(isNaN(numArray.justMovedRes)){numArray.justMovedRes=0}
300+ else{
301+ markedDT.style.borderColor="#999";
302+ if(scope){numArray.justMovedRes++;if(numArray.justMovedRes>=numArray.length){numArray.justMovedRes--;alert("‚±‚ê‚æ‚艺‚É‚Í‚ ‚è‚Ü‚¹‚ñ")}}
303+ else {numArray.justMovedRes--;if(numArray.justMovedRes<0){numArray.justMovedRes++;alert("‚±‚ê‚æ‚èã‚É‚Í‚ ‚è‚Ü‚¹‚ñ")}}
304+ }
305+ markedDT=getDTfromAnc(numArray[numArray.justMovedRes]); markedDT.style.borderColor="red";
306+ markedDT.scrollIntoView(true);
307+ setTimeout('markedDT.style.borderColor="#999"',5000);
308+}
309+// ƒ|ƒbƒvƒAƒbƒv‚ƃŠƒXƒg•\Ž¦Ø‚è‘Ö‚¦
310+function changeSearchView(){
311+ var e=event.srcElement;
312+ if(e.value=="POP"){
313+ e.value="LST";
314+ e.parentElement.childNodes[0].style.display="inline";
315+ e.parentElement.childNodes[1].style.display="none";
316+ }else{
317+ e.value="POP";
318+ e.parentElement.childNodes[0].style.display="none";
319+ e.parentElement.childNodes[1].style.display="inline";
320+ }
321+}
322+
323+//==========’PŒêŒŸõ
324+function findIt(arg){createSearchPanel(arg);}
325+var searchWindow=null;
326+// ŒŸõƒEƒBƒ“ƒhƒE‚Ì•\Ž¦
327+function createSearchPanel(arg){ // ê—pƒuƒ‰ƒEƒU‚Å‚ÌmodelessDialog‚Ö‚ÌŠO•”“ǂݍž‚݂ł́AdialogArguments‚ª‘—‚ê‚È‚¢‚Ì‚Å’¼Ú‘‚«o‚·
328+ if(arg){word=arg}
329+ if(searchWindow && !searchWindow.closed){return}
330+ var skinPath=document.getElementsByName("SkinPath")[0].content;
331+ searchWindow=showModelessDialog("",window,'dialogWidth:500px;dialogHeight:200px;dialogTop:0px;dialogLeft:0px;help:no;resizable:yes;status:no;unadorned:yes;');
332+ var nWin='<html><head><title>’PŒê‚ÌŒŸõ<\/title>'
333+ +'<script type="text/javascript">function submitEvent(){var fo=document.forms[0]; dialogArguments.word=fo.word.value; var i=-1;do{i++;dialogArguments.expression =fo.expression[i].value;}while(!fo.expression[i].checked); var i=0; while(fo.searchTarget[i]){dialogArguments.searchTarget[fo.searchTarget[i].value]=fo.searchTarget[i].checked;i++;} var i=-1;do{i++;dialogArguments.searchView =fo.searchView[i].value;}while(!fo.searchView[i].checked); dialogArguments.searchWord();}</script>'
334+ +'<style type="text/css">body{background:ThreeDFace;padding:0.5em;overflow:auto} fieldset{padding:0.5em;margin-top:0.5em;} legend,label,input{font:message-box;}</style>'
335+ +'<\/head><body onunload="unloadEvent()"><form onsubmit="submitEvent();return false;"><table width="100%"><tr><td valign="top" colspan="3">'
336+ +'<label for="word">ŒŸõ•¶Žš—ñF</label><input type="text" name="word" id="word" size="50" value="'+word+'" tabindex="0"><br>'
337+ +'</td><td align="right" valign="top" rowspan="2">'
338+ +'<input type="submit" name="submit" value="@ŒŸ@õ@" tabindex="7"><br><br><input type="button" name="cancel" value="ƒLƒƒƒ“ƒZƒ‹" onclick="window.close()" tabindex="8">'
339+ +'</td></tr><tr valign="top">'
340+ +'<td><fieldset><legend>ŒŸõ•û–@</legend><input type="radio" name="expression" value="default" id="tDef" tabindex="1"> <label for="tDef">’ʏ팟õ</label><br><input type="radio" name="expression" value="regExp" id="tReg"> <label for="tReg">³‹K•\Œ»</label><br><input type="radio" name="expression" value="multiAND" id="tAND"> <label for="tAND">ANDŒŸõ</label><br><input type="radio" name="expression" value="multiOR" id="tOR"> <label for="tOR">ORŒŸõ</label></fieldset></td>'
341+ +'<td><fieldset><legend>ŒŸõ‘ΏÛ</legend><input type="checkbox" name="searchTarget" value="name" id="tName" tabindex="2" checked> <label for="tName">–¼‘O</label><br><input type="checkbox" name="searchTarget" value="mail" id="tMail" tabindex="3" checked> <label for="tMail">ƒ[ƒ‹</label><br><input type="checkbox" name="searchTarget" value="id" id="tID" tabindex="4" checked> <label for="tID">“ú•t‚ÆID</label><br><input type="checkbox" name="searchTarget" value="mess" id="tMess" tabindex="5" checked> <label for="tMess">–{•¶</label></fieldset></td>'
342+ +'<td><fieldset><legend>Œ‹‰Ê•\Ž¦</legend><input type="radio" name="searchView" value="resList" id="rList" tabindex="6"> <label for="rList">ƒŒƒX”ԍ†‚ð•\Ž¦</label><br><input type="radio" name="searchView" value="resPopup" id="rPop"> <label for="rPop">ƒŒƒX‚ðƒ|ƒbƒvƒAƒbƒv</label><br><input type="radio" name="searchView" value="resJump" id="rJump"> <label for="rJump">ƒŒƒX‚ÖƒWƒƒƒ“ƒv</label></fieldset></td>'
343+ +'</tr></table></form><\/body><\/html>';
344+ searchWindow.document.write(nWin);
345+ sdf=searchWindow.document.forms[0]; sdf.elements[0].select();
346+ var ex=sdf.expression;for(var i=0;i<ex.length;i++){if(ex[i].value==expression){ex[i].checked=true}}
347+ var sv=sdf.searchView;for(var i=0;i<sv.length;i++){if(sv[i].value==searchView){sv[i].checked=true}}
348+ range=document.body.createTextRange();
349+}
350+// ŒŸõˆ—ƒƒCƒ“
351+var word="";var range;var searchTarget={"word":true};
352+function searchWord(){
353+ if(!word){return} word=word.replace(/(^\x20+|\x20+$)/g,"");
354+ var matchs=new Array(); var color=new Array();
355+ // ŒŸõ•û–@
356+ if(expression=="regExp" || expression=="default" || (expression.match(/multi/) && !word.match(/\s/))){ // AND/OR‚ňê’PŒê‚È‚çdefault‚ÅŒŸõ
357+ // ŒŸõŒêŽw’è
358+ if(expression=="regExp"){
359+ var regWord=word.replace(/[\^\$]/g,"");
360+ var reg=new RegExp(regWord,"g"); var tmpArr=range.text.match(reg);
361+ if(!tmpArr || !tmpArr.length){tmpArr=new Array();}
362+ var tmpHash={}; for(var i=tmpArr.length;i--;){tmpHash[tmpArr[i]]=true} for(var i in tmpHash){matchs.push(i)} // ³‹K•\Œ»‚ł̃}ƒbƒ`ƒpƒ^[ƒ“‚̏d•¡‚ð”rœ
363+ if(!matchs || !matchs.length){matchs[0]=word} // ŒŸõŒ‹‰Ê0or1‚È‚çA”z—ñì¬
364+ }else{matchs[0]=word}
365+ // ƒnƒCƒ‰ƒCƒg¨d•¡”rœˆ—
366+ var tmpHash={};
367+ for(var i=0;i<matchs.length;i++){
368+ var tmp=setHighlight(matchs[i]);
369+ color[0]=tmp[0]; // ’PF‚Ȃ̂ŏí‚Écolor[0]‚É“ü‚ê‚é
370+ for(var j=tmp[1].length;j--;){tmpHash[tmp[1][j]]=true;} // “¯ˆêƒŒƒX“à•”‚Å‚Ì•¡”ƒ}ƒbƒ`‚ð”rœ
371+ }
372+ createHash(highlight,color[0],"",matchs[0]);
373+ for(var i in tmpHash){highlight[color[0]].push(i);}
374+ highlight[color[0]].sort(sortByInt);
375+ highlight[color[0]].word=word;
376+ }else{
377+ // ŒŸõŒêŽw’è
378+ var matchs=word.split(" "); var tmpArr=new Array();
379+ // ƒnƒCƒ‰ƒCƒg¨d•¡ˆ—
380+ for(var i=0;i<matchs.length;i++){
381+ var tmp=setHighlight(matchs[i]);
382+ color.unshift(tmp[0]);
383+ var tmpHash={};for(var j=tmp[1].length;j--;){tmpHash[tmp[1][j]]=true} for(var j in tmpHash){tmpArr.push(j);} // “¯ˆêƒŒƒX“à•”‚Å‚Ì•¡”ƒ}ƒbƒ`‚ð”rœ
384+ highlight[color[0]].word=matchs[i];
385+ }
386+ color.reverse();tmpArr.sort(sortByInt);
387+ createHash(highlight,color[0],"",matchs[0]); // ˆê’U‰Šú‰»
388+ var tmpHash={};var judge=(expression=="multiAND") ? matchs.length+"<=tmpHash[i]" : "1";
389+ for(var i=0;i<tmpArr.length;i++){if(tmpHash[tmpArr[i]]){tmpHash[tmpArr[i]]++}else{tmpHash[tmpArr[i]]=1}}
390+ for(var i in tmpHash){if(eval(judge)){highlight[color[0]].push(i)}} // ŒŸõŒ‹‰Ê‚Íhighlight[color[0]]‚É“ü‚ê‚é
391+ }
392+ // Œ‹‰Ê•\Ž¦
393+ if (searchView=="resList") {returnFound("search",color);searchWindow.close();}
394+ else if(searchView=="resPopup"){returnFound("search",color);searchWindow.close();}
395+ else if(searchView=="resJump") {returnFound("search",color);searchWindow.close();if(highlight[color[0]].length){moveToSearchRes("search",color.join(","))}}
396+}
397+// ƒnƒCƒ‰ƒCƒgŒŸõ
398+function setHighlight(reg){
399+ // ƒJƒ‰[‘I‘ð
400+ var c=selectColor("highlight"); if(!c){return} var nums=[];
401+ // ŒŸõ
402+ while(range.findText(reg)){
403+ var dt=range.parentElement();var tag=dt.tagName; var thisRange;
404+ // ŒŸõ‘Ώۂōi‚荞‚Ý
405+ if(tag=="B"||tag=="U"){thisRange="name"}
406+ else if(tag=="DT") {thisRange="mail"}
407+ else if(tag=="SPAN") {thisRange="id"}
408+ else if(tag=="DD" || tag=="A" && dt.parentElement.tagName=="DD"){thisRange="mess"}
409+ else if(tag=="STRONG"){thisRange="word"}
410+ else{/*alert("tagF"+tag+"\ndt:"+dt.outerHTML);*/range.collapse(false);continue;} // ƒŒƒX”ԍ†(A)‚⌟õŒ‹‰ÊŽ©‘Ì(TT)
411+ if(!searchTarget[thisRange]){range.collapse(false);continue;}
412+ // ³‹K•\Œ»‚̈ʒuŽw’èŽq‚ª‚ ‚éê‡A•ïŠÜ—v‘f“à•”‚ōČŸõ
413+ if(expression=="regExp" && word.match(/[\^|\$]/)){
414+ var thisReg=new RegExp(word); var targetText=(tag=="STRONG") ? dt.parentElement.innerText : dt.innerText;
415+ if(!targetText.match(thisReg)){range.collapse(false);continue}
416+ }
417+ // dtŽæ“¾¨ƒŒƒX”ԍ†Žæ“¾¨ƒnƒCƒ‰ƒCƒg
418+ if(dt.tagName!="DT"){
419+ while(dt.tagName!="DT" && dt.tagName!="DD"){dt=dt.parentElement}
420+ if(dt.tagName=="DD"){dt=dt.previousSibling}
421+ }
422+ var num=dt.firstChild.innerText;
423+ if(dt.parentElement.className!="refResult"){nums.push(num)} // ‹tŽQÆ“à‚ÌDT‚È‚ç‰ñ”ð
424+ range.pasteHTML('<strong style="background-color:'+c+'">'+range.text+'</strong>');
425+ range.collapse(false);
426+ }
427+ range=document.body.createTextRange(); // ƒŒƒ“ƒW‚ðŒ³‚É–ß‚µ‚Ä‚¨‚­
428+ return([c,nums]);
429+}
430+//==========‹tŽQÆ
431+function searchRef(obj){
432+ if(obj.name!='referred'){
433+ var num=obj.firstChild.innerText;
434+ if(refHash[num]){
435+ var refArr=refHash[num].split(/\s/); var refs="";
436+ for(var i=0;i<refArr.length;i++){refs+=returnString(refArr[i]);}
437+ obj.nextSibling.insertAdjacentHTML("beforeEnd",'<dl class="refResult">'+refs+'</dl>')
438+ obj.name="referred";
439+ }
440+ }else{
441+ obj.nextSibling.lastChild.removeNode(true);
442+ obj.name='';
443+ }
444+}
445+//==========ƒNƒŠƒbƒvƒ{[ƒh‚ɃRƒs[
446+function copyText(target){
447+ var num=event.srcElement.parentElement.name;
448+ var obj=getDTfromAnc(num);
449+ var textarea=document.createElement("TEXTAREA");
450+ var message=obj.nextSibling.innerText.replace(/\s(\r\n|$)/g,"\n");
451+ if (target=="res") {textarea.value=obj.firstChild.innerText+" F"+obj.childNodes[1].innerText+" F"+obj.lastChild.innerText+"\n"+message;}
452+ else if(target=="name"){textarea.value=obj.childNodes[1].innerText+"\n";}
453+ else if(target=="mail"){textarea.value=obj.childNodes[2].nodeValue+"\n";}
454+ else if(target=="id") {textarea.value="ID:"+(obj.lastChild.innerText.split(/ID:/))[1]+"\n";}
455+ var copyText=textarea.createTextRange();
456+ copyText.execCommand("Copy")
457+ event.srcElement.parentElement.removeNode(true);
458+}
459+//==========ƒAƒ“ƒJ[‚©‚çDT‚ð“Á’è
460+var ancs=document.anchors;
461+function getDTfromAnc(num){
462+ var anc=ancs(anchorHead+num);
463+ if(!anc){return("")} //LABELNUMBER‘Ήž‚Ì‚ ‚ځ`‚ñŽá‚µ‚­‚Í–¢o”ԍ†‚È‚çI—¹
464+ var obj=anc.parentElement; //LABELNUMBER‘Ήž‚Ì‚à‚Ì
465+ if(!obj || !obj.tagName){return false;}
466+ if(obj.tagName!="DT"){ //LABELNUMBER”ñ‘Ήž‚Ì‚à‚Ì
467+ if(num==1){if(anc){obj=anc.nextSibling} else{return("")}}
468+ else {if(!anc.nextSibling){obj=anc.parentElement.nextSibling}else{return("")}}
469+ }
470+ return(obj);
471+}
472+//==========sortŠÖ”
473+function sortByInt(x,y){return(x-y)}
474+
475+// ‰æ‘œ”Š֘A
476+var regIMG=new RegExp(".*?\\s.*?\\s.*:.*?\\sIMG:(.*?)(\\s|$)"); // ‰æ‘œ‚à‰Â”\‚É‚µ‚Ä‚Ý‚é
477+function getIMG(obj){
478+ if(regIMG.test(obj.innerText)){
479+ var filename=RegExp.$1;
480+ var tmp=filename.match(/(\d\d\d\d)(\d\d\d\d)(\d\d)/);
481+ var today=new Date();var last=new Date(today-7*24*60*60*1000);var date="";
482+ date+=last.getMonth()<9 ? "0"+(last.getMonth()+1) : last.getMonth()+1;
483+ date+=last.getDate()<10 ? "0"+last.getDate() : last.getDate();
484+ var log= (RegExp.$1+""+RegExp.$2 < last.getYear()+""+date) ? "_kako/" : "_img/";
485+ var fileurl="http://up01.2ch.io/"+log+RegExp.$1+"/"+RegExp.$1+RegExp.$2+"/"+RegExp.$3+"/"+filename;
486+ return(fileurl)
487+ }else{return(false)}
488+}
489+
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/Bookmark.html
@@ -0,0 +1 @@
1+<dt style="text-align:center;"><a name="koko"></a>ƒRƒR‚Ü‚Å“Ç‚ñ‚¾</dt><dd></dd>
\ No newline at end of file
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/Footer.html
@@ -0,0 +1,8 @@
1+<dt id="sizeinfo">@<span><SIZEKB/>KB (<SIZE/>Byte) <script type="text/javascript">
2+ end_time = new Date();
3+ start_num=start_time.getMilliseconds()+1000*(start_time.getSeconds()+60*start_time.getMinutes()+3600*start_time.getHours());
4+ end_num =end_time.getMilliseconds() +1000*(end_time.getSeconds() +60*end_time.getMinutes() +3600*end_time.getHours());
5+ document.write((end_num-start_num)/1000+'•b');
6+</script></span></dt><dd style="display:none">dummy_for_searchRef</dd></dl>
7+</body>
8+</html>
\ No newline at end of file
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/Header.html
@@ -0,0 +1,63 @@
1+<html lang="ja">
2+<head>
3+<title><THREADNAME/></title>
4+<meta http-equiv="Content-type" content="text/html; charset=Shift_JIS">
5+<meta name="ThreadURL" content="<THREADURL/>">
6+<meta name="SkinPath" content="<SKINPATH/>">
7+<meta name="GetRescount" content="<GETRESCOUNT/>">
8+<link rel="stylesheet" type="text/css" charset="Shift_JIS" href="<SKINPATH/>chie_blue.css">
9+<script type="text/javascript" charset="Shift_JIS" src="<SKINPATH/>chie_search.js"></script>
10+<script type="text/javascript" charset="Shift_JIS" src="<SKINPATH/>chie_image2.js"></script>
11+<script type="text/javascript" charset="Shift_JIS" src="<SKINPATH/>chie_popup.js"></script>
12+<script type="text/javascript" charset="Shift_JIS" src="<SKINPATH/>chie_event.js"></script>
13+<!--script type="text/javascript" charset="Shift_JIS" src="<SKINPATH/>chie_mail.js"></script-->
14+<script type="text/javascript" charset="Shift_JIS">
15+var start_time = new Date();
16+//==========ƒOƒ[ƒoƒ‹•Ï”
17+var anchorHead="";
18+var skinName="skin30-3 v3.7.1112";
19+var browser="ƒMƒRƒiƒr";
20+//==========ƒMƒRƒiƒr—pƒAƒ“ƒJ[‚Ì”»’èi0:ˆ—–³‚µ,1:ƒ|ƒbƒvƒAƒbƒv,2:ƒ{ƒ^ƒ“‘}“üj
21+// ƒMƒRƒiƒr‚ł́AƒŒƒXƒAƒ“ƒJ[‚Í‘Š‘΃AƒhƒŒƒX‚Å‹Lq‚³‚ê‚é
22+function checkAnchor(href){if(!href){return(0)}
23+ if (href.match(/decoy:|about:/)){return(1)}
24+ else if(href.match(/menu:|be:|read\.cgi|\.2ch\.net\/.*\/kako/)){return(0)}
25+ else{return(2)}
26+}
27+//==========ƒŠƒ“ƒNÝ’è
28+function addAnchor(inner,num){
29+ if(!t_url){threadurl()}
30+ var url=document.getElementsByName("ThreadURL")[0].content;
31+ if(url.match(/&/)){
32+ return('<a href="../test/read.cgi?bbs='+t_bbs+'&key='+t_key+'&st='+inner+'&to='+inner+'&nofirst=true" target="_blank" onclick="blur()">'+num+'</a>')
33+ }else{
34+ return('<a href="../test/read.cgi/'+t_bbs+'/'+t_key+'/'+inner+'" target="_blank" onclick="blur()">'+num+'</a>')
35+ }
36+}
37+// ƒXƒŒƒbƒhURL‚̎擾
38+var t_url=false,t_domain,t_bbs,t_key;
39+function threadurl(){
40+ var threadurl=document.getElementsByName("ThreadURL")[0].content;
41+ if(threadurl.match(/&/)){
42+ threadurl.match(/bbs=(.*)&key=(\d*)/);
43+ }else{
44+ threadurl.match(/^.*\/test\/read.cgi\/(.*)\/(.*)\//);
45+ }
46+ t_url=true;
47+ t_bbs=RegExp.$1;
48+ t_key=RegExp.$2;
49+}
50+//==========”ñ•\Ž¦ƒŒƒX‚Ì•\Ž¦-ƒMƒRƒiƒr‚Ì‚Ý
51+function hiddenRes(e){
52+ var number=tohan(event.srcElement.innerText.replace(/>|„/g,""));
53+ var i=0;while(document.anchors[i].name.match(/\D/)){i++}
54+ var startRes=parseInt(document.anchors[i+1].name.replace(/\D/g,""));
55+ if(number.match(/(\d*)\D+(\d*)/)){var start=parseInt(RegExp.$1);}
56+ else {var start=parseInt(number);}
57+ //alert(startRes+">"+start+" && "+start+"!="+1);
58+ if(startRes>start && start!=1){return true}else{return false}
59+}
60+</script>
61+</head>
62+<body>
63+<dl>
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/NewRes.html
@@ -0,0 +1 @@
1+<dt class="new"><NUMBER/><u><NAME/></u><MAIL/><span><DATE/></span></dt><dd><MESSAGE/></dd>
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/Newmark.html
@@ -0,0 +1 @@
1+<dt style="text-align:center;" class="new"><a name="new"></a>V’…ƒŒƒX | <NEWDATE/> Žæ“¾</dt><dd></dd>
\ No newline at end of file
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/Res.html
@@ -0,0 +1 @@
1+<dt><NUMBER/><u><NAME/></u><MAIL/><span><DATE/></span></dt><dd><MESSAGE/></dd>
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/chie_base.css
@@ -0,0 +1,93 @@
1+@charset "Shift_JIS";
2+* {font-family:"‚l‚r ‚oƒSƒVƒbƒN"}
3+/* ‚Ó‚¿–³‚µ */
4+body {margin:0px;padding:0px;}
5+/* ƒŠƒ“ƒN */
6+dt a{text-decoration:none;}
7+dd a{text-decoration:underline;line-height:1.1}
8+
9+/* ŒŸõŒ‹‰Ê */
10+#foundPanel{color:LightSlateGray;}
11+#foundPanel div {font-family:"‚l‚r ƒSƒVƒbƒN";}
12+#foundPanel div span{font-family:Times;cursor:hand;}
13+#foundPanel a {color:LightSlateGray;}
14+#foundPanel a:hover{color:#000;}
15+
16+/* dt */
17+dt{
18+ padding:0.3em;
19+ border-width:1px 0px;
20+ border-color:#999;
21+ border-style:solid;
22+}
23+
24+/* –¼‘O */
25+dt u {
26+ margin:1ex;
27+ text-decoration:none;
28+ cursor:hand;
29+}
30+u a{border-width:0px;padding:0px;}
31+
32+/* ID */
33+dt span{
34+ float:right;
35+/* margin-left:1em;*/
36+ margin-top:-23px;
37+ margin-right:0.5em;
38+ font-family:"‚l‚r ƒSƒVƒbƒN";
39+ font-size:95%;
40+ cursor: hand;
41+}
42+dt span a{font-family:"‚l‚r ƒSƒVƒbƒN";}
43+
44+/* dd */
45+dd{
46+ padding:0.5em 1em 0.5em 0em;
47+ word-break:break-all;
48+ word-wrap:break-word;
49+}
50+
51+/* ƒ{ƒ^ƒ“ */
52+input,button{ /*‚±‚±‚Å‚ÌŽw’è‚Íimage.css‚ŏ㏑‚«‚³‚ê‚é*/
53+ font-family:"Terminal";
54+ font-size:8px;
55+ margin:2px;
56+ border:1px solid #BCB5B5;
57+}
58+#controlPanel{
59+ position:absolute;
60+ top:expression(body.scrollTop+3);
61+ right:3px;
62+ padding:2px 3px;
63+ background-color:#789;
64+ z-index:6;
65+ visibility:hidden;
66+}
67+#command {text-align:center}
68+#command input{
69+ font-family:"‚l‚r ƒSƒVƒbƒN";
70+ font-size:9pt;
71+ margin:1px;
72+ width:98px;
73+}
74+#context {
75+ position:absolute;
76+ visibility:hidden;
77+ background-color:Menu;
78+ border-style:solid;
79+ border-width:2px;
80+ border-color:ThreeDHighlight ThreeDDarkShadow ThreeDDarkShadow ThreeDHighlight;
81+ padding:1px;
82+ z-index:7;
83+}
84+#context div{
85+ display:block;
86+ font:menu;
87+ padding:4px 17px;
88+ cursor:hand;
89+}
90+#sizeinfo{
91+ background-color:transparent;
92+ border:none;
93+}
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/chie_blue.css
@@ -0,0 +1,19 @@
1+@import url(chie_base.css);
2+/* ƒŠƒ“ƒN */
3+a{color:#000;}
4+dt a {border:1px solid #EEE;}
5+dt.new a {border:1px solid #DCEAF5;}
6+dt a:active {color:#F00; background-color:#FDD; border-color:#F44;}
7+dt a:hover {color:#F00; background-color:#FDD; border-color:#F44;}
8+
9+dd a:link {color:#06559B;}
10+dd a:visited{color:#669;}
11+dd a:active {color:#F55; background-color:#FDD;}
12+dd a:hover {color:#F55; background-color:#FDD;}
13+
14+/* dt */
15+dt {background-color: #EEE;}
16+dt.new {background-color:#DCEAF5;}
17+
18+/* ‹tŽQÆ“à•” */
19+.refResult dt a{color:#000;text-decoration:none}
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/chie_event.js
@@ -0,0 +1,285 @@
1+try{document.charset='Shift_JIS'}catch(e){}
2+//========V’…ƒWƒƒƒ“ƒvÝ’è
3+var buffer=1; // ’ᑬ‰ñü‚â’ᑬƒ}ƒVƒ“‚̏ꍇ‚É‚Íbuffer‚̐”’l‚𑝂₷‚Æ‚æ‚萳Šm‚ɃWƒƒƒ“ƒvi1‘‚â‚·‚Æ0.1•b’x‚ê‚éj
4+var newResJump=1; // V’…ƒŒƒXƒWƒƒƒ“ƒvi0:ƒuƒ‰ƒEƒU”C‚¹A1:“Ç—¹Žž‚̂݁A2:íŽžj–‚©‚¿‚ãAOpenJaneAtwintail‚݂̂̐ݒè
5+//==========ˆÈ‰º‚̓XƒNƒŠƒvƒg–{•¶‚Å‚·‚æB
6+//ƒCƒxƒ“ƒgƒnƒ“ƒhƒ‰’è‹`
7+//ŠO•”ŠÖ”Ftohan
8+//ŠO•”•Ï”FanchorHead,lightmode,getID,skinName,browser,dts
9+//=========ŠO•”ƒtƒ@ƒCƒ‹‹¤—p‚̃Oƒ[ƒoƒ‹•Ï”
10+var waited=false;//command•\Ž¦Œãtrue‚É‚µA‘I‘ðŒã‚Éfalse‚É‚·‚éB
11+var viewed=false;//thumb“Ǎž‚ÝŒãtrue‚É‚µAthumbPanel‚ɏæ~Œãfalse‚É‚·‚éB
12+var searched=false; //ŒŸõŒã‚ɁAtrue‚É‚µAfoundPanel‚ɏæ~Œãfalse‚É‚·‚éB
13+var cp,tp,vp,fp;
14+//========Clickˆ—¨search,‘¼
15+ document.onclick = clickEvent;
16+function clickEvent(){
17+ if(clickCancel){return false}else{clearTimeout(clickTimer);if(document.getElementById("context")){document.getElementById("context").removeNode(true);}}
18+ var obj=window.event.srcElement;
19+ var tag=obj.tagName;
20+ if(tag=="B"||tag=="U"||tag=="SPAN"){searchPerson(obj)} //–¼‘O,ƒgƒŠƒbƒv,ID
21+ else if(tag=="DT") {searchRef(obj)}
22+ else if(tag=="DD") {defaultPopup()}
23+ else if(tag=="A"){
24+ if(obj.rel){obj.href=obj.rel;}
25+ //if(obj.parentElement.tagName!="DIV"){setHistory(obj);}
26+ //”•t‚«ƒŠƒ“ƒN
27+ if(browser=="Live2ch" || browser=="‚©‚¿‚ã`‚µ‚á"){
28+ if(obj.href.match(/^http:.*#/)){window.open(obj.href,"_parent");return false}
29+ }
30+ //A Bone•â³i”ñ•\Ž¦ƒŒƒX‚Ì•\Ž¦j
31+ if((browser=="A Bone"||browser=="ƒMƒRƒiƒr") && hiddenRes(obj)){showModelessDialog(document.getElementsByName("ThreadURL")[0].content.replace(/\/l50$/,"/")+tohan(obj.innerText.replace(/[>„]/g,"")),window,"dialogWidth:"+document.body.clientWidth+"px;help:no;resizable:yes;status:no;unadorned:yes;");window.focus();}
32+ //Jane,Live,ƒMƒRƒiƒr•â³iskin30-2Normal‹y‚уMƒRƒiƒrj–ƒŒƒXƒWƒƒƒ“ƒv‚ªscrollIntoView‚Å‚È‚¢‚à‚Ì‚ÉŒW‚é•â³
33+ if(browser=="A Bone" || browser=="OpenJane" || browser=="Live2ch" || browser=="ƒMƒRƒiƒr"){if(obj.href.match(/^about|jumpres/)){
34+ var h=tohan(obj.innerText.replace(/[>„]/g,""));
35+ var anchor=document.anchors(anchorHead+h);
36+ if(anchor){anchor.scrollIntoView(true);return false}
37+ }}
38+ return true;
39+ }
40+ else{panelOver();return}
41+}
42+
43+//=========MouseOverˆ—¨image,popup
44+ document.onmouseover = mouseOverEvent;
45+function mouseOverEvent() {
46+ var e = window.event.srcElement;
47+ if(e.tagName=='B'){if(browser!="twintail2"){
48+ if(e.innerText.match(/^([^\d‚O-‚X]*)([\d‚O-‚X]+)([^\d‚O-‚X]*.*)/)){namePopup(e,RegExp.$1,RegExp.$2,RegExp.$3);}
49+ else if(e.innerText.match(/^‚ ‚ځ`‚ñ$/)) {abonePopup(e);}
50+ }}
51+ if(e.tagName=='A'){
52+ if(!e.innerText.match(/%/)){ // URLƒGƒ“ƒR[ƒh‚Å‚ ‚肪‚¿‚È%‚ª‚È‚¯‚ê‚Î
53+ //e.href=e.href.replace(/>/g,"");
54+ //e.href=e.href.replace(/\/ime.\w+/g,"");
55+ }else{
56+ try{
57+ e.title=decodeURI(e.innerText);
58+ }catch(err){
59+ // ShiftJIS,EUC-JP‚̃fƒR[ƒh‚Í–Ê“|‚¾‚©‚ç‚‚¯‚È‚¢B
60+ }
61+ }
62+ try{e.href}catch(err){return} // IE7‚¾‚Ɖ½ŒÌ‚©e.href‚ªŽæ“¾o—ˆ‚È‚¢A—v‘f‚ª‚ ‚é
63+ if (checkAnchor(e.href)==2){insButton(e);return;}
64+ else if(checkAnchor(e.href)==1){ // ‘½’iƒ|ƒbƒvƒAƒbƒv
65+ if(event.shiftKey){if(e.rel){e.href=e.rel}return}
66+ var parent=e.parentElement;
67+ var aNum= (parent.tagName!="DD") ? parent.firstChild.sourceIndex : parent.previousSibling.firstChild.innerText;
68+ if(!document.getElementById("p"+aNum)){
69+ var obj=e;var onPopup;
70+ while(obj.tagName!="BODY"){if(obj.id.match(/p\d+/)){onPopup=true;break}else{obj=obj.parentElement}}
71+ if(!onPopup){removePopup()}
72+ makePopContent(e);return;
73+ }
74+ }else if(checkAnchor(e.href)==0){ // ‹tŽQÆƒ|ƒbƒvƒAƒbƒv
75+ if(e.href.match(/menu:/) && event.shiftKey){searchPopup(e)}
76+ }
77+ }else if(e.tagName=="SPAN"||e.tagName=="TT"){
78+ var obj=e;var onPopup;
79+ while(obj.tagName!="BODY"){if(obj.id.match(/p\d+/)){onPopup=true;break}else{obj=obj.parentElement}}
80+ if(e.tagName=="SPAN"){
81+ if(!onPopup && event.shiftKey){searchPopup(e)}
82+ }else{searchPopup(e)}
83+ }else{ // ‘½’iƒ|ƒbƒvƒAƒbƒvÁ‹Ž
84+ var obj=e;var onPopup;
85+ if(obj.sourceIndex<0){obj=document.body;if(document.getElementById("popupBase")){onPopup=true;}} // namePopup‚Æ‚Ì‹£‡‚Ńm[ƒh‚ªŠO‚ê‚éuŠÔ‚̉ñ”ð
86+ while(obj.tagName!="BODY"){if(obj.id.match(/(p\d+)/)){onPopup=true;break}else{obj=obj.parentElement;}}
87+ if(onPopup){while(obj.id!=obj.parentElement.lastChild.id){obj.parentElement.lastChild.removeNode(true)}}
88+ else {removePopup()}
89+ }
90+}
91+//=========MouseMoveˆ—¨panelOver()
92+ document.onmousemove=mouseMoveEvent;
93+function mouseMoveEvent() {
94+ if(!cp){
95+ var nHTML ='<div id="controlPanel"><input type="button" value="TOP" onclick="scroll_Top();blur()"><input type="button" value="END" onclick="scroll_End();blur()"><input type="button" value="IMG" onmouseup="imgCommand();blur()"><input type="button" value="FND" onclick="fndCommand();blur();"></div><div id="foundPanel" onmouseout="searched=false"></div>';
96+ if(skinName.match(/30-2/)){nHTML+='<div id="thumbPanel" onmouseout="viewed=false"></div><div id="viewPanel"></div>';}
97+ document.body.insertAdjacentHTML("afterBegin",nHTML);
98+ cp=document.getElementById("controlPanel");fp=document.getElementById("foundPanel");
99+ if(skinName.match(/30-2/)){tp=document.getElementById("thumbPanel");vp=document.getElementById("viewPanel");}else{tp=vp=new Object()}
100+ cp.condition="waited";tp.condition="vp.firstChild || viewed || !lightmode";fp.condition=resultView ? "fp.hasChildNodes()" : "searched";
101+ cp.territory="<25"; tp.territory=">20"; fp.territory="<(30+fp.clientHeight) && fp.hasChildNodes()";
102+ }
103+ if(event){panelOver();}
104+ if(!idHash.length){setHash();searchColoring();}
105+}
106+// Šeƒpƒlƒ‹
107+function panelOver(){
108+ var territoryW=document.body.clientWidth-120;var territoryH=25;
109+ var panels=new Array("cp","tp","fp");
110+ for(var i in panels){
111+ if(skinName.match(/30-3/)&&panels[i]=="tp"){continue}
112+ var panel=eval(panels[i]); var territoryY=eval("event.y"+panel.territory); var territoryX=eval(event.x>document.body.clientWidth-panel.offsetWidth-15);
113+ if(eval(panel.condition)){panel.style.visibility="visible";return}
114+ if(territoryY && territoryX){panel.style.visibility="visible";}else{panel.style.visibility="hidden";}
115+ }
116+}
117+// TOP,END
118+function scroll_Top(){document.getElementsByTagName("DL")[0].firstChild.scrollIntoView(true);}
119+function scroll_End(){document.getElementsByTagName("DL")[0].lastChild.scrollIntoView(true);}
120+// IMG
121+function imgCommand(mode,s){
122+ if(!waited){
123+ var nHTML='<div id="command" onclick="clearCommand()"><input type="button" onclick="allImageLoad(\'all\')" value="‘SƒŒƒXˆêŠ‡“Ǎž"><br><input type="button" onclick="allImageLoad(\'new\')" value="VƒŒƒXˆêŠ‡“Ǎž"><br><input type="button" onclick="removeError()" value="Error‰æ‘œíœ"><br></div>';
124+ event.srcElement.parentElement.insertAdjacentHTML('beforeEnd',nHTML);
125+ if(skinName.match(/30-2/)){
126+ //if(!lightmode){document.getElementById("command").insertAdjacentHTML('afterBegin','<input type="button" onclick="changePanel()" value="ƒpƒlƒ‹Ø‘Ö"><br>')}
127+ document.getElementById("command").insertAdjacentHTML('beforeEnd','<input type="button" onclick="changeMode()" value="ƒ‚[ƒhØ‘Ö">')
128+ }
129+ waited=true;
130+ }else{
131+ clearCommand();
132+ }
133+}
134+function fndCommand(mode,s){
135+ if(!waited){
136+ findIt(document.selection.createRange().text);
137+ event.cancelBubble=true;
138+ }else{
139+ clearCommand();
140+ }
141+}
142+function clearCommand(){
143+ waited=false;
144+ document.getElementById("command").removeNode(true);
145+}
146+//=========¶’·‰Ÿˆ—¨copyMenu()
147+ document.onmousedown=mousedownEvent;
148+var clickCancel,e,ex,ey,clickTimer;
149+function mousedownEvent(){
150+ var obj=e=event.srcElement;ex=event.x;ey=event.y;
151+ if(document.getElementById("context") && obj.innerText==document.getElementById("context").name){return}
152+ clickCancel=false;
153+ if(obj.nextSibling && obj.nextSibling.tagName=="U" && event.button==1){
154+ clickTimer=setTimeout("copyMenu()",500);
155+ }
156+}
157+
158+//ƒRƒs[ƒƒjƒ…[¨colorChange(),search::copyText()
159+function copyMenu(){
160+ clickCancel=true; clearTimeout(clickTimer);
161+ if(document.getElementById("context")){document.getElementById("context").removeNode(true);}
162+ var nHTML='<div id="context" name="'+e.innerText+'"><div onclick="copyText(\'res\')" onmouseover="colorChange()" onmouseout="colorChange()">ƒŒƒX‚ðƒRƒs[</div><div onclick="copyText(\'name\')" onmouseover="colorChange()" onmouseout="colorChange()">–¼‘O‚ðƒRƒs[</div><div onclick="copyText(\'id\')" onmouseover="colorChange()" onmouseout="colorChange()">ID‚ðƒRƒs[</div></div>';
163+ document.body.insertAdjacentHTML("afterBegin",nHTML);
164+ var context=document.getElementById("context");
165+ context.style.pixelLeft=document.body.scrollLeft+ex
166+ context.style.pixelTop =document.body.scrollTop+ey;
167+ context.style.visibility="visible";
168+}
169+function colorChange(){
170+ var style=event.srcElement.style;
171+ if(event.type=="mouseout"){style.backgroundColor="Menu"; style.color="MenuText";}
172+ else {style.backgroundColor="Highlight";style.color="HighlightText";}
173+}
174+
175+//=========ƒL[ƒ{[ƒh“ü—́iskin30-2‚ł̃L[–³Œø‚̉ñ”ð{ƒ¿j
176+ document.onkeydown=key;
177+function key(){
178+ var dl=document.getElementsByTagName("DL").item(0);
179+ var code=event.keyCode;
180+ if (code=="32" && !event.shiftKey || code=="34"){dl.scrollTop+=dl.offsetHeight;}
181+ else if(code=="32" && event.shiftKey || code=="33"){dl.scrollTop-=dl.offsetHeight;}
182+// else if(code=="37" && event.altKey || code=="8"){jumpHis.back();if(code=="8"){return false}}
183+// else if(code=="39" && event.altKey){jumpHis.forward();return false;}
184+ else if(code=="40"){dl.scrollTop+=36;}
185+ else if(code=="38"){dl.scrollTop-=36;return true;}
186+ else if(code=="36"){scroll_Top()}
187+ else if(code=="35"){scroll_End()}
188+ else if(code=="73" && event.shiftKey){changePanel();return false;} // shift+I
189+ else if(code=="70" && event.shiftKey){findIt(document.selection.createRange().text);return false;} // shift+F
190+ else if(code=="78" && event.shiftKey && firstNew){firstNew.scrollIntoView(true)} // shift+N
191+ else if(code=="82" && event.shiftKey && event.ctrlKey){ // ctrl+shift+R
192+ //‚©‚¿‚ã`‚µ‚á•â³i”XV‚̃Vƒ‡[ƒgƒJƒbƒgƒL[j
193+ if(browser=="‚©‚¿‚ã`‚µ‚á"){
194+ if(!t_url){threadurl();}
195+ window.open("http://"+t_domain+"/"+t_bbs+"/","_blank");
196+ return false;
197+ }
198+ }
199+}
200+
201+//=========V’…ƒŒƒXŽæ“¾Œãˆ—i•W€ƒXƒLƒ“–¢‘Ήžƒuƒ‰ƒEƒU—pj©Timer–”‚ÍFooter‚©‚çŒÄ‚яo‚µ
202+//=========‚©‚¿‚ãAABoneAƒ]ƒk‚Q
203+var newResNum=parseInt(document.getElementsByName("GetRescount")[0].content)+1;
204+var k=0;
205+function loadEvent(num){
206+ //====V’…ƒŒƒXƒWƒƒƒ“ƒv
207+ if(newResJump==0){clearInterval(timerID);return} //uƒuƒ‰ƒEƒU”C‚¹v‚È‚çI—¹
208+ //V’…ƒŒƒX‚ÌŠJŽn”ԍ†‚ðŽæ“¾
209+ if (browser=="‚©‚¿‚ã`‚µ‚á"){if(isNaN(newResNum)){while(dts[k]){if(dts[k].className=="new"){newResNum=parseInt(dts[k].firstChild.innerText);break;} k++;}}}
210+ else if(browser=="ƒzƒbƒgƒ]ƒk‚Q"){newResNum=num+1;}
211+ var anc=document.anchors(anchorHead+newResNum);
212+ if(!anc || !anc.parentElement){return} // “§–¾‚ ‚ځ`‚ñ‚³‚ê‚Ä‚½‚çI—¹
213+ //V’…ƒŒƒXƒWƒƒƒ“ƒv
214+ scr=lightmode ? document.body : document.getElementById("dl");
215+ viewPos=scr.scrollTop+scr.clientHeight;// ƒXƒNƒ[ƒ‹Œã‚̉æ–ʉº•”ˆÊ’u
216+ endPos =anc.offsetTop+20; // VƒŒƒXƒAƒ“ƒJ[ˆÊ’u
217+ //ÅŒã‚Ü‚Å“Ç—¹ or uí‚ɐV’…ƒWƒƒƒ“ƒvv‚È‚çƒWƒƒƒ“ƒv
218+ if(viewPos>endPos || newResJump==2){clearInterval(timerID);setTimeout("moveToNew("+newResNum+")",buffer*100)}
219+ else{firstNew=document.anchors(anchorHead+newResNum).parentElement.nextSibling;}
220+}
221+//=========V’…ƒŒƒXŽæ“¾Œãˆ—i•W€ƒXƒLƒ“‘Ήžƒuƒ‰ƒEƒU—pj©NewMark‚©‚çŒÄ‚яo‚µ
222+//=========OpenJAtwin
223+var scr,viewPos,endPos=0;
224+function reloadEvent(){
225+ //====Šù“lj»
226+ var lastDt=dts[dts.length-2];if(!lastDt){return}// ‘S•”V’…‚È‚çI—¹
227+ while(lastDt && lastDt.className=="new"){lastDt.className="";lastDt=lastDt.previousSibling.previousSibling;}
228+ //====V’…ƒŒƒXƒWƒƒƒ“ƒv
229+ if(newResJump==0){return} //uƒuƒ‰ƒEƒU”C‚¹v‚È‚çI—¹
230+ var ancs=document.anchors;
231+ var newResNum=parseInt(ancs[ancs.length-1].name)+1;
232+ scr=lightmode ? document.body : document.getElementById("dl");
233+ viewPos=scr.scrollTop;
234+ endPos =scr.scrollHeight-scr.clientHeight-20;
235+ //ÅŒã‚Ü‚Å“Ç—¹ or uí‚ɐV’…ƒWƒƒƒ“ƒvv‚È‚çƒWƒƒƒ“ƒv
236+ if(viewPos>endPos || newResJump==2){setTimeout("moveToNew("+newResNum+")",buffer*100);}
237+}
238+
239+// V’…ƒŒƒXˆÚ“®{V’…ƒŒƒX‚̈ʒu‚ð‹L‰¯
240+var firstNew;
241+function moveToNew(num){
242+ firstNew=getDTfromAnc(num);
243+ while(!firstNew){num--;firstNew=getDTfromAnc(num);} //‘Ώۂª“§–¾‚ ‚ځ`‚ñ‚Ȃ琔‚ðŒ¸‚ç‚·
244+ firstNew.scrollIntoView(true);
245+}
246+
247+//=========DoubleClickˆ—¨defaultPopup()
248+ document.ondblclick=defaultPopup;
249+function defaultPopup(){
250+ var num=document.selection.createRange().text.replace(/\s$/,"");
251+ var hnum=tohan(num);
252+ if(!isNaN(hnum) && hnum<=1000){
253+ var obj=document.createElement("a");
254+ obj.innerText=num;
255+ obj.href="#"+hnum;
256+ makePopContent(obj);
257+ }else if(num.match(/\w{8,9}/)){ //\w{8}‚Å‚Í‚¾‚߂ہH
258+ var obj=document.createElement("DT");
259+ obj.innerHTML="<span>date time ID:"+num+"</span>";
260+ searchPerson(obj.firstChild);
261+ }
262+}
263+
264+//=========Copyˆ—
265+//head‚©‚ç“Ç‚Þ‚Æbody‚ÍŒ©‚¦‚È‚¢‚̂ŁAê—pƒuƒ‰ƒEƒU‚Ì“ÁŽ¿‚ð—˜—p‚µ‚Äbody‚ÌŒã‚ë‚ɏ‘‚«o‚·
266+//–{—ˆ‚Ç‚¨‚èhead‚ɏ‘‚«o‚·SkinManager‘΍ô‚Å”»’è‚ðˆê‚“ü‚ê‚é
267+ if(document.body) document.write('<script type="text/javascript">document.body.oncopy=copyEvent</script>\n');
268+function copyEvent(){
269+ var textarea=document.createElement("TEXTAREA");
270+ textarea.value=document.selection.createRange().text.replace(/\s(\r\n|$)/g,"\n");
271+ var copyText=textarea.createTextRange();
272+ copyText.execCommand("Copy");
273+ return false;
274+}
275+//=========onScrollˆ—
276+//window.onscroll=function(){clearInterval(beforeScrollTimer);onLoadEvent()}
277+window.onscroll=function(){onLoadEvent()}
278+if(document.getElementById("dl")){
279+ document.getElementById("dl").onscroll=function(){onLoadEvent()}
280+}
281+//=========onLoadˆ—
282+window.onload=onLoadEvent;
283+function onLoadEvent(){mouseMoveEvent();setHash();searchColoring();}
284+setTimeout("onLoadEvent()",1000); // ˆê‰ñ‚¾‚¯’…F
285+
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/chie_green.css
@@ -0,0 +1,19 @@
1+@import url(chie_base.css);
2+/* ƒŠƒ“ƒN */
3+a{color:#000;}
4+dt a {border:1px solid #EEE;}
5+dt.new a {border:1px solid #CEC;}
6+dt a:active {color:#F00; background-color:#FDD; border-color:#F44;}
7+dt a:hover {color:#F00; background-color:#FDD; border-color:#F44;}
8+
9+dd a:link {color:#060;}
10+dd a:visited {color:#696;}
11+dd a:active {color:#F55; background-color:#FDD;}
12+dd a:hover {color:#F55; background-color:#FDD;}
13+
14+/* dt */
15+dt {background-color: #EEE;}
16+dt.new {background-color:#CEC;}
17+
18+/* ‹tŽQÆ“à•” */
19+.refResult dt a{color:#000;text-decoration:none}
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/chie_image2.css
@@ -0,0 +1,35 @@
1+body{overflow:hidden}
2+/* ƒŠƒ“ƒN‰¡ƒ{ƒ^ƒ“ */
3+input,button{
4+ font-family:"Terminal";
5+ font-size:8px;
6+ margin: 0px 2px 2px 4px;
7+ border: 1px solid #BCB5B5;
8+}
9+/* ƒTƒ€ƒlƒCƒ‹ */
10+#thumbPanel{
11+ width :118px;
12+ height:100%;
13+ overflow-y:auto;
14+}
15+#thumbPanel div{
16+ width:100px;
17+ margin-bottom:0px;
18+ border:solid 1px #D6DCE1;
19+ background-color:#FFF;
20+ text-align:right;
21+}
22+#thumbPanel img {width:100px; height:75px; display:none; filter: Alpha(opacity=30);}
23+#thumbPanel embed{width:100px; height:75px; display:block;}
24+#thumbPanel a{margin-right:8px;}
25+/* ƒrƒ…[ */
26+#viewPanel{
27+ position:absolute;
28+ top :0px;
29+ left:120px;
30+ overflow:auto;
31+}
32+#viewPanel img {position:absolute;}
33+#viewPanel embed,#viewPanel object
34+ {width:100%;height:100%;}
35+/*#viewPanel button{width:48%;}*/
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/chie_image2.js
@@ -0,0 +1,128 @@
1+// ƒCƒxƒ“ƒgƒnƒ“ƒhƒ‰FonMouseover
2+// ŠO•”•Ï”FanchorHead,dds
3+//======‰æ‘œ“ǂݍž‚Ý‚ÌÝ’è i’jWindowsXP SP2‚Å‚Í‚±‚ê‚ç‚̐ݒè‚Í—LŒø‚É‹@”\‚µ‚Ü‚¹‚ñB
4+var onOpenLoad =1; // 0:“ǂݍž‚Ü‚È‚¢A1:V’…ƒŒƒX‚̂݁A2:‘S•”
5+var onMouseLoad=true; // true:ƒJ[ƒ\ƒ‹‚ð‡‚í‚¹‚½‚¾‚¯Afalse:LOADƒ{ƒ^ƒ“‚ðƒNƒŠƒbƒN‚µ‚Ä‚©‚ç
6+//==========ƒOƒ[ƒoƒ‹•Ï”
7+var lightmode=true; // Live,twin‚̃Wƒƒƒ“ƒv—p”»’è‚Å—p‚¢‚Ä‚¢‚é‚Ì‚Å•K{
8+//==========‰æ‘œˆ—“™
9+// ŠO•”—paddAnchor
10+function addAnchor2(inner,num){
11+ return('<a onclick="dialogArguments.document.getElementsByName(\''+anchorHead+num+'\')[0].scrollIntoView(true)" style="cursor:hand">'+num+'</a>')
12+}
13+// ƒ‚[ƒhØ‘ցi30-3‚̓‚[ƒh‚͈ê’èj
14+function changeMode(){}
15+// ƒpƒlƒ‹‚Ì“WŠJ
16+var thumbWindow=null;
17+function changePanel(){
18+ if(thumbWindow && !thumbWindow.closed){return}
19+ var skinPath=document.getElementsByName("SkinPath")[0].content;
20+ thumbWindow=showModelessDialog("",window,'dialogWidth:127px;dialogHeight:125px;dialogTop:0px;dialogLeft:0px;help:no;resizable:yes;status:no;unadorned:yes;');
21+ thumbWindow.document.write('<html><head><title>‰æ‘œƒpƒlƒ‹<\/title>');
22+ thumbWindow.document.write('<link rel="stylesheet" type="text\/css" href="'+skinPath+'chie_image2.css">');
23+ thumbWindow.document.write('<script type="text\/javascript" src="'+skinPath+'chie_thumbPanel.js"><\/script>');
24+ thumbWindow.document.write('<\/head>');
25+ thumbWindow.document.write('<body><div id="thumbPanel"><\/div><div id="viewPanel" onclick="changeView()"><\/div><\/body>');
26+ thumbWindow.document.write('<\/html>');
27+ window.focus();
28+}
29+// LOADƒ{ƒ^ƒ“
30+function insButton(a,hRH) {
31+ if(a.className!='replaced' && a.parentElement.tagName!='DIV'){
32+ if(imageExt2(a.href)){
33+ var nHTML='<input type="button" value="LOAD" onClick=\'loadImage(this,"'+a.href+'");blur()\'>';
34+ }else if(imageExt(a.href)){
35+ var nHTML='<input type="button" value="LOAD" onClick=\'loadImage(this,"'+a.href+'");blur()\'>'
36+ +'<input type="button" value="VIEW" onClick=\'loadDirect("swf","'+a.href+'");blur()\'>';
37+ }else{
38+ if(hRH){var ahref=hRH}else{var ahref=a.href}
39+ var nHTML='<input type="button" value="VIEW" onClick=\'loadDirect("html","'+ahref+'");blur()\'>'
40+ +'<input type="button" value="CHECK" onClick=\'loadDirect("html","http://www.tekijuku.com/URL/?url='+ahref+'");blur()\'>';
41+ }
42+ a.insertAdjacentHTML('AfterEnd',nHTML);
43+ a.className = 'replaced';
44+ if(onMouseLoad && imageExt2(a.href)){loadImage(a.nextSibling,a.href)}
45+ return;
46+ }
47+}
48+// HTML‚̓Ǎž
49+function loadDirect(mode,href){
50+ changePanel();
51+ var nHTML,buttons;
52+ if(mode=="swf"){nHTML='<embed src="'+href+'"></embed>'}
53+ else {nHTML='<object data="'+href+'" onError="changeView()"></object>'}
54+ if(browser!="ƒzƒbƒgƒ]ƒk‚Q"){buttons='<button onclick="window.open(\''+href+'\',\'_parent\');clearView()">OPEN</button><button onclick="clearView()">CLOSE</button>';}
55+ else {buttons='<button onclick="window.open(\''+href+'\',\'_blank\');clearView()">OPEN</button><button onclick="clearView()">CLOSE</button>';}
56+ thumbWindow.dialogWidth =screen.availWidth+"px";
57+ thumbWindow.dialogHeight=screen.availHeight+"px";
58+ thumbWindow.viewPanel.innerHTML=nHTML+buttons;
59+ thumbWindow.viewPanel.style.visibility="visible";
60+ thumbWindow.viewPanel.firstChild.style.posHeight=thumbWindow.document.body.clientHeight-20;
61+}
62+
63+// ‰æ‘œ“Ǎž
64+function loadImage(btn,href){
65+ changePanel();
66+ var tp = thumbWindow.document.getElementById("thumbPanel");
67+ if(btn.tagName!="A"){
68+ var thumbs = thumbWindow.document.images;
69+ var l=thumbs.length;
70+ for(i=l;i--;){if(thumbs[i].src==href){imgOver(tp,100);imgOver(thumbs[i],100);return true;}}
71+ }
72+ if(btn.parentElement.tagName=="DD"){var dt = btn.parentElement.previousSibling;}
73+ else {var dt = btn.parentElement;}
74+ var num = dt.firstChild.innerText;
75+ if(href.search(/\.swf/i)==-1){
76+ var nHTML = '<div><img src="'+href+'" onLoad="imgResult(this)" onError="imgResult(this)" onClick="changeView(\'img\')" onmouseover="imgOver(this,100)" onmouseout="imgOver(this,30)">'
77+ +addAnchor2(num,num)+' '
78+ +'<button onClick="changeSize(this);blur()">...</button>'
79+ +'<button onClick="removeThumb(this)">DEL</button>'
80+ +'</div>';
81+ }else{
82+ var nHTML = '<div><embed src="'+href+'" onFocus="changeView(\'swf\')"></embed>'
83+ +addAnchor2(num,num)+' '
84+ +'<button onClick="blur()">___</button>'
85+ +'<button onClick="removeThumb(this)">DEL</button>'
86+ +'</div>';
87+ var h=(tp.childNodes.length+1)*98+27;
88+ if(h < screen.availHeight){thumbWindow.dialogHeight=h+"px"}
89+ }
90+ if(btn.tagName=="INPUT"){btn.value = 'LOADED';}
91+ tp.insertAdjacentHTML('BeforeEnd',nHTML);
92+}
93+// ƒGƒ‰[‰æ‘œ‚̍폜
94+function removeError(){
95+ if(thumbWindow){
96+ var thumbs = thumbWindow.document;
97+ var l=thumbs.images.length;
98+ for(var i=l;i--;){
99+ var stateBtn=thumbs.getElementById("thumbPanel").childNodes[i].childNodes[2];
100+ if(stateBtn.tagName=="BUTTON" && stateBtn.innerText=="NONE"){stateBtn.parentElement.removeNode(true);}
101+ }
102+ }
103+}
104+// LOADƒ{ƒ^ƒ“‘}“ü‘Ώۊg’£Žqi’ʏí—pj
105+function imageExt(isu) {if(isu.search(/\.png$|\.jp(g|e|eg)$|\.gif$|\.bmp$|\.swf/i)!=-1){return true}else{return false}}
106+// LOADƒ{ƒ^ƒ“‘}“ü‘Ώۊg’£ŽqiˆêŠ‡“Ǎž—pj
107+function imageExt2(isu){if(isu.search(/\.png$|\.jp(g|e|eg)$|\.gif$|\.bmp$/i)!=-1){return true}else{return false}}
108+
109+// ‰æ‘œˆêŠ‡“ǂݍž‚Ý
110+function allImageLoad(mode){
111+ var ddl=dds.length;var exist;
112+ for(i=0;i<ddl;i++){
113+ if(mode=="new"){if(dds[i].previousSibling.className!="new"){continue}}
114+ cl=dds[i].childNodes.length;
115+ for(j=0;j<cl;j++){
116+ cn=dds[i].childNodes[j];
117+ if(cn.tagName == "A"){
118+ if(imageExt2(cn.href)){loadImage(cn,cn.href);exist=true}
119+ }
120+ }
121+ }
122+ if(!exist){
123+ if(mode=="new"){var target="V’…ƒŒƒX‚É"}else{var target="‘S‚ẴŒƒX‚É"}
124+ alert(target+"‰æ‘œ‚Í‚È‚¢‚æ\ ")
125+ }
126+}
127+// ƒ‚ƒUƒCƒNˆ—
128+function imgOver(my,num) {my.style.filter="Alpha(opacity="+num+")"}
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/chie_popup.js
@@ -0,0 +1,114 @@
1+//==========ˆÈ‰º‚̓XƒNƒŠƒvƒg–{•¶‚Å‚·‚æB
2+// ƒCƒxƒ“ƒgƒnƒ“ƒhƒ‰FonMouseover
3+// ŠO•”•Ï”FidHash,refHash,foudRes,highlight
4+// ŠO•”ŠÖ”FaddAnchor,getDTfromAnc
5+// “Á’¥FDIV#popupBase‰º‚Ɂuƒtƒ‰ƒbƒg‚ŃŠƒjƒAv‚ÉDL#p\d‚ðì¬‚·‚éB
6+//==========CSS‚̏o—Í
7+var nCSS=''
8+nCSS+='#popupBase{font-size:90%;}'; //ƒtƒHƒ“ƒgƒTƒCƒY‚ÌŽw’è
9+nCSS+='#popupBase{position:absolute;width:100%;height:100%;z-index:7}';
10+nCSS+='#popupBase dl{position:absolute; background-color:window; border:outset 1px infobackground; overflow-y:auto; z-index:5; border-top:none}';
11+nCSS+='#popupBase dt span{float:none; margin-left:1em;}';
12+nCSS+='#popupBase dd{margin:auto 1em}';
13+document.write('<style type="text/css">'+nCSS+'</style>\n');
14+//=========ŠO•”ƒtƒ@ƒCƒ‹‹¤—p‚̃Oƒ[ƒoƒ‹•Ï”
15+//=========ƒiƒ“ƒo[‚È–¼‘O‚̃|ƒbƒvƒAƒbƒv
16+function namePopup(e,before,num,after){
17+ var hnum=tohan(num);
18+ if(hnum==774 || hnum==21 || hnum==1 || hnum==30){return} // Socket774A774KBA21‹ÖA[1-30]A‚È‚Ç‚Í–³Ž‹
19+ if(before && before.match(/–¼–³/)){return} //–¼–³‚µ‚Á‚Û‚¢‚Ì‚Í–³Ž‹
20+ if(after) {if(after=="Žü”N"){return}} // ƒfƒtƒHƒ‹ƒg‚È"‚ŽŽü”N"‚Í–³Ž‹
21+ var nB = before ? "<b>"+before+"</b><b>":"<b>"; nB+=addAnchor(hnum,num); nB+=after ? "</b><b>"+after+"</b>":"</b>";
22+ e.outerHTML=nB;
23+}
24+//=========Žã‚ ‚ځ`‚ñ‚̃|ƒbƒvƒAƒbƒv
25+function abonePopup(e){e.outerHTML = "<b>"+addAnchor(e.parentElement.previousSibling.innerText,'‚ ‚ځ`‚ñ')+"</b>";}
26+//=========ŒŸõ‚µ‚½ƒŒƒX‚̃|ƒbƒvƒAƒbƒv
27+function searchPopup(obj){
28+ var reg,cArray;var tag=obj.tagName;
29+ /*ref Popup*/if (tag=="A") {if(refHash[obj.innerText]){cArray=refHash[obj.innerText].split(" ")}else{return}}
30+ /*ID Popup*/ else if(tag=="SPAN"){reg=getID(obj);if(reg&&reg.length>3){cArray=idHash[reg].split(" ");}else{return} if(cArray.length==1){return}}
31+ /*ŒŸõPopup*/else if(tag=="TT") {var cHash=(obj.parentElement.rel=="res")?foundRes:highlight;cArray=cHash[obj.parentElement.firstChild.style.backgroundColor];if(!cArray){return}}
32+ var targetString=""; for(var i=0;i<cArray.length;i++){targetString+=returnString(cArray[i]);} //’†g‚̐؂èo‚µ
33+ if(targetString){popup(targetString);} //‘Ώۂª‘¶Ý‚µ‚½‚çƒ|ƒbƒvƒAƒbƒv
34+}
35+//=========‘½’iƒ|ƒbƒvƒAƒbƒv
36+//Eƒ|ƒbƒvƒAƒbƒv‚̍쐬
37+function makePopContent(obj){
38+ //Ž–‘O€”õ
39+ var num=obj.innerText.replace(/[>„]/g,""); var number=tohan(num);
40+ if(!obj.rel){obj.rel=obj.href;} obj.href="decoy:"; // ƒuƒ‰ƒEƒU–{‘̂̃|ƒbƒvƒAƒbƒv‰ñ”ð
41+ //”ԍ†’²¸
42+ if(number.match(/(\d*)\D+(\d*)/)){var start=parseInt(RegExp.$1); var end=parseInt(RegExp.$2);}
43+ else {var start=end=parseInt(number);}
44+ if(end-start>100){end=start+100} // 100ˆÈã•\Ž¦‚µ‚È‚¢
45+ //’†g‚̐؂èo‚µ
46+ var targetString=""; for(var i=0;i<=end-start;i++){targetString+=returnString(start+i)}
47+ //‘Ώۂª‘¶Ý‚µ‚½‚çrel‚É‘Þ”ð‚µ‚Äƒ|ƒbƒvƒAƒbƒv
48+ if(targetString){popup(targetString);}else{obj.href=obj.rel;}
49+}
50+//E’†g‚̐؂èo‚µ
51+function returnString(num){
52+ var obj=getDTfromAnc(num);
53+ setSearchColor(obj);//ƒ|ƒbƒvƒAƒbƒvæ‚Ì’…F
54+ if(!obj){return("")} //‘Ώۂª“§–¾‚ ‚ځ`‚ñ‚È‚çI—¹
55+ var dt=obj.cloneNode(true);
56+ var dtOuter=dt.outerHTML.replace(/name=.*?>/g,">"); // LABELNUMBER‘Ήž‚Ì‚à‚Ì‚ÉŒW‚郊ƒ“ƒNƒAƒ“ƒJ[‚̏œ‹Ž
57+ var dd=obj.nextSibling.cloneNode(true);
58+ if(dd.hasChildNodes()){
59+ while(dd.lastChild.name){dd.lastChild.removeNode(true)} // LABELNUMBER”ñ‘Ήž‚Ì‚à‚Ì‚ÉŒW‚郊ƒ“ƒNƒAƒ“ƒJ[‚̏œ‹Ž
60+ if(dd.lastChild.tagName=="DL"){dd.lastChild.removeNode(true)} // ‹tŽQÆ‚̏œ‹Ž
61+ }
62+ var ddOuter=dd.outerHTML;
63+ return(dtOuter+ddOuter);
64+}
65+//Eƒ|ƒbƒvƒAƒbƒv
66+var pb;
67+function popup(inner){
68+ if(!pb){document.body.insertAdjacentHTML('afterBegin','<div id="popupBase"></div>');pb=document.getElementById("popupBase")}
69+ //—v‘f‚̍쐬
70+ var parent=event.srcElement.parentElement;
71+ //var aNum= (parent.tagName!="DD") ? parent.firstChild.sourceIndex : parent.previousSibling.firstChild.innerText; // DDˆÈŠO–¼‘O—“A‰æ‘œAIDŒŸõ
72+ var aNum=event.srcElement.sourceIndex;if(!aNum){alert("aNumŽæ“¾ƒGƒ‰[")}
73+ if(document.getElementById('p'+aNum)){return} // ƒ|ƒbƒvƒAƒbƒv‚µ‚Ä‚½‚çI—¹
74+ pb.insertAdjacentHTML("beforeEnd",'<dl id="p'+aNum+'">'+inner+'</dl>');
75+ //—v‘f‚Ì”z’u
76+ var p=document.getElementById('p'+aNum);
77+ // yŽ²’²®
78+ var pos=Math.min(event.y,document.body.clientHeight-event.y);
79+ var scTop=document.body.scrollTop+event.y;
80+ if(pos==event.y){var y=scTop-30;} // ƒJ[ƒ\ƒ‹‚̉º‚Ö•\Ž¦
81+ else {var y=scTop+10-p.clientHeight;} // ƒJ[ƒ\ƒ‹‚̏ã‚Ö•\Ž¦
82+ if(y<0){y=0}
83+ if(event.srcElement.parentElement.tagName=="TT"){y+=35;}
84+ p.style.pixelTop=y;
85+ // xŽ²’²®
86+ var pos=Math.min(event.x,document.body.clientWidth-event.x);
87+ var scLeft=document.body.scrollLeft+event.x;
88+ if(pos==event.x){var x=scLeft-2} // ƒJ[ƒ\ƒ‹‚̉E‚Ö•\Ž¦
89+ else {var x=scLeft-4-p.clientWidth;} // ƒJ[ƒ\ƒ‹‚̍¶‚Ö•\Ž¦
90+ if(x<0){x=0}
91+ p.style.pixelLeft=x;
92+ // ‚‚³’²®iscrollBar‚ð—v‚·ê‡‚Æ—v‚µ‚È‚¢ê‡‚ª‚ ‚éj¨yŽ²’²®
93+ if(p.clientHeight>Math.max(event.y,document.body.clientHeight-event.y)){
94+ if(p.clientHeight>document.body.clientHeight){p.style.pixelHeight=document.body.clientHeight-2;}
95+ p.style.pixelTop=document.body.scrollTop;
96+ }
97+}
98+//Eƒ|ƒbƒvƒAƒbƒvÁ‹Ž
99+function removePopup(popid){
100+ if(pb){while(pb.lastChild){pb.lastChild.removeNode(true)}}
101+}
102+//”’l•ÏŠ·ito”¼Špj
103+function tohan(num){
104+ var zen="‚O‚P‚Q‚R‚S‚T‚U‚V‚W‚X";
105+ var han="0123456789";
106+ var hnum="";
107+ if(zen.indexOf(num.charAt(0))!=-1){
108+ for(var i=0;i<num.length;i++){
109+ var at=zen.indexOf(num.charAt(i));
110+ hnum+=han.charAt(at);
111+ }
112+ }else{hnum=num}
113+ return hnum;
114+}
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/chie_search.js
@@ -0,0 +1,489 @@
1+beID=false; // be‚ɃƒOƒCƒ“o—ˆ‚éê‡‚́Atrue
2+//==========ŒŸõÝ’è
3+var expression="multiAND"; // ŒŸõ•û–@@@default:•W€AregExp:³‹K•\Œ»AmultiAND:ANDŒŸõAmultiOR:ORŒŸõ
4+var searchView="resList"; // ŒŸõŒ‹‰Ê•\Ž¦@@resList:ŠY“–ƒŒƒX”ԍ†•\Ž¦AresPopup:ŠY“–ƒŒƒXƒ|ƒbƒvƒAƒbƒvA
5+var resultView=false; // ŒŸõŒ‹‰Ê‚̏펞•\Ž¦@@true:íŽž•\Ž¦Afalse:ƒ}ƒEƒX‚ŋ߂¯‚½‚Æ‚«‚Ì‚Ý•\Ž¦
6+var listLimit =10; // searchView‚ªresPopup‚Å‚È‚¢ê‡‚́AƒŒƒX”ԍ†‚Ì•\Ž¦§ŒÀ
7+//==========ƒŒƒX”ԍ†A“ú•t•¶Žš—ñ‚Ì’…FÝ’è
8+coloring=1; // ’…F‚·‚é:1@’…F‚µ‚È‚¢:0
9+threshold1=[2,"#0000ff"]; // ‘‚«ž‚Ý‚ª•¡”‚ ‚éID ‚Ì‚µ‚«‚¢’l‚ƐF
10+threshold2=[5,"#aaaa00"]; // ‘‚«ž‚Ý‚ª‘½”‚ ‚éID ‚Ì‚µ‚«‚¢’l‚ƐF
11+threshold3=[8,"#ff0000"]; // ‘‚«ž‚Ý‚ª‘½”‚ ‚éID ‚Ì‚µ‚«‚¢’l‚ƐF
12+threshold4=[1,"#0000FF"]; // ‘‚«ž‚Ý‚ª‚ ‚é ƒŒƒX ‚Ì‚µ‚«‚¢’l‚ƃŒƒX”ԍ†‚̐F
13+threshold5=[4,"#aaaa00"]; // ‘‚«ž‚Ý‚ª‘½”‚ ‚郌ƒX ‚Ì‚µ‚«‚¢’l‚ƃŒƒX”ԍ†‚̐F
14+threshold6=[7,"#ff0000"]; // ‘‚«ž‚Ý‚ª‘½”‚ ‚郌ƒX ‚Ì‚µ‚«‚¢’l‚ƃŒƒX”ԍ†‚̐F
15+//==========–¼‘OEIDŒŸõ‚É‚æ‚郌ƒX‚̑т̐FŽw’èi16i”–”‚ÍWebŒ`Ž®‚̐F–¼‚ÅŽw’èB‚¢‚­‚‚łà‰ÂBƒAƒ‹ƒtƒ@ƒxƒbƒg‚͏¬•¶Žš‚Å‚¨Šè‚¢j
16+var foundResColor =new Array("#ffdfee","#eeffdf","#ffeedf","#dfffee","#eedfff","#ffffe1");
17+//==========’PŒêŒŸõ‚É‚æ‚éƒnƒCƒ‰ƒCƒgFŽw’èi“¯ãj
18+var highlightColor=new Array("#ffff66","#a0ffff","#99ff99","#ff9999","#ff66ff","#880000","#00aa00","#886800","#004699","#990099");
19+//==========ˆÈ‰º‚̓XƒNƒŠƒvƒg–{•¶‚Å‚·‚æB
20+// ƒCƒxƒ“ƒgƒnƒ“ƒhƒ‰FonClick,onScroll,onMousemove
21+// ŠO•”ŠÖ”FaddAnchor,checkAnchor,tohan,searchPopup
22+// ŠO•”•Ï”FanchorHead,browser,fp
23+// ‹tŽQÆ‚Ì“Á’¥FƒCƒxƒ“ƒg”­¶DT‚ɑΉž‚·‚éDD‰º‚ɁADL-DT-DD\‘¢‚ðì¬‚·‚éB
24+//==========CSS‚̏o—Í
25+var nCSS='';
26+nCSS+='#foundPanel {position:absolute;top:expression(body.scrollTop+25);right:18px;padding:2px 5px;z-index:6;background-color:white;border:1px solid #999;visibility:hidden}';
27+nCSS+='#foundPanel div{padding-left:5px;text-align:right;font-size:100%;}';
28+nCSS+='.refResult{margin:0.5em 0.3em; border:1px solid #666;padding-right:0px}';
29+nCSS+='.refResult{border-top:none}';
30+nCSS+='.refResult dt{margin-right:0px;}';
31+nCSS+='.refResult dd{margin-left:0.8em;}';
32+document.write('<style type="text/css">'+nCSS+'</style>\n');
33+var nCSS='';
34+for(var css in foundResColor){
35+ var c=foundResColor[css].replace(/#/,"");
36+ nCSS+='#COLOR'+c+" a{border-color:"+foundResColor[css]+"}\n";
37+ nCSS+='#COLOR'+c+" a:hover{border-color:red}\n";
38+}
39+document.write('<style type="text/css">'+nCSS+'</style>\n');
40+//=========ŠO•”ƒtƒ@ƒCƒ‹‹¤—p‚̃Oƒ[ƒoƒ‹•Ï”
41+var dts=document.getElementsByTagName('DT');
42+var dds=document.getElementsByTagName('DD');
43+var idHash=new Array(); var refHash=new Array();
44+var foundRes,highlight;
45+//==========ID‚ÆŽQÆ‚ðƒnƒbƒVƒ…‚ÉŠi”[
46+// ”z—ñ‚̃nƒbƒVƒ…‚æ‚èŒy‚¢‚Á‚Û‚¢‚̂ŁA‹ó”’‹æØ‚è‚Ì’l‚É‚æ‚é’Pƒ‚ȃnƒbƒVƒ…‚É‚µ‚Ä‚Ý‚éƒeƒXƒgB
47+// setEndIdx:–{•¶‚Ì“¯ƒŒƒX‚ðd•¡ˆ—‚µ‚È‚¢‚悤‚ɁAHash‰»ˆÊ’u‚Æ‚µ‚Ä‚Ìdts‚̍ŏIindex‚ð‹L‰¯
48+// setEndNum:–{•¶ˆÈŠOƒŒƒX‚ðd•¡ˆ—‚µ‚È‚¢‚悤‚ɁAÅIƒŒƒX”ԍ†‚ð‹L‰¯
49+var setEndIdx=setEndNum=0;
50+function setHash(){
51+ //var t0=new Date();
52+ var l=Math.min(dts.length,dds.length);
53+ var lastNum=l ? parseInt(dts[l-1].firstChild.innerText) : 0;
54+ if(isNaN(lastNum)&&l>1){lastNum=parseInt(dts[l-2].firstChild.innerText)} //Footer‚ ‚è‚È‚çˆê‚‘O
55+ if(l==0 || lastNum<=setEndNum){return} // ÅŒã‚Ü‚Å’²¸Ï‚Ý‚È‚ç‰ñ”ð
56+ for(var i=setEndIdx;i<l;i++){
57+ if(dds[i].parentElement.className=="refResult"){continue} // ‹tŽQÆ“à‚ÌDD‚È‚ç‰ñ”ð
58+ var num=dts[i].firstChild.innerText; var span=dts[i].lastChild;
59+ // ID
60+ var t=getID(span); if(t&&t.length>3){idHash[t] = idHash[t] ? idHash[t]+" "+num : num;} // ???‚âID:0,ID:#(@ƒ]ƒk)‚̓Xƒ‹[B
61+ // ‰æ‘œ”Â
62+ var imgURL=getIMG(span);
63+ if(imgURL){
64+ var dd=dts[i].nextSibling;
65+ if(tp && imgURL && !dd.getElementsByTagName("IMG").length){
66+ var aObj=(dd.innerText)?'<br><a href="'+imgURL+'">'+imgURL+'</a>':'<a href="'+imgURL+'">'+imgURL+'</a>';
67+ if(!beID && imgURL.match(/kako/)){/*dd.insertAdjacentHTML("beforeEnd","<br>Be‚ɃƒOƒCƒ“‚µ‚Ä‚È‚¢‚Ǝ擾‚Å‚«‚Ü‚¹‚ñ");*/}else{dd.insertAdjacentHTML("beforeEnd",aObj)}
68+ }
69+ }
70+ // ref,IMG
71+ var ddAnc=dds[i].getElementsByTagName("A");
72+ for(var j=0;j<ddAnc.length;j++){
73+ try{ddAnc[j].href}catch(err){continue} // IE7‚¾‚Ɖ½ŒÌ‚©href‚ªŽæ“¾o—ˆ‚È‚¢A—v‘f‚ª‚ ‚é
74+ var ancType=checkAnchor(ddAnc[j].href);
75+ if (ancType==0){
76+ continue;
77+ }else if(ancType==1){
78+ var anc=tohan(ddAnc[j].innerText.replace(/[>„]/g,""));var start,end;
79+ if(anc.match(/(\d*)\D+(\d*)/)){
80+ start=parseInt(RegExp.$1); end=parseInt(RegExp.$2);
81+ if( (end-start>100) || (num-end<4 && start==1) ){continue} // >>1-1000‚Æ‚©>>1-n(’¼‘OƒŒƒX)‚Æ‚©‚͉ؗí‚ɃXƒ‹[
82+ }else{
83+ start=end=parseInt(anc);
84+ }
85+ var k=start-1;do{k++;
86+ if((!refHash[k] || refHash[k].indexOf(num)==-1) && num>k){refHash[k]=refHash[k] ? refHash[k]+" "+num : num;} // d•¡‚â–¢—ˆ‚ւ̃Aƒ“ƒJ[‚̓Xƒ‹[
87+ }while(k<end);
88+ }else if(imageExt2(ddAnc[j].href) && onOpenLoad!=0){
89+ if(onOpenLoad==1){if(dds[i].previousSibling.className!="new"){continue}}
90+ insButton(ddAnc[j],ddAnc[j].href);
91+ }
92+ }
93+ }
94+ setEndIdx=l;setEndNum=lastNum;
95+ //var t1=new Date(); var t=(t1-t0)/1000; if(t){alert(t+"•b");}
96+}
97+// ƒXƒŒƒbƒhƒEƒBƒ“ƒhƒE’†S‚É‘OŒã5ƒŒƒX‚𒅐F
98+var resUnit=new Array();
99+function searchColoring(){
100+ if(!coloring){return;} // ’…F•s—v‚È‚çI—¹
101+ if(!scr){scr=lightmode ? document.body : document.getElementById("dl");}
102+ var nowScrollPos=scr.scrollTop+document.body.clientHeight/2;
103+ var l=Math.min(dts.length,dds.length);var st,ed;
104+ // dt‚ÌoffsetTop‚ðŠi”[i25ƒŒƒX’PˆÊj
105+ if(resUnit.length<=Math.floor(dts.length/25)){resUnit[0]=0;
106+ for(var i=25;i<l;i+=25){resUnit[i/25]=dts[i].offsetTop;}
107+ }
108+ // Œ»Ý‚Ç‚Ì‚ ‚½‚è‚܂ŃXƒNƒ[ƒ‹‚µ‚Ä‚é‚©’²¸
109+ var rul=resUnit.length-1;
110+ if (rul==0) {st=0;ed=l-1;} //25–¢–ž
111+ else if(resUnit[0]>nowScrollPos) {st=0;ed=24;} //0-24
112+ else if(resUnit[rul]<nowScrollPos){st=l-26;ed=l-1;} // ÅI25ƒŒƒX
113+ else{
114+ for(var i=rul;i--;){
115+ if(resUnit[i+1]>nowScrollPos&&resUnit[i]<=nowScrollPos){st=i*25;ed=st+25;break}
116+ }
117+ }
118+ // Œ»Ý‚Ì”ÍˆÍ“à‚©‚çƒEƒBƒ“ƒhƒE‚̐^‚ñ’†‚ ‚½‚è‚É•\Ž¦‚µ‚Ă郌ƒX‚ðŽæ“¾i‚±‚±‚Å’…F‚·‚é‚ƁA25ƒŒƒX’PˆÊ‚̐ؑ֎ž‚ɐ”ƒŒƒX‚ª’…F‚³‚ê‚È‚¢j
119+ var dtIdx=0; //if(cp){cp.childNodes[1].value=(st+1)+"-"+(ed+1);cp.style.visibility="visible";}
120+ for(var i=st;i<=ed;i++){if(!dts[i+1]){dtIdx=ed;break;}
121+ if(dts[i+1].offsetTop>nowScrollPos && dts[i].offsetTop<=nowScrollPos){dtIdx=i;break;}
122+ }
123+ // dtIdx‚©‚ç‚»‚ÌŽü•Ó‚ð“Á’è
124+ var start=dtIdx-5;var end=dtIdx+5;//
125+ for(var i=start;i<=end;i++){
126+ if(dts[i]){setSearchColor(dts[i])}
127+ }
128+}
129+// IDHashArefHash‚ðŒ³‚É’…F
130+function setSearchColor(dt){
131+ if(!dt.innerText){return}
132+ // ID
133+ var span=dt.lastChild; var t=getID(span);//alert(t +"&&"+ idHash[t] +"&&"+ span);
134+ if (browser=="ƒzƒbƒgƒ]ƒk‚Q"){span=span.lastChild}
135+ else if(browser=="A Bone") {span=span.childNodes[1]}
136+ if(t && idHash[t] && span){
137+ var idResult=idHash[t].split(" "); if(t.match(/\?\?\?/)){idResult="";idHash[t]="";}
138+ if (idResult.length>=threshold3[0]){span.style.color=threshold3[1];span.title="“¯ˆêID ("+idResult.length+"‰ñ)\n"+idHash[t]}
139+ else if(idResult.length>=threshold2[0]){span.style.color=threshold2[1];span.title="“¯ˆêID ("+idResult.length+"‰ñ)\n"+idHash[t]}
140+ else if(idResult.length>=threshold1[0]){span.style.color=threshold1[1];span.title="“¯ˆêID ("+idResult.length+"‰ñ)\n"+idHash[t]}
141+ else if(idResult.length==1){span.title="“¯ˆêID‚Í\n‚ ‚è‚Ü‚¹‚ñ"}
142+ }
143+ // ref
144+ var numA=dt.firstChild; var num=numA.innerText;
145+ if(refHash[num]){
146+ var refResult=refHash[num].split(" ");
147+ if (refResult.length>=threshold6[0]){numA.style.color=threshold6[1];dt.title="‚±‚ê‚ւ̃ŒƒX ("+refResult.length+"ŒÂ)\n"+refHash[num];}
148+ else if(refResult.length>=threshold5[0]){numA.style.color=threshold5[1];dt.title="‚±‚ê‚ւ̃ŒƒX ("+refResult.length+"ŒÂ)\n"+refHash[num];}
149+ else if(refResult.length>=threshold4[0]){numA.style.color=threshold4[1];dt.title="‚±‚ê‚ւ̃ŒƒX ("+refResult.length+"ŒÂ)\n"+refHash[num];}
150+ else{numA.title="‚±‚ê‚ւ̃ŒƒX‚Í‚È‚¢–Í—l"}
151+ }
152+ // anc
153+ var dd=dt.nextSibling; if(!dd){return} // footer‚Ìdt‚©‚çŒÄ‚΂ê‚é‚ÆŽŸ‚Ìdd‚Í•s‘¶Ý
154+ ddAnc=dd.getElementsByTagName("A");
155+ for(var i=ddAnc.length;i--;){
156+ var h=tohan(ddAnc[i].innerText);var tNum=h.replace(/\D/g,"");
157+ if(refHash[tNum]){
158+ var refResult=refHash[tNum].split(" ");
159+ if (refResult.length>=threshold6[0]){ddAnc[i].style.color=threshold6[1];}
160+ else if(refResult.length>=threshold5[0]){ddAnc[i].style.color=threshold5[1];}
161+ else if(refResult.length>=threshold4[0]){ddAnc[i].style.color=threshold4[1];}
162+ }
163+ }
164+}
165+//==========–¼‘OEIDŒŸõ“™
166+function searchPerson(obj){
167+ var by,thisDT,reg;
168+ if (obj.tagName=="DT") {by="ID"; thisDT=obj; reg=getID(obj)}
169+ else if(obj.tagName=="SPAN"){by="ID"; thisDT=obj.parentElement;reg=getID(obj)}
170+ else if(obj.tagName=="U") {by="NAME";thisDT=obj.parentElement; reg=obj.innerHTML.replace(/<B>(.*?)<\/B>/ig,"");if(!reg){reg=RegExp.$1.replace(/<.*?A.*?>/ig,"")}/*–¼‘O‚ª”Žš*/}
171+ else if(obj.tagName=="B") {by="NAME";thisDT=obj.parentElement.parentElement;reg=obj.innerText}
172+ else{return}
173+ if(!thisDT.rel){
174+ var c=selectColor("res"); if(!c){return} var color=new Array(c); // ƒJƒ‰[‘I‘ð
175+ if(by=="ID"){
176+ if(!reg || !idHash[reg]){return} // ID‚È‚µAID:???A–{•¶’†‚Ì‘¼ƒXƒŒ‚̃RƒsƒyID
177+ // ŒŸõƒnƒbƒVƒ…‚É’l‚ðÝ’肵‚āA‚»‚ê‚ÉŠî‚«ƒŒƒX’…F
178+ foundRes[c]=idHash[reg].split(" "); foundRes[c].word="ID:"+reg;
179+ for(i in foundRes[c]){var dt=getDTfromAnc(foundRes[c][i]);toggleResColor(dt,c);}
180+ }else{
181+ var us=document.getElementsByTagName("U"); var l=us.length;
182+ var regName=new RegExp();regName.compile(reg);
183+ // ƒ‹[ƒv’†‚ɃŒƒX’…FE’l‚̐ݒè‚𓯎žŽÀs
184+ for(var i=l;i--;){var dt=us[i].parentElement;
185+ if(dt.parentElement.className=="refResult"){continue} // ‹tŽQÆ“à‚ÌDT‚È‚ç‰ñ”ð
186+ if(regName.test(us[i].innerText)){toggleResColor(dt,c);foundRes[c].unshift(dt.firstChild.innerText);}
187+ }
188+ foundRes[c].word=reg;
189+ }
190+ returnFound("res",color);
191+ }else{
192+ clearColor("res",thisDT.style.backgroundColor);
193+ }
194+}
195+// ID•¶Žš—ñ‚Ì’Šo
196+var regID=new RegExp(); // HOST‚à‰Â”\‚É‚µ‚Ä‚Ý‚é
197+regID.compile(".*?\\s.*?\\s.*:(.*?)(\\s|$)"); // 1000res‚Å0.02•b‚قǍ‚‘¬
198+function getID(span){
199+ if(regID.test(span.innerText)){return(RegExp.$1)}else{return(false)}
200+}
201+//==========FÝ’è‰ðœ
202+// ƒIƒuƒWƒFƒNƒg‚̏‰Šú‰»
203+function createHash(name,key,arr,word){
204+ name[key]=arr?arr:new Array();
205+ name[key].word=word?word:"";
206+ name[key].justMovedRes=undefined;
207+}
208+// F‘I‘ð(ŠY“–ƒŒƒX”ԍ†”z—ñ‚ðŽ‚½‚È‚¢ƒL[‚ð•Ô‚·)
209+function selectColor(type){
210+ if(!foundRes) {foundRes =new Array();for(var i in foundResColor) {createHash(foundRes,foundResColor[i]);}} // Hash foundRes ={F:ŠY“–ƒŒƒX”ԍ†”z—ñ}
211+ if(!highlight){highlight=new Array();for(var i in highlightColor){createHash(highlight,highlightColor[i]);}} // Hash hightLight={F:ŠY“–ƒŒƒX”ԍ†”z—ñ}
212+ var cHash,cArray,cMess;
213+ if(type=="res"){cHash=foundRes; cArray=foundResColor; cMess="¡‚܂ł̃ŒƒX’…F‚ð‰ðœ‚µ‚Ü‚·‚©H";}
214+ else {cHash=highlight;cArray=highlightColor;cMess="¡‚܂ł̃nƒCƒ‰ƒCƒg‚ð‰ðœ‚µ‚Ü‚·‚©H";}
215+ var i=0; while(cHash[cArray[i]].word){
216+ i++; if(i==cArray.length){if(confirm(cMess)){clearColor(type);i=0;break}else{i=null;break}}
217+ }
218+ return(cArray[i]);
219+}
220+// F‰ðœiƒnƒbƒVƒ…A‘ΏہAfoundPanelj
221+function clearColor(type,color){
222+ var cHash=(type=="res")?foundRes:highlight;
223+ if(event && event.altKey){color=""}
224+ for(var i in cHash){
225+ if(type=="res"){
226+ if(color && i!=color){continue} // Žw’èF‚Å‚È‚¯‚ê‚΃Xƒ‹[
227+ for(var j in cHash[i]){
228+ if(event.srcElement.value=="DEL"){removeRes(getDTfromAnc(cHash[i][j]))}else{toggleResColor(getDTfromAnc(cHash[i][j]))}
229+ }
230+ cHash[i]=new Array();
231+ document.getElementById("c"+i).removeNode(true);
232+ }else{
233+ var strongs=document.getElementsByTagName("STRONG");
234+ var reg=new RegExp(i);
235+ if(!color.match(i)){continue} // Žw’èF‚Å‚È‚¯‚ê‚΃Xƒ‹[
236+ for(var j=0;j<strongs.length;j++){
237+ if(strongs[j].style.backgroundColor==i){
238+ if(event.srcElement.value=="DEL"){removeRes(strongs[j].parentElement.previousSibling);j--}else{strongs[j].removeNode(false);j--}
239+ }
240+ }
241+ cHash[i]=new Array();
242+ if(document.getElementById("c"+i)){document.getElementById("c"+i).removeNode(true);} // and,orŒŸõ‚Å‚PF–Ú‚Ì‚Ý
243+ }
244+ }
245+ if(!fp.hasChildNodes()){fp.style.visibility="hidden";searched=false;}
246+}
247+// ƒŒƒXFƒgƒOƒ‹
248+function toggleResColor(dt,c){
249+ if(!dt){return} // for-in‚Å‘—‚ç‚ê‚é”ԍ†ˆÈŠO‚Ìobj‚È‚çI—¹
250+ if(c){
251+ dt.rev=dt.style.backgroundColor;
252+ dt.rel="colored";
253+ dt.id ="COLOR"+c.replace(/#/,"");
254+ dt.style.backgroundColor=c;
255+ }else{
256+ dt.style.backgroundColor=dt.rev;
257+ if(dt.id.match(/COLOR/)){dt.removeAttribute("id")}//else{alert("dt‚ÉCOLOR***ˆÈŠO‚Ìidi"+dt.id+"j‚ªÝ’肳‚ê‚Ä‚¢‚Ü‚·")}
258+ dt.removeAttribute("rev");
259+ dt.removeAttribute("rel");
260+ }
261+}
262+// ŒŸõŒ‹‰Ê‚ÉŠî‚«Á‹Ž
263+function removeRes(dt){if(!dt){return} // cHash[i][j]=ID:xxxxxxxx‚Ì‚Æ‚«
264+ if(browser=="Live2ch"){location.href='func:ABONECLEAR?'+dt.firstChild.innerText;} // Live‚Ì‚Ý-“§–¾‚ ‚ځ`‚ñ
265+ dt.nextSibling.removeNode(true);dt.removeNode(true);
266+}
267+//==========Œ‹‰Ê•\Ž¦
268+// ƒŒƒX”ԍ†ƒŠƒXƒgiƒ|ƒbƒvƒAƒbƒvƒAƒ“ƒJ[‚ðŠÜ‚ށj
269+function returnFound(type,color){
270+ var nDIV="";
271+ var cHash,numArray;
272+ // ‘ΏۃIƒuƒWƒFƒNƒgiŒŸõ‚ÌŽž‚͏d•¡”rœj
273+ if(type=="res"){
274+ cHash=foundRes;numArray=cHash[color[0]];
275+ }else{
276+ cHash=highlight;numArray=cHash[color[0]];
277+ }
278+ // •\Ž¦•û–@
279+ var display=new Array(["none","POP"],["inline","LST"]);
280+ if(searchView=="resPopup" || numArray.length==0 || numArray.length>=listLimit){display=display.reverse();}
281+ // ƒ|ƒbƒvƒAƒbƒv
282+ var nTT="";for(var i=0;i<color.length;i++){nTT+='<tt style="background-color:'+color[i]+'"> '+cHash[color[i]].word+'</tt>';}
283+ nDIV+='<span rel="'+type+'" style="display:'+display[0][0]+'">'+nTT+'</span>';
284+ // ƒŠƒXƒg
285+ var nA="";for(var i=0;i<numArray.length;i++){nA+=addAnchor(numArray[i],numArray[i])+" "}
286+ nDIV+='<tt style="background-color:'+color[0]+'" style="display:'+display[1][0]+'"> '+nA+'</tt>';
287+ // ŒÂ”
288+ nDIV+='&nbsp;'+numArray.length+' ';
289+ var buttons='<input type="button" value="'+display[0][1]+'" onclick="changeSearchView();blur()"><input type="button" value="É" onclick="moveToSearchRes(\''+type+'\',\''+color+'\')" title="‰º‚ÖŒŸõ"><input type="button" value="È" onclick="moveToSearchRes(\''+type+'\',\''+color+'\')" title="ã‚ÖŒŸõ"><input type="button" value="CLR" onclick="clearColor(\''+type+'\',\''+color+'\')" title="Alt‰Ÿ‰ºŽž\n’…FƒŒƒX‘S‚Ä"><input type="button" value="DEL" onclick="clearColor(\''+type+'\',\''+color+'\')" title="Alt‰Ÿ‰ºŽž\n’…FƒŒƒX‘S‚Ä">';
290+ fp.innerHTML+='<div id="c'+color[0]+'">'+nDIV+buttons+'</div>';
291+ fp.style.visibility="visible";searched=true;
292+}
293+// ‘ΏۃŒƒX‚ɃWƒƒƒ“ƒv
294+var markedDT;
295+function moveToSearchRes(type,color){
296+ if(color.match(/(.*?),/)){color=RegExp.$1}
297+ var scope = (event && event.srcElement.value=="È") ? false : true ;
298+ var numArray= (type=="res") ? foundRes[color] : highlight[color];
299+ if(isNaN(numArray.justMovedRes)){numArray.justMovedRes=0}
300+ else{
301+ markedDT.style.borderColor="#999";
302+ if(scope){numArray.justMovedRes++;if(numArray.justMovedRes>=numArray.length){numArray.justMovedRes--;alert("‚±‚ê‚æ‚艺‚É‚Í‚ ‚è‚Ü‚¹‚ñ")}}
303+ else {numArray.justMovedRes--;if(numArray.justMovedRes<0){numArray.justMovedRes++;alert("‚±‚ê‚æ‚èã‚É‚Í‚ ‚è‚Ü‚¹‚ñ")}}
304+ }
305+ markedDT=getDTfromAnc(numArray[numArray.justMovedRes]); markedDT.style.borderColor="red";
306+ markedDT.scrollIntoView(true);
307+ setTimeout('markedDT.style.borderColor="#999"',5000);
308+}
309+// ƒ|ƒbƒvƒAƒbƒv‚ƃŠƒXƒg•\Ž¦Ø‚è‘Ö‚¦
310+function changeSearchView(){
311+ var e=event.srcElement;
312+ if(e.value=="POP"){
313+ e.value="LST";
314+ e.parentElement.childNodes[0].style.display="inline";
315+ e.parentElement.childNodes[1].style.display="none";
316+ }else{
317+ e.value="POP";
318+ e.parentElement.childNodes[0].style.display="none";
319+ e.parentElement.childNodes[1].style.display="inline";
320+ }
321+}
322+
323+//==========’PŒêŒŸõ
324+function findIt(arg){createSearchPanel(arg);}
325+var searchWindow=null;
326+// ŒŸõƒEƒBƒ“ƒhƒE‚Ì•\Ž¦
327+function createSearchPanel(arg){ // ê—pƒuƒ‰ƒEƒU‚Å‚ÌmodelessDialog‚Ö‚ÌŠO•”“ǂݍž‚݂ł́AdialogArguments‚ª‘—‚ê‚È‚¢‚Ì‚Å’¼Ú‘‚«o‚·
328+ if(arg){word=arg}
329+ if(searchWindow && !searchWindow.closed){return}
330+ var skinPath=document.getElementsByName("SkinPath")[0].content;
331+ searchWindow=showModelessDialog("",window,'dialogWidth:500px;dialogHeight:200px;dialogTop:0px;dialogLeft:0px;help:no;resizable:yes;status:no;unadorned:yes;');
332+ var nWin='<html><head><title>’PŒê‚ÌŒŸõ<\/title>'
333+ +'<script type="text/javascript">function submitEvent(){var fo=document.forms[0]; dialogArguments.word=fo.word.value; var i=-1;do{i++;dialogArguments.expression =fo.expression[i].value;}while(!fo.expression[i].checked); var i=0; while(fo.searchTarget[i]){dialogArguments.searchTarget[fo.searchTarget[i].value]=fo.searchTarget[i].checked;i++;} var i=-1;do{i++;dialogArguments.searchView =fo.searchView[i].value;}while(!fo.searchView[i].checked); dialogArguments.searchWord();}</script>'
334+ +'<style type="text/css">body{background:ThreeDFace;padding:0.5em;overflow:auto} fieldset{padding:0.5em;margin-top:0.5em;} legend,label,input{font:message-box;}</style>'
335+ +'<\/head><body onunload="unloadEvent()"><form onsubmit="submitEvent();return false;"><table width="100%"><tr><td valign="top" colspan="3">'
336+ +'<label for="word">ŒŸõ•¶Žš—ñF</label><input type="text" name="word" id="word" size="50" value="'+word+'" tabindex="0"><br>'
337+ +'</td><td align="right" valign="top" rowspan="2">'
338+ +'<input type="submit" name="submit" value="@ŒŸ@õ@" tabindex="7"><br><br><input type="button" name="cancel" value="ƒLƒƒƒ“ƒZƒ‹" onclick="window.close()" tabindex="8">'
339+ +'</td></tr><tr valign="top">'
340+ +'<td><fieldset><legend>ŒŸõ•û–@</legend><input type="radio" name="expression" value="default" id="tDef" tabindex="1"> <label for="tDef">’ʏ팟õ</label><br><input type="radio" name="expression" value="regExp" id="tReg"> <label for="tReg">³‹K•\Œ»</label><br><input type="radio" name="expression" value="multiAND" id="tAND"> <label for="tAND">ANDŒŸõ</label><br><input type="radio" name="expression" value="multiOR" id="tOR"> <label for="tOR">ORŒŸõ</label></fieldset></td>'
341+ +'<td><fieldset><legend>ŒŸõ‘ΏÛ</legend><input type="checkbox" name="searchTarget" value="name" id="tName" tabindex="2" checked> <label for="tName">–¼‘O</label><br><input type="checkbox" name="searchTarget" value="mail" id="tMail" tabindex="3" checked> <label for="tMail">ƒ[ƒ‹</label><br><input type="checkbox" name="searchTarget" value="id" id="tID" tabindex="4" checked> <label for="tID">“ú•t‚ÆID</label><br><input type="checkbox" name="searchTarget" value="mess" id="tMess" tabindex="5" checked> <label for="tMess">–{•¶</label></fieldset></td>'
342+ +'<td><fieldset><legend>Œ‹‰Ê•\Ž¦</legend><input type="radio" name="searchView" value="resList" id="rList" tabindex="6"> <label for="rList">ƒŒƒX”ԍ†‚ð•\Ž¦</label><br><input type="radio" name="searchView" value="resPopup" id="rPop"> <label for="rPop">ƒŒƒX‚ðƒ|ƒbƒvƒAƒbƒv</label><br><input type="radio" name="searchView" value="resJump" id="rJump"> <label for="rJump">ƒŒƒX‚ÖƒWƒƒƒ“ƒv</label></fieldset></td>'
343+ +'</tr></table></form><\/body><\/html>';
344+ searchWindow.document.write(nWin);
345+ sdf=searchWindow.document.forms[0]; sdf.elements[0].select();
346+ var ex=sdf.expression;for(var i=0;i<ex.length;i++){if(ex[i].value==expression){ex[i].checked=true}}
347+ var sv=sdf.searchView;for(var i=0;i<sv.length;i++){if(sv[i].value==searchView){sv[i].checked=true}}
348+ range=document.body.createTextRange();
349+}
350+// ŒŸõˆ—ƒƒCƒ“
351+var word="";var range;var searchTarget={"word":true};
352+function searchWord(){
353+ if(!word){return} word=word.replace(/(^\x20+|\x20+$)/g,"");
354+ var matchs=new Array(); var color=new Array();
355+ // ŒŸõ•û–@
356+ if(expression=="regExp" || expression=="default" || (expression.match(/multi/) && !word.match(/\s/))){ // AND/OR‚ňê’PŒê‚È‚çdefault‚ÅŒŸõ
357+ // ŒŸõŒêŽw’è
358+ if(expression=="regExp"){
359+ var regWord=word.replace(/[\^\$]/g,"");
360+ var reg=new RegExp(regWord,"g"); var tmpArr=range.text.match(reg);
361+ if(!tmpArr || !tmpArr.length){tmpArr=new Array();}
362+ var tmpHash={}; for(var i=tmpArr.length;i--;){tmpHash[tmpArr[i]]=true} for(var i in tmpHash){matchs.push(i)} // ³‹K•\Œ»‚ł̃}ƒbƒ`ƒpƒ^[ƒ“‚̏d•¡‚ð”rœ
363+ if(!matchs || !matchs.length){matchs[0]=word} // ŒŸõŒ‹‰Ê0or1‚È‚çA”z—ñì¬
364+ }else{matchs[0]=word}
365+ // ƒnƒCƒ‰ƒCƒg¨d•¡”rœˆ—
366+ var tmpHash={};
367+ for(var i=0;i<matchs.length;i++){
368+ var tmp=setHighlight(matchs[i]);
369+ color[0]=tmp[0]; // ’PF‚Ȃ̂ŏí‚Écolor[0]‚É“ü‚ê‚é
370+ for(var j=tmp[1].length;j--;){tmpHash[tmp[1][j]]=true;} // “¯ˆêƒŒƒX“à•”‚Å‚Ì•¡”ƒ}ƒbƒ`‚ð”rœ
371+ }
372+ createHash(highlight,color[0],"",matchs[0]);
373+ for(var i in tmpHash){highlight[color[0]].push(i);}
374+ highlight[color[0]].sort(sortByInt);
375+ highlight[color[0]].word=word;
376+ }else{
377+ // ŒŸõŒêŽw’è
378+ var matchs=word.split(" "); var tmpArr=new Array();
379+ // ƒnƒCƒ‰ƒCƒg¨d•¡ˆ—
380+ for(var i=0;i<matchs.length;i++){
381+ var tmp=setHighlight(matchs[i]);
382+ color.unshift(tmp[0]);
383+ var tmpHash={};for(var j=tmp[1].length;j--;){tmpHash[tmp[1][j]]=true} for(var j in tmpHash){tmpArr.push(j);} // “¯ˆêƒŒƒX“à•”‚Å‚Ì•¡”ƒ}ƒbƒ`‚ð”rœ
384+ highlight[color[0]].word=matchs[i];
385+ }
386+ color.reverse();tmpArr.sort(sortByInt);
387+ createHash(highlight,color[0],"",matchs[0]); // ˆê’U‰Šú‰»
388+ var tmpHash={};var judge=(expression=="multiAND") ? matchs.length+"<=tmpHash[i]" : "1";
389+ for(var i=0;i<tmpArr.length;i++){if(tmpHash[tmpArr[i]]){tmpHash[tmpArr[i]]++}else{tmpHash[tmpArr[i]]=1}}
390+ for(var i in tmpHash){if(eval(judge)){highlight[color[0]].push(i)}} // ŒŸõŒ‹‰Ê‚Íhighlight[color[0]]‚É“ü‚ê‚é
391+ }
392+ // Œ‹‰Ê•\Ž¦
393+ if (searchView=="resList") {returnFound("search",color);searchWindow.close();}
394+ else if(searchView=="resPopup"){returnFound("search",color);searchWindow.close();}
395+ else if(searchView=="resJump") {returnFound("search",color);searchWindow.close();if(highlight[color[0]].length){moveToSearchRes("search",color.join(","))}}
396+}
397+// ƒnƒCƒ‰ƒCƒgŒŸõ
398+function setHighlight(reg){
399+ // ƒJƒ‰[‘I‘ð
400+ var c=selectColor("highlight"); if(!c){return} var nums=[];
401+ // ŒŸõ
402+ while(range.findText(reg)){
403+ var dt=range.parentElement();var tag=dt.tagName; var thisRange;
404+ // ŒŸõ‘Ώۂōi‚荞‚Ý
405+ if(tag=="B"||tag=="U"){thisRange="name"}
406+ else if(tag=="DT") {thisRange="mail"}
407+ else if(tag=="SPAN") {thisRange="id"}
408+ else if(tag=="DD" || tag=="A" && dt.parentElement.tagName=="DD"){thisRange="mess"}
409+ else if(tag=="STRONG"){thisRange="word"}
410+ else{/*alert("tagF"+tag+"\ndt:"+dt.outerHTML);*/range.collapse(false);continue;} // ƒŒƒX”ԍ†(A)‚⌟õŒ‹‰ÊŽ©‘Ì(TT)
411+ if(!searchTarget[thisRange]){range.collapse(false);continue;}
412+ // ³‹K•\Œ»‚̈ʒuŽw’èŽq‚ª‚ ‚éê‡A•ïŠÜ—v‘f“à•”‚ōČŸõ
413+ if(expression=="regExp" && word.match(/[\^|\$]/)){
414+ var thisReg=new RegExp(word); var targetText=(tag=="STRONG") ? dt.parentElement.innerText : dt.innerText;
415+ if(!targetText.match(thisReg)){range.collapse(false);continue}
416+ }
417+ // dtŽæ“¾¨ƒŒƒX”ԍ†Žæ“¾¨ƒnƒCƒ‰ƒCƒg
418+ if(dt.tagName!="DT"){
419+ while(dt.tagName!="DT" && dt.tagName!="DD"){dt=dt.parentElement}
420+ if(dt.tagName=="DD"){dt=dt.previousSibling}
421+ }
422+ var num=dt.firstChild.innerText;
423+ if(dt.parentElement.className!="refResult"){nums.push(num)} // ‹tŽQÆ“à‚ÌDT‚È‚ç‰ñ”ð
424+ range.pasteHTML('<strong style="background-color:'+c+'">'+range.text+'</strong>');
425+ range.collapse(false);
426+ }
427+ range=document.body.createTextRange(); // ƒŒƒ“ƒW‚ðŒ³‚É–ß‚µ‚Ä‚¨‚­
428+ return([c,nums]);
429+}
430+//==========‹tŽQÆ
431+function searchRef(obj){
432+ if(obj.name!='referred'){
433+ var num=obj.firstChild.innerText;
434+ if(refHash[num]){
435+ var refArr=refHash[num].split(/\s/); var refs="";
436+ for(var i=0;i<refArr.length;i++){refs+=returnString(refArr[i]);}
437+ obj.nextSibling.insertAdjacentHTML("beforeEnd",'<dl class="refResult">'+refs+'</dl>')
438+ obj.name="referred";
439+ }
440+ }else{
441+ obj.nextSibling.lastChild.removeNode(true);
442+ obj.name='';
443+ }
444+}
445+//==========ƒNƒŠƒbƒvƒ{[ƒh‚ɃRƒs[
446+function copyText(target){
447+ var num=event.srcElement.parentElement.name;
448+ var obj=getDTfromAnc(num);
449+ var textarea=document.createElement("TEXTAREA");
450+ var message=obj.nextSibling.innerText.replace(/\s(\r\n|$)/g,"\n");
451+ if (target=="res") {textarea.value=obj.firstChild.innerText+" F"+obj.childNodes[1].innerText+" F"+obj.lastChild.innerText+"\n"+message;}
452+ else if(target=="name"){textarea.value=obj.childNodes[1].innerText+"\n";}
453+ else if(target=="mail"){textarea.value=obj.childNodes[2].nodeValue+"\n";}
454+ else if(target=="id") {textarea.value="ID:"+(obj.lastChild.innerText.split(/ID:/))[1]+"\n";}
455+ var copyText=textarea.createTextRange();
456+ copyText.execCommand("Copy")
457+ event.srcElement.parentElement.removeNode(true);
458+}
459+//==========ƒAƒ“ƒJ[‚©‚çDT‚ð“Á’è
460+var ancs=document.anchors;
461+function getDTfromAnc(num){
462+ var anc=ancs(anchorHead+num);
463+ if(!anc){return("")} //LABELNUMBER‘Ήž‚Ì‚ ‚ځ`‚ñŽá‚µ‚­‚Í–¢o”ԍ†‚È‚çI—¹
464+ var obj=anc.parentElement; //LABELNUMBER‘Ήž‚Ì‚à‚Ì
465+ if(!obj || !obj.tagName){return false;}
466+ if(obj.tagName!="DT"){ //LABELNUMBER”ñ‘Ήž‚Ì‚à‚Ì
467+ if(num==1){if(anc){obj=anc.nextSibling} else{return("")}}
468+ else {if(!anc.nextSibling){obj=anc.parentElement.nextSibling}else{return("")}}
469+ }
470+ return(obj);
471+}
472+//==========sortŠÖ”
473+function sortByInt(x,y){return(x-y)}
474+
475+// ‰æ‘œ”Š֘A
476+var regIMG=new RegExp(".*?\\s.*?\\s.*:.*?\\sIMG:(.*?)(\\s|$)"); // ‰æ‘œ‚à‰Â”\‚É‚µ‚Ä‚Ý‚é
477+function getIMG(obj){
478+ if(regIMG.test(obj.innerText)){
479+ var filename=RegExp.$1;
480+ var tmp=filename.match(/(\d\d\d\d)(\d\d\d\d)(\d\d)/);
481+ var today=new Date();var last=new Date(today-7*24*60*60*1000);var date="";
482+ date+=last.getMonth()<9 ? "0"+(last.getMonth()+1) : last.getMonth()+1;
483+ date+=last.getDate()<10 ? "0"+last.getDate() : last.getDate();
484+ var log= (RegExp.$1+""+RegExp.$2 < last.getYear()+""+date) ? "_kako/" : "_img/";
485+ var fileurl="http://up01.2ch.io/"+log+RegExp.$1+"/"+RegExp.$1+RegExp.$2+"/"+RegExp.$3+"/"+filename;
486+ return(fileurl)
487+ }else{return(false)}
488+}
489+
--- /dev/null
+++ b/res/skin/skin30-3G_IE7/chie_thumbPanel.js
@@ -0,0 +1,95 @@
1+var orgDialogW=dialogWidth;var orgDialogH=dialogWidth;
2+// ‰æ‘œ“Ǎž”»’è\
3+function imgResult(img){
4+ var btn=img.parentElement.children.item(2);
5+ if(event.type=="load"){btn.innerText="___"; img.style.display="block";}
6+ else{btn.innerText="NONE";btn.style.color="#C00";}
7+ var y=27+Math.max(document.getElementById("thumbPanel").clientHeight,document.getElementById("thumbPanel").scrollHeight);
8+ if(y>screen.availHeight){y=screen.availHeight};
9+ window.self.dialogHeight=y+"px";
10+ orgDialogH=dialogHeight;
11+}
12+// ƒTƒCƒY‚̐ؑÖ
13+function changeSize(btn){
14+ var div=document.getElementById("viewPanel");
15+ var img=div.firstChild;
16+ if(!img){return}
17+ if(btn.innerText.match(/100%|_+/)){
18+ var hRatio=div.style.pixelWidth /img.offsetWidth;
19+ var vRatio=div.style.pixelHeight/img.offsetHeight;
20+ var ratio =(hRatio>vRatio) ? vRatio : hRatio;
21+ if(ratio>1){ratio=1}else{img.style.zoom=ratio*100+'%';}
22+ btn.innerText=Math.round(ratio*100-0.5)+"%";
23+ }else{
24+ img.style.zoom="100%";
25+ btn.innerText="100%";
26+ }
27+}
28+// ƒTƒ€ƒlƒCƒ‹‚̍폜
29+function removeThumb(btn){
30+ btn.parentElement.removeNode(true);
31+ if(!thumbPanel.innerHTML&&!viewPanel.innerHTML){self.window.close();return;}
32+ var y=27+Math.min(document.body.clientHeight,document.body.scrollHeight);
33+ window.self.dialogHeight=y+"px";
34+ orgDialogH=dialogHeight;
35+}
36+// ‰æ‘œ•\Ž¦‚̐ؑÖ
37+function changeView(mode,href){
38+ if(!href){href=event.srcElement.src}
39+ var div = document.getElementById("viewPanel");
40+ var thumbs=document.getElementById("thumbPanel");
41+ if(thumbs){
42+ var l=thumbs.childNodes.length;
43+ for(var i=l;i--;){
44+ var stateBtn=thumbs.childNodes[i].childNodes[2];
45+ if(stateBtn.tagName=="BUTTON" && stateBtn.innerText!="NONE"){stateBtn.innerText="___"} //embed‚ÍchildNodes‚É“ü‚ç‚È‚¢?
46+ }
47+ }
48+ if(!div.hasChildNodes() || div.firstChild.src!=href){
49+ if (mode=="img") {var nHTML='<img src="'+href+'" ondragstart="imageMoveStart(this)" ondrag="imageMove(this)" oncontextmenu="addObject()">'}
50+ else if(mode=="swf") {var nHTML='<embed src="'+href+'"></embed><button onclick="window.open(\''+href+'\',\'_parent\')">OPEN</button><button onclick="clearView()">CLOSE</button>'}
51+ div.innerHTML=nHTML;
52+ div.style.posWidth =screen.availWidth-127;
53+ div.style.posHeight=screen.availHeight-20;
54+ if(mode=="img"){changeSize(event.srcElement.parentElement.childNodes[2])}
55+ else{div.firstChild.style.posHeight=div.style.posHeight-25}
56+ //ƒEƒBƒ“ƒhƒE‚̃TƒCƒY
57+ var x,y;
58+ if (mode=="img"){x=div.childNodes[0].offsetWidth+145; y=Math.max(div.childNodes[0].offsetHeight+30,parseInt(orgDialogH));}
59+ else if(mode=="swf"){x=screen.availWidth;y=screen.availHeight;orgDialogH=dialogHeight;}
60+ window.self.dialogWidth =x+"px";
61+ window.self.dialogHeight=y+"px";
62+ }else{clearView()}
63+}
64+//Viewƒpƒlƒ‹ƒNƒŠƒA
65+function clearView(){
66+ var div=document.getElementById("viewPanel");
67+ while(div.firstChild){div.removeChild(div.firstChild)};
68+ if(!thumbPanel.innerHTML){self.window.close();return;}
69+ //ƒEƒBƒ“ƒhƒE‚̃TƒCƒY
70+ window.self.dialogWidth =orgDialogW+"px";
71+ window.self.dialogHeight=orgDialogH+"px";
72+ dialogArguments.focus();
73+}
74+var imageMoveX,imageMoveY;
75+function imageMoveStart(obj){
76+ imageMoveX=obj.parentElement.scrollLeft+event.clientX;
77+ imageMoveY=obj.parentElement.scrollTop +event.clientY
78+}
79+function imageMove(obj) {
80+ obj.parentElement.scrollLeft=imageMoveX-event.clientX;
81+ obj.parentElement.scrollTop=imageMoveY -event.clientY
82+}
83+// ƒ‚ƒUƒCƒNˆ—
84+function imgOver(my,num) {my.style.filter="Alpha(opacity="+num+")"}
85+
86+// Object’ljÁ
87+function addObject(){
88+ var div = document.getElementById("viewPanel");
89+ if(div.firstChild.tagName!="IMG"){return}
90+ div.insertAdjacentHTML("beforeEnd",'<object data="'+event.srcElement.href+'" ondragstart="imageMoveStart(this)" ondrag="imageMove(this)"></object>');
91+ div.childNodes[1].style.pixelWidth =div.childNodes[0].offsetWidth+16;
92+ div.childNodes[1].style.pixelHeight=div.childNodes[0].offsetHeight;
93+ div.src=div.data;
94+ div.childNodes[0].removeNode(true);
95+}