6.3.3.XSLÔ´Âë
1.treefunc.xsl
#foldheader{cursor:hand ;list-style-image:url(/images/fold.gif);padding-left-width:-3}
#foldinglist{list-style-image:url(/images/list.gif);list-left-width:-3}
a:link{COLOR: #051679;TEXT-DECORATION: none}
a:visited{COLOR: #D91656;TEXT-DECORATION: none}
a:hover{COLOR: #cc0000;TEXT-DECORATION: underline}
body{FONT-SIZE: 10pt;}
var temp_str = 'thexmltreecookie'; var fl_n = 0; temp_str = temp_str + "="; for (i=0;i temp_str=temp_str+"0:"; } temp_str = temp_str.substring(0,temp_str.length-1); fl_n = temp_str.length -17 ; if ((document.cookie == '')||(WM_readCookie('thexmltreecookie').length != fl_n)){ document.cookie = temp_str; } else { var temp_s = WM_readCookie("thexmltreecookie").split(":"); for (i=0;i if (temp_s][i] == 0){ var tb =0; for (j=0;tb < 1;j++){ if (document.all[j] == foldinglist[i]){ tb = 1; document.all[j-1].style.listStyleImage="url(/images/fold.gif)"; } } foldinglist[i].style.display="none"; } else { var tb =0; for (j=0;tb < 1;j++){ if (document.all[j] == foldinglist[i]){ tb = 1; document.all[j-1].style.listStyleImage="url(/images/open.gif)"; } } foldinglist[i].style.display=""; } } } ]]>
img1=new Image() img1.src="/images/fold.gif" img2=new Image() img2.src="/images/open.gif" function change(){ if(!document.all) return; var temp_ss =WM_readCookie("thexmltreecookie").split(":"); var temp_s = 'thexmltreecookie'; temp_s = temp_s + '='; if (event.srcElement.id=="foldheader") { var srcIndex = event.srcElement.sourceIndex; var nested = document.all][srcIndex+1]; for (i=0;i if (foldinglist[i] == nested){ var ClickId; ClickId = "ClickId="+event.srcElement.no; document.cookie =ClickId; //alert(document.cookie); if (temp_ss[i]==0){ temp_ss[i]=1; } else { temp_ss[i]=0; } } } for (i=0;i temp_s =temp_s+temp_ss[i]+':'; } temp_s = temp_s.substring(0,temp_s.length-1); document.cookie = temp_s; //var ClickId; //ClickId = "ClickId="+nested; //document.cookie = ClickId; //alert(document.cookie); if (nested.style.display=="none") { nested.style.display='' event.srcElement.style.listStyleImage="url(/images/open.gif)" } else { nested.style.display="none" event.srcElement.style.listStyleImage="url(/images/fold.gif)" } top.topFrame.location.reload(); } } document.onclick=change; function WM_readCookie(name){ //Èç¹ûûÓÐcookieÔò·µ»Øfalse»òÕßÈ¡µÃÖµ²¢·µ»Ø¸ÃÖµ if(document.cookie == ''){ return false; } else { return unescape(WM_getCookieValue(name)); } } function WM_getCookieValue(name){ var firstChar,lastChar; var theBigCookie = document.cookie; firstChar = theBigCookie.indexOf(name); if (firstChar != -1){ firstChar += name.length + 1; // Find the end of the value string (i.e. the next ';'). lastChar = theBigCookie.indexOf(';', firstChar); if(lastChar == -1) lastChar = theBigCookie.length; // Return the value. return theBigCookie.substring(firstChar, lastChar); } else { // If there was no cookie, return false. return false; } } ]]>

