Mesaj: 108
Katılım Tarihi: 2006
|

02.05.2006, 08:17
aşağıdaki kodu gönderiyorum. birden çok pencere açılıyor, hepsinin ebatlarını farklı yapman mümkün.
*** yerine<
+++ yerine >
işareti getirmen gerekiyor.
***html+++
***head+++***script language="JavaScript"+++
function pencereAc(acilacakPencere, genislik, yukseklik)
{
window.open(acilacakPencere,"plain","width=" + genislik + ",height=" + yukseklik);
}
***/script+++
***title+++***/title+++
***/head+++
***body BGCOLOR="#808080" vlink="#0000FF"+++
***input type="button" value=" "
onClick="pencereAc('bana lazim hesaplar.htm',520,320)"+++ hesaplama
***br+++
***input type="button" value=" "
onClick="pencereAc('banner hosgeldin.htm',310,270)"+++ hosgeldin
***br+++
***input type="button" value=" "
onClick="pencereAc('Blue Ball Machine (Classic GIF Returned).htm',530,490)"+++ mavi balon makinesi
***br+++
***input type="button" value=" iletişim "
onClick="pencereAc('e mail gondersene.htm',370,345)"+++ e mail gönder
***br+++
***input type="button" value=" "
onClick="pencereAc('eval.htm',490,380)"+++ eşitini bul
***br+++
***input type="button" value=" "
onClick="pencereAc('Javascript Color Codes.htm',745,500)"+++ renklerin isimleri***br+++
***/body+++
***/html+++
...........................................
aşağıda da bir kod var. Açılan pencereye istediğini yazdırabiliyorsun. sol üstteki yeşil katmana gelince pencere açar, butona tıklayınca da pencere açar.
2222 yazılı yere <
3333 yazılı yere > işareti koyman gerekiyor.
2222html3333
2222head3333
2222title3333No title2222/title3333
2222meta name="generator" content="Namo WebEditor v5.0(Trial)"3333
2222script language="JavaScript"3333
2222!--
function na_note_window (title, width, height, message, colorBack, back, textColor, typeFont, sizeFont)
{
windowNote = window.open('','Note','toolbar=no,location=no,dire ctories=no,status=no,scrollbars=yes,resizable=yes, copyhistory=no,' + 'width='+width+'' + ',height='+height+'');
text = '2222' + 'HTML' + '33332222' + 'HEAD' + '33332222' + 'TITLE' + '3333' + title + '2222/' + 'TITLE' + '33332222' + '/HEAD' + '33332222' + 'BODY BACKGROUND=' + '"' + back + '"' + ' BGCOLOR=' + '"' + colorBack + '"3333';
text += '2222CENTER3333';
text += '2222span style= "font-size:' +sizeFont+ 'pt;"3333';
text +='2222FONT FACE="' + typeFont +'"';
text += ' COLOR=' + '"' + textColor +'"3333';
text += message + '2222p33332222font color="deeppink"3333buraya yazılan yazı görünür.2222/font33332222/p33332222p33332222h133332222font color="blue"3333biraz da büyük yazalım.2222/font33332222/p33332222/CENTER33332222/FONT3333';
text += '2222/span3333';
text += '2222/' + 'BODY' + '33332222' + '/HTML' + '3333';
windowNote.document.write(text);
windowNote.focus();
windowNote.document.close();
return false;
}
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height= '+height+',toolbar='+toolbar_str+',menubar='+menub ar_str+',status='+statusbar_str+',scrollbars='+scr ollbar_str+',resizable='+resizable_str);
}
// --3333
2222/script3333
2222/head3333
2222body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" OnLoad="na_init_layer_events();"3333
2222div id="layer4" style="background-color:rgb(0,255,153); width:50px; height:20px; position:absolute; left:0px; top:0px; z-index:1; layer-background-color:rgb(0,255,153); " OnMouseOver="na_note_window('iletisim', 400, 400, 'iletişim sayfasına hoşgeldiniz.', 'white', '', 'black', 'Comic Sans MS', 12);"3333
2222p3333 2222/p3333
2222p33332222/p3333
2222/div3333
2222p3333 2222/p3333
2222p33332222/p3333
2222p3333
2222div id="layer4" style="background-color:rgb(0,255,153); width:200px; height:10px; position:absolute; left:50px; top:50px; z-index:1; layer-background-color:rgb(0,255,153); "3333
2222input type="button" value="iletişim sayfasını görmek için buraya tıklayınız" OnClick="na_note_window('iletisim', 400, 400, 'iletişim sayfasına hoşgeldiniz.', 'white', '', 'black', 'Comic Sans MS', 12);"3333
2222/p3333
2222/body3333
2222/html3333
|