PDA

View Full Version : Javasrcipt in sidebar blocks?


ceho
06-26-2010, 06:46 PM
I really hope I am right here in this forum with my little issue:

I want to add a popup window for my users when they click on an image in a sidebar block, the code in the block should be:

<a href="javascript:;" onClick=" and so on.In my old forum (3.8.5) I only added this code to the header template:

<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script> and it would work from any place.

In vB 4 this constellation obviously doesn't work (I tried footer, header and headerinclude).

Could someone give me a hint how to realize that and make the popup window work?
Thank you very much!

ceho
06-30-2010, 04:41 PM
No-one can help me :-(?