Deci, o simpla cautare pe google si gaseai! Uite aici cod pop-up la click (adica cand apasa pe pagina il trimite.. la, linkul respectiv + trimite pop up 1/24h IP)
Unde e www.MaxRom.ucoz.com inlocuiti cu link-ul siteului la care sa trimita pop-up!
Code
<script type="text/javascript" language="javascript">
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(6*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function popMarket(url){
var x = readCookie('popup-crk');
if (!x) {
createCookie('popup-crk','1',1);
window.open(url);
}
}
</script>
<body onClick="popMarket('http://maxrom.ucoz.com/')">