1(function() 2{ 3 function changeSearchBox(form) 4 { 5 var divBox = form.parentNode; 6 divBox.id = form.name; 7 divBox.className = form.name; 8 divBox.onmouseover = function () 9 { 10 return false; 11 } 12 divBox.onmouseout = function () 13 { 14 return false; 15 } 16 17 removeTitleSearchBox(form); 18 } 19 20 21 function removeTitleSearchBox(form) 22 { 23 var divBox = form.parentNode; 24 var divTitle = divBox.previousSibling; 25 var parent = divBox.parentNode; 26 27 if (!/div/i.test(divTitle.tagName)) { 28 divTitle = divTitle.previousSibling; 29 } 30 31 parent.removeChild(divTitle); 32 } 33 34 35 /** 36 * addLoadListener 37 * ajoute une fonction au gestionnaire d'évènement onload 38 * @param func string nom de la fonction 39 */ 40 function addLoadListener(func) 41 { 42 if (window.addEventListener) { 43 window.addEventListener("load", func, false); 44 } else if (document.addEventListener) { 45 document.addEventListener("load", func, false); 46 } else if (window.attachEvent) { // IE 47 window.attachEvent("onload", func); 48 } else if (typeof window.onload != "function") { // Autres navigateurs 49 window.onload = func; 50 } else { 51 var oldOnload = window.onload; 52 window.onload = function() 53 { 54 oldOnload(); 55 func(); 56 } 57 } 58 } 59 60 /** 61 * init 62 * initialisation des fonctions 63 */ 64 function init() 65 { 66 if (document.formS && /form/i.test(document.formS.tagName)) { 67 changeSearchBox(document.formS); 68 } 69 } 70 71 // Exécution des fonctions 72 if (document.getElementById && document.createElement && document.createTextNode) { 73 addLoadListener(init); 74 } 75 76}) ();
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.