Page 1 of 1

How to add javascript to my site.

Posted: Sun Jan 11, 2009 9:56 pm
by buntrosgali
Heres my site


my site


i have got an external photo gallery and embeded it into a html page, with an attached javascript attachment which creates a pop up window for the gallery


my javascript demo


i want to add this javascript to my template but it doesnt seem as straight forward as it should be, does cms allow you to add javascript to your sites?

if so can anyone help here?

the javascript is this


This is written to Window 3 by the main window");

}

function openWinNav() {
    win2 = window.open("winnav.php", "Navigation","width=200,height=300,scrollbars=no,status=no");
}

//-->



so how can i add this to my site?

thanks in advance :)

Re: How to add javascript to my site.

Posted: Sun Jan 11, 2009 11:07 pm
by blast2007
Just put your Javascript code between {literal} and {/literal}

Code: Select all

{literal}
<__script__ language="JavaScript">
<!-- 
...
//-->
</__script>
{/literal}
That's all
regards