Hi All,
We are working on an Actinic 8 site and have the following question.
The site has 10 or so main categories. We would like to have a prompt that pops up for 2 or 3 of the categories. This prompt will have 2 choices, either yes - view the page, or No be directed away from the page.
As mentioned, this is only for some sections of the site and the products contained therein. So is there a way of inserting the following code - or similar - into the head area of selected sections of the Actinic??
<SCRIPT LANGUAGE="JavaScript"><!--
function checkCount() {
if ( !document.cookie.length )
{
input_box=confirm("Click OK or Cancel to Continue");
if (input_box==true)
{
// Output when OK is clicked
document.cookie = 'popup=no';
}
else
{
// Output when Cancel is clicked
window.location = "http://www.google.co.uk";
}
}
}
-->
</script>
This function is called when the page loads up.
Cheers for any help received
Grant
We are working on an Actinic 8 site and have the following question.
The site has 10 or so main categories. We would like to have a prompt that pops up for 2 or 3 of the categories. This prompt will have 2 choices, either yes - view the page, or No be directed away from the page.
As mentioned, this is only for some sections of the site and the products contained therein. So is there a way of inserting the following code - or similar - into the head area of selected sections of the Actinic??
<SCRIPT LANGUAGE="JavaScript"><!--
function checkCount() {
if ( !document.cookie.length )
{
input_box=confirm("Click OK or Cancel to Continue");
if (input_box==true)
{
// Output when OK is clicked
document.cookie = 'popup=no';
}
else
{
// Output when Cancel is clicked
window.location = "http://www.google.co.uk";
}
}
}
-->
</script>
This function is called when the page loads up.
Cheers for any help received
Grant
Comment