Arkadaslar ben foruma popup eklemek istiyorum yanı. forum ana sayfası acıldıgında kucuk bi ekranın cıkmasını istiyorum nasıl olucak bu iş. yanı ornek verilecek olursa members.lycos tan bi site acınca bi kucuk ekran cıkıyor onun gibi yanı???
function openpopup(){ var popurl="açmak istediğin sayfa adresi" winpops=window.open(popurl,"",",,") }
function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; }
function loadornot(){ if (get_cookie('poppedup')==''){ openpopup() document.cookie="poppedup=yes" } }
Bu mesaja 1 cevap geldi. Cevapları Gizle
function openpopup(){
var popurl="açmak istediğin sayfa adresi"
winpops=window.open(popurl,"",",,")
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function loadornot(){
if (get_cookie('poppedup')==''){
openpopup()
document.cookie="poppedup=yes"
}
}
loadornot()
</script>