- <body>
- </body>
- <script>
- document.body.style.fontSize="12px";
- JRefPathDiv=document.body.appendChild(document.createElement("div"));
- with (JRefPathDiv.style){
- position='';backgroundColor='ivory';border='1px solid';marginBottom='4px';padding='3px'
- }
- JRefListDiv=document.body.appendChild(document.createElement("div"));
- with (JRefListDiv.style){
- backgroundColor='ivory';border='1px solid';cursor='default';
-
- }
- JRefHistoryText=['window'];
- JRefHistory=[window];
- JRefHistory.pops = function (e) {
- for(var x = 0; x < e; x++){
- JRefHistory.pop()
- JRefHistoryText.pop()
- }
- }
- JRefListDraw();
- function JRefListDraw(target){
- var add,writeStrig=[''];
-
- if(target) {
- JRefHistoryText.push(target);
- JRefHistory.push(target = JRefHistory[JRefHistory.length-1][target]);
- }
- obj = JRefHistory[JRefHistory.length-1];
-
- if(JRefHistory.length>1)writeStrig.push('<tr><td 1 onclick="JRefHistory.pops(1);JRefListDraw()">¡è..</td></tr>');
-
- for(var s in obj){
- try{
-
- for(var tmp=false in obj[s]) {tmp=true;break;}
- if(tmp) {
- add = '2 onclick="JRefListDraw(\''+s+'\');" title="'+'" ><b';
- }else {
- add='3 style=color:blue';
- }
- if(obj[s] == window) add = '4>(win)<tmp';
- inValue=(obj[s]+'').replace(/</g,"<");//alert(inValue)
- }catch(e){add='5'; inValue='';}
-
- writeStrig.push('<tr><td valign=top '+add+' >'+s+'</td><td>'+inValue+'</textarea></td></tr>');
- }
- JRefListDiv.innerHTML = '<table width=100% cellspacing=0 cellpading=0 style=table-layout:fixed><tr><td width=30%>À̸§</td><td width=70%>°ª</td></tr>'+writeStrig.sort().join('')+"</table>";
- JRefPathDraw();
- }
- function JRefPathDraw(target){
- var str=[];
- for (var x=0;x < JRefHistoryText.length; x++){
- str.push('<a ondblclick="JRefHistory.pops('+(JRefHistoryText.length-x-1)+');JRefListDraw()">'+JRefHistoryText[x]+'</a>');
- }
- JRefPathDiv.innerHTML= "PATH : " +str.join('.');
- }
- </script>