H1 tags : function addEventLst(EventTarget,type,listener,useCapture) {
useCapture = typeof(useCapture)=="boolean"?useCapture:false;
if (EventTarget.addEventListener) {
EventTarget.addEventListener(type, listener, useCapture);
} else if ((EventTarget==window) && document.addEventListener) {
document.addEventListener(type, listener, useCapture);
} else if (EventTarget.attachEvent) {
EventTarget["e"+type+listener] = listener;
EventTarget[type+listener] = function() {EventTarget["e"+type+listener]( window.event );}
EventTarget.attachEvent("on"+type, EventTarget[type+listener]);
} else {
EventTarget["on"+type] = listener;
}
}
if (addEventLst) {
addEventLst(window,'load', function() {
// Print
var nPrintArea = document.getElementById("printArea");
nPrintArea.alt = "Lancer l\'impression du document.";
nPrintArea.title = "Lancer l\'impression du document.";
nPrintArea.href = "javascript:window.print();";
});
}
function AddToBookmark(){
if (window.sidebar) {
window.sidebar.addPanel(document.title, window.location.href, "");
} else if (window.external) {
window.external.AddFavorite(window.location.href, document.title);
}
} |