<script language="JavaScript" type="text/javascript">
<!--//Script Created by あう,http://www5c.biglobe.ne.jp/~horoau/
//ver.2.0
b_shiori = 'sono1';
b_kigen = 90;
b_hyozi = 1.5;
b_bgcolor = '#ccccff';
b_fgcolor = '#000000';
b_set_ok = '←ここにしおりをはさみました';
b_set_ng = 'しおりをはさめませんでした';
b_messege = 'しおりの記録がありません';
if(b_bgcolor)
{b_bgcolor = 'bgcolor="'+b_bgcolor+'"'}
else
{b_bgcolor = "";}
if(b_fgcolor)
{b_fgcolor = '<font color="'+b_fgcolor+'">';
b_fgcolor2 = '</font>';}
else
{b_fgcolor = '';
b_fgcolor2 = '';}
table = '<table border="0" cellspacing="0" cellpadding="3"><tr>\n<td '+b_bgcolor+' nowrap>'+b_fgcolor;
table2 = '</td>\n</tr></table>';
b_set_ok = table+b_set_ok+table2;
b_set_ng = table+b_set_ng+table2;
b_tomegu = 1;
b_id = 0;
function bookmarker_timer()
{if(b_tomegu != 2)
{b_tomegu = 0;
setTimeout('b_tomegu = 1',280);}}
function bookmarker_stop()
{with(document)
{for(i=0;i<forms.length;i++)
{for(ii=0;ii<forms[i].elements.length;ii++)
{forms[i].elements[ii].onmouseover = teishi;
forms[i].elements[ii].onmouseout = saikai;}}
for(i=0;i<links.length;i++)
{links[i].onmouseover = teishi;
links[i].onmouseout = saikai;}
for(i=0;i<applets.length;i++)
{applets[i].onmouseover = teishi;
applets[i].onmouseout = saikai;}}}
function bookmarker(e)
{if(b_tomegu == 0)
{if(document.all)
{if(event.button == 1)
{b_posi1 = document.body.scrollTop+event.clientY;
b_posi2 = document.body.scrollLeft+event.clientX;
b_set_cookie();}}
else if(document.getElementById)
{if(e.which == 1)
{b_posi1 = scrollY+e.clientY;
b_posi2 = scrollX+e.clientX;
b_set_cookie();}}
if(document.layers)
{if(e.which == 1)
{b_posi1 = e.pageY;
b_posi2 = e.pageX;
b_set_cookie();}}}}
function b_set_cookie()
{b_date = new Date();
b_date.setTime(new Date().getTime()+b_kigen*24*60*60*1000);
document.cookie=b_shiori+"="+b_posi1+";expires="+b_date.toGMTString()+";";
if(b_hyozi > 0)
{if(document.cookie.indexOf(b_shiori+"="+b_posi1) != -1)
{b_info_mes(b_set_ok);}
else
{b_info_mes(b_set_ng);}}}
function b_info_mes(b_kekka)
{with(document)
{if(document.all)
{all("b_set_ok").style.left=b_posi2;
all("b_set_ok").style.top=b_posi1;
all("b_set_ok").innerHTML =b_kekka;
all("b_set_ok").style.visibility="visible";
clearTimeout(b_id);
b_id = setTimeout('document.all("b_set_ok").style.visibility="hidden";',b_hyozi*1000);}
else if(document.getElementById)
{getElementById("b_set_ok").style.left=b_posi2;
getElementById("b_set_ok").style.top=b_posi1;
getElementById("b_set_ok").innerHTML =b_kekka;
getElementById("b_set_ok").style.visibility="visible";
clearTimeout(b_id);
b_id = setTimeout('document.getElementById("b_set_ok").style.visibility="hidden";',b_hyozi*1000);}
else if(document.layers)
{layers["b_set_ok"].moveTo(b_posi2,b_posi1)
layers["b_set_ok"].document.open();
layers["b_set_ok"].document.write(b_kekka);
layers["b_set_ok"].document.close();
layers["b_set_ok"].visibility="visible";
clearTimeout(b_id);
b_id = setTimeout('document.layers["b_set_ok"].visibility="hidden";',b_hyozi*1000);}}}
function load_bookmark()
{if(document.cookie.indexOf(b_shiori) != -1)
{b_mark = document.cookie
while(b_mark.indexOf(" ") != -1)
{b_mark = b_mark.replace(" ","");}
b_mark = b_mark.split(";");
for(i in b_mark)
{b_mark2 = b_mark[i].split("=");
if(b_mark2[0] == b_shiori)
{scrollTo(0,b_mark2[1]);
i=-1;
break;}}
if(i != -1)
{alert(b_messege);}}
else
{alert(b_messege);}}
function teishi()
{b_tomegu = 2;}
function saikai()
{b_tomegu = 1;}
if(document.layers)
{document.captureEvents(Event.MOUSEDOWN,Event.MOUSEUP);}
document.onmousedown = bookmarker_timer;
document.onmouseup = bookmarker;
with(document)
{open();
write('<style type="text/css">\n<!-\-\n');
write('#b_set_ok{position:absolute;visibiluty:hidden;}\n');
write('-\->\n<\/style>');
close();}
// -->
</script>
<div id="b_set_ok"></div>
<a href="javascript:load_bookmark();">しおりを挟んだところに移動</a>
<script language="JavaScript" type="text/javascript"><!--
bookmarker_stop();
// --></script>