var monDiv; monDiv = document.createElement('div'); monDiv.setAttribute("id","show-widget_notice"); // This function was in xsl test '$is_retour' before 09/11/2010 (Mantis 1627) function goto_widget_notice() { var elmt_js = document.getElementById('script_widget_notice_retour'); if (elmt_js) {elmt_js.parentNode.remove(elmt_js);} // créé la balise script n'importe ou elmt_js = document.createElement('script'); elmt_js.setAttribute("id","script_widget_notice_retour"); elmt_js.setAttribute("src","http://www.laprocure.com/widgets/get_widget.aspx?type_widget=1&is_retour=1"); document.getElementsByTagName('body')[0].appendChild(elmt_js); return false; } // créé la balise css dans le head elmt_css = document.createElement('link'); elmt_css.setAttribute("type","text/css"); elmt_css.setAttribute("rel","stylesheet"); elmt_css.setAttribute("href","http://www.laprocure.com/c/widget-notice-bleu.css"); document.getElementsByTagName('head')[0].appendChild(elmt_css); monDiv.innerHTML = '
' document.getElementById('script_widget_notice').parentNode.insertBefore(monDiv, document.getElementById('script_widget_notice'));