|
|
#13 (permalink) |
|
Üyelik Tarihi: 21.06.2000
Yer: izmir
Yaş: 29
Mesaj: 204
|
...
selamlar..
öncelikle hepinize konuya ilginizden ötürü teşekkür ederim.. hepsi tamam fakat, arkadaki pencereyi sorgusuz,sualsiz kapattırmak istiyorum.yani olay şu.. sayfa açılacak,benim body onload 'ı da açacak ve misal; 5 saniye sona kapanacak. ama benim body onload açık kalacak.. bu nasıl olar ?? |
|
|
|
|
|
#14 (permalink) |
|
Üyelik Tarihi: 26.09.2000
Yer: istanbul
Mesaj: 252
|
onload olarak bi popup açtır açtığın popupdaki sayfadada meta yenile tagını kullan 5 saniye sonra yenilesin , window close olarak kapattır eğer yen açılanı 5 saniye sonra kapatmak istiyorsan bu şekilde olabilir.
__________________
khssi.. |
|
|
|
|
|
#16 (permalink) |
|
Üyelik Tarihi: 21.06.2000
Yer: izmir
Yaş: 29
Mesaj: 204
|
kuen:
onload olarak bi popup açtır açtığın popupdaki sayfadada meta yenile tagını kullan 5 saniye sonra yenilesin , window close olarak kapattır eğer yen açılanı 5 saniye sonra kapatmak istiyorsan bu şekilde olabilir. - refresh yaptırırsam; ikinci defa body onload penceresi de açılır ama ?? |
|
|
|
|
|
#18 (permalink) |
|
Üyelik Tarihi: 26.09.2000
Yer: istanbul
Mesaj: 252
|
veya js ile bi fonksiyon yazarak yapabilirsin.
<script language="JavaScript"> <!-- function kapat(thetime) { setTimeout("window.close()", thetime); } //--> </script> <body bgcolor="#FFFFFF" text="#000000" onLoad="kapat('3000')">
__________________
khssi.. |
|
|
|
|
|
#19 (permalink) |
|
Üyelik Tarihi: 26.09.2000
Yer: istanbul
Mesaj: 252
|
veya şöyle bir örnek var bunları dw extensionlarla yapıyorum onuda belirtim.
<script language="JavaScript"> <!-- function GP_AdvOpenWindow(theURL,winName,features,popWidth, popHeight,center,ignorelink,alwaysOnTop,autoCloseT ime,borderless) { //v1.1 var autoCloseTimeoutHandle, ontopIntervalHandle, w = 480, h = 340; if (popWidth > 0) features += (features.length > 0 ? ',' : '') + 'width=' + popWidth; if (popHeight > 0) features += (features.length > 0 ? ',' : '') + 'height=' + popHeight; if (center && center != "" && popWidth > 0 && popHeight > 0) { if (document.all || document.layers || document.getElementById) { w = screen.availWidth; h = screen.availHeight;} var leftPos = (w-popWidth)/2, topPos = (h-popHeight)/2; features += (features.length > 0 ? ',' : '') + 'top=' + topPos+',left='+leftPos;} if (document.all && borderless && borderless != "" && features.indexOf("fullscreen") != -1) features+=",fullscreen=1"; popupWindow = window.open(theURL,winName,features); if (popupWindow.opener == null) popupWindow.opener = self; if (document.all || document.layers || document.getElementById) { if (borderless && borderless != "") {popupWindow.resizeTo(popWidth,popHeight); popupWindow.moveTo(leftPos, topPos);} if (alwaysOnTop && alwaysOnTop != "") { ontopIntervalHandle = popupWindow.setInterval("window.opener.popupWindow .focus();", 50); popupWindow.document.body.onload = function() {popupWindow.setInterval("window.opener.popupWindo w.focus();", 50);}; } if (autoCloseTime && autoCloseTime > 0) { popupWindow.document.body.onbeforeunload = function() { if (autoCloseTimeoutHandle) window.clearInterval(autoCloseTimeoutHandle); window.onbeforeunload = null; } autoCloseTimeoutHandle = window.setTimeout("popupWindow.close()", autoCloseTime * 1000); } window.onbeforeunload = function() {popupWindow.close();}; } document.MM_returnValue = (ignorelink && ignorelink != "") ? false : true; } //--> </script> <body bgcolor="#FFFFFF" text="#000000" onLoad="GP_AdvOpenWindow('test.HTML','','fullscree n=no,toolbar=no,location=no,status=no,menubar=no,s crollbars=no,resizable=no',200,200,'','','',5,''); return document.MM_returnValue"> Bu şekilde yaparsan kapanırken soruda sormaz..
__________________
khssi.. |
|
|
|
Zoque'a hoşgeldiniz!