mythcomeback Admin
Mesaj Sayısı : 862 Yer : im seni Reputation : 0 Points : 0 Kayıt tarihi : 31/07/08
Kişisel Sayfalar Metin alanı:
| Konu: Resimler otomatik küçülsün Paz Eyl. 28, 2008 9:50 am | |
| Afiş asmak >> modeler overall_header_new ve viewtopic_body templatelerini düzenle diyin.. Ardından her iki template in de kodların sonuna - Kod:
-
<script> window.onload = resizeimg; function resizeimg() { if (document.getElementsByTagName) { for (i=0; i<document.getElementsByTagName('img').length; i++) { im = document.getElementsByTagName('img')[i]; if (im.width > 600) { im.style.width = '600px'; eval("pop" + String(i) + " = new Function(\"pop = window.open('" + im.src + " ','fullscale','width=400,height=400,scrollbars=1,resizable=1'); pop.focus();\")"); eval("im.onclick = pop" + String(i) + ";"); if (document.all) im.style.cursor = 'hand'; if (!document.all) im.style.cursor = 'pointer'; im.title = 'Büyük hali için Tıklayın.. '; } } } }
bu kodu yapıştırın tememm if (im.width > 600) burdaki 600 değerini değiştirebilirsiniz boyutlanmasını istediğiniz ölçüde tememm | |
|