1<!-- Center pop up --> 2function fenetreCent(url,nom,largeur,hauteur,options) { 3var haut=(screen.height-hauteur)/2; 4var Gauche=(screen.width-largeur)/1; 5fencent=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options); 6} 7 8<!-- Center pop up --> 9function fenetreTop(url,nom,largeur,hauteur,options) { 10var haut=(screen.height-hauteur)/0; 11var Gauche=(screen.width-largeur)/1; 12fencent=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options); 13} 14 15<!-- Picture popup --> 16function afficheVignette(cheminVignette,cheminMaxi) 17 { 18 document.write('<A HREF="javascript:afficheMaxi(\''+cheminMaxi+'\')"><IMG SRC="'+cheminVignette+'" HSPACE=0 VSPACE=0 BORDER=0 ALT="cliquez ici pour voir en grand"></A>'); 19 } 20function afficheMaxi(chemin) 21 { 22 i1 = new Image; 23 i1.src = chemin; 24 html = '<HTML><HEAD><TITLE>Image</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></CENTER></BODY></HTML>'; 25 popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1'); 26 popupImage.document.open(); 27 popupImage.document.write(html); 28 popupImage.document.close() 29 }; 30 31<!-- popup --> 32//D'autres scripts sur http://www.toutjavascript.com 33//Si vous utilisez ce script, merci de m'avertir ! < [email protected] > 34function OuvrirPopup(page,nom,option) { 35 window.open(page,nom,option); 36} 37 38<!-- popup --> 39<!-- 40function MM_jumpMenu(targ,selObj,restore){ //v3.0 41 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 42 if (restore) selObj.selectedIndex=0; 43} 44--> 45 46$(document).ready(function(){ 47 $("a[rel^='prettyPhoto']").prettyPhoto(); 48 }); 49 50function insertAtCaret(areaId,text) { 51 var txtarea = document.getElementById(areaId); 52 var scrollPos = txtarea.scrollTop; 53 var strPos = 0; 54 var br = ((txtarea.selectionStart || txtarea.selectionStart == '0') ? 55 "ff" : (document.selection ? "ie" : false ) ); 56 if (br == "ie") { 57 txtarea.focus(); 58 var range = document.selection.createRange(); 59 range.moveStart ('character', -txtarea.value.length); 60 strPos = range.text.length; 61 } 62 else if (br == "ff") strPos = txtarea.selectionStart; 63 64 var front = (txtarea.value).substring(0,strPos); 65 var back = (txtarea.value).substring(strPos,txtarea.value.length); 66 txtarea.value=front+text+back; 67 strPos = strPos + text.length; 68 if (br == "ie") { 69 txtarea.focus(); 70 var range = document.selection.createRange(); 71 range.moveStart ('character', -txtarea.value.length); 72 range.moveStart ('character', strPos); 73 range.moveEnd ('character', 0); 74 range.select(); 75 } 76 else if (br == "ff") { 77 txtarea.selectionStart = strPos; 78 txtarea.selectionEnd = strPos; 79 txtarea.focus(); 80 } 81 txtarea.scrollTop = scrollPos; 82}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.