How to add javascript to my site.

General project discussion. NOT for help questions.
Post Reply
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

How to add javascript to my site.

Post 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 :)
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: How to add javascript to my site.

Post by blast2007 »

Just put your Javascript code between {literal} and {/literal}

Code: Select all

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

Return to “General Discussion”