PDA

View Full Version : problem in getting the link to open in new custom window


window
05-07-2007, 08:07 AM
Hi,

I am having a problem in getting the link to open in new custom window (size and atrriubutes that i can control).

Anyway here is a sample code that works in regular web pages

(1) the following put in head section

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=700,height=600,left = 100,top = 10');");
}
// End -->
</script>


(2) The following for the link.

<A HREF="javascriptopUp('http://www.domain.com/')">LinkName</A>


phpLD .....

I have tried to put the above (1) in header.tpl
and (2) in the link.tpl file.

So far I can not get past the header.tpl excepting the headre code in (1) above!! I thought I could just put items here like normal html web page?

Any one any experience in the above ?
and/or
advice (code) on how to achieve this ?

Thanks