I'm trying to create a page of links but want them to open in new windows so that customers don't loose my site and have been following some advice but am a little stuck again (sorry):
1. Go to Design | Text. Click on GoTo and type in the following :
Phase = -1
ID = 1191
Replace the existing value with the following :
<A HREF="%s" OnClick="setTarget(this)">
[that's fine]
2. Add the following javascript function in actiniccore.js (found in C:\ProgramFiles\ActinicV7\Sites\Site 1 folder)
function setTarget(obj)
{
if (document.OpenInNewWindow != undefined)
{
obj.target = "_blank";
}
}
[where should I add it???]
3. Add the following javascript code in the template Act_Primary.html (Design | Options | Layouts, click on Edit next to the Default Overall Layout)
<FORM NAME="OpenInNewWindow"></FORM>
This can be placed anywhere in the template after the <body > tag.
[again, think I can follow this part]
I can follow part 1 and part 3 but could I please ask where in actiniccore.js I need to paste the above script - can it go anywhere or does it need to go before or after something specific please?
1. Go to Design | Text. Click on GoTo and type in the following :
Phase = -1
ID = 1191
Replace the existing value with the following :
<A HREF="%s" OnClick="setTarget(this)">
[that's fine]
2. Add the following javascript function in actiniccore.js (found in C:\ProgramFiles\ActinicV7\Sites\Site 1 folder)
function setTarget(obj)
{
if (document.OpenInNewWindow != undefined)
{
obj.target = "_blank";
}
}
[where should I add it???]
3. Add the following javascript code in the template Act_Primary.html (Design | Options | Layouts, click on Edit next to the Default Overall Layout)
<FORM NAME="OpenInNewWindow"></FORM>
This can be placed anywhere in the template after the <body > tag.
[again, think I can follow this part]
I can follow part 1 and part 3 but could I please ask where in actiniccore.js I need to paste the above script - can it go anywhere or does it need to go before or after something specific please?
Comment