- Timestamp:
- 11/26/09 13:59:27 (4 years ago)
- Files:
-
- 1 modified
-
lang/haxe/Tonyu2/htdocs/index.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/haxe/Tonyu2/htdocs/index.html
r35998 r35999 5 5 var nextInd=false; 6 6 var indDepth=""; 7 function down(e) {7 /* function down(e) { 8 8 //var t=document.getElementById("a"); 9 9 //document. addEventlistener("keydown",t); … … 38 38 document.title=t.value.substring(pos,pos+1).charCodeAt(0); 39 39 40 } 40 }*/ 41 41 function loaded() { 42 42 attachIndentAdaptor("a"); 43 setInterval(examine,50); 43 44 } 44 45 function gotoLine(ln) { 45 46 46 47 t=document.getElementById("a"); 47 setRange(t, 100,100);48 setRange(t, 200,200); 48 49 var lines=t.value.split(/\n/).length; 49 t.scrollTop=ln/lines*t.scrollHeight; 50 document.title=t.scrollHeight; 50 maxHeight=t.scrollHeight ; //* (lines-20) / lines; 51 // alert(ln*maxHeight/lines); 52 t.scrollTop=ln*maxHeight/lines; 53 // document.title=t.scrollHeight; 51 54 } 52 </script> 55 function examine() { 56 t=document.getElementById("a"); 57 var lines=t.value.split(/\n/).length; 58 document.title="ln="+lines+" - h="+t.scrollHeight+" - t="+t.scrollTop; 59 } 60 </script> 53 61 <body onload="loaded()"> 54 62 <textarea rows=20 cols=80 id=a> … … 58 66 if (_top.__ie) { 59 67 var s = document.getElementById(id); 60 61 68 if( document.selection ){ 62 69 var range = document.selection.createRange();
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)