that helped me to integrate on every pages the "Send to a friend" (Envoyez cette page à un ami ») function on my iRoutier.com site
Although, the script stops working only on pages where I have other content parts that create and make calls to a "window.onload"
Found out that that I can't use my "Send to a friend" on a page where I have a "Plugin: GoogleMaps" Content Part, like at:
http://www.iroutier.com/site/fiche-entr ... demo.phtml
Samething for my Directories sections (Powered by ExData Mod) like at:
http://www.iroutier.com/site/fr_reperto ... eurs.phtml
(Took the script out for the Directories)
I wonder if there would be a way to make both work together ... ?
Here's the code part where I suspect the problem is:
Code: Select all
...
answer.id = 'dhtmlgoodies_a'+divCounter;
contentDiv = answer.getElementsByTagName('DIV')[0];
contentDiv.style.top = 0 - contentDiv.offsetHeight + 'px';
contentDiv.className='dhtmlgoodies_answer_content';
contentDiv.id = 'dhtmlgoodies_ac' + divCounter;
answer.style.display='none';
answer.style.height='1px';
divCounter++;
}
}
}
window.onload = initShowHideDivs;
</script>
<script language="javascript" type="text/javascript">
<!--
window.onload = function () {
googlemap();
}
window.onunload = function() {
GUnload();
}
//-->
</script>
<script src="template/inc_js/mootools/mootools.js" type="text/javascript"></script>
<link href="template/inc_css/specific/frontend_edit.css" rel="stylesheet" type="text/css" />
<link href="template/slimbox/css/slimbox.css" rel="stylesheet" type="text/css" media="screen" />
<script src="template/slimbox/js/slimbox.js" type="text/javascript"></script>
<!--[if lt IE 7]>
<style type="text/css">
body { behavior: url("template/inc_css/specific/csshover2.htc"); }
img { behavior: url("template/inc_css/specific/iepngfix.htc"); }
</style>
<![endif]-->
</head>
...
I would really appreciate.
Kind Regards,
Yves