Greetings,
I'm using the new K2 template. I would imagine you could do this with the old one or anyone for that matter...
This may be the hard way but gets the job done.
In my /presentation/theme editor ... I find the header.php file. If you make your header.php file writable from the server you can edit this file in the admin panel. Or just do this in a shell.
add this right above the <body> tag in your header.php.
<SCRIPT LANGUAGE = "JavaScript">
<!-- //
function gofuckyourself(sURL)
{
popup=open(sURL,"window");
}
//-->
</script>
Then modify your <body> tag to include ...
onUnload="javascript
:gofuckyourself (' URL TO PAGE')".
On my page it looks like...
<SCRIPT LANGUAGE = "JavaScript">
<!-- //
function gofuckyourself(sURL)
{
popup=open(sURL,"window");
}
//-->
</script>
<body onUnload="javascript
:gofuckyourself ('http://www.fartfly.com')" class="<?php k2_body_class(); ?>" <?php k2_body_id(); ?>>
a quicky more or less
