
Get your layout at
Myspace Layouts
(Zamanla Yenileme) ScriptCi.Com
--------------------------------------------------------------------------------------------
Eğer durum çubuğunda sayfanızın ziyaretçiye bildirilen sürede bir refresh edilmesini istiyorsanız aşağıda kodları sayfanın <HEAD>...........</HEAD> tag'leri arasına yazmanız yeter.
<script>
<!--/*Auto Refresh Page with Time scriptBy Website Abstraction (wsabstract.com)Over 200+ free scripts here!*///enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59var limit="0:30"if (document.images){var parselimit=limit.split(":")parselimit=parselimit[0]*60+parselimit[1]*1}function beginrefresh(){if (!document.images)returnif (parselimit==1)window.location.reload()else{ parselimit-=1curmin=Math.floor(parselimit/60)cursec=parselimit%60if (curmin!=0)curtime=curmin+" dakika ve "+cursec+" saniye sonra refresh edilecektir !"elsecurtime=cursec+" saniye sonra refresh edilecektir."window.status=curtimesetTimeout("beginrefresh()",1000)}}window.onload=beginrefresh//-->
</script>
-----------------------------------------------------------------------------
--------------------------------------------------------------------------------
(Downloader) www.htmlblogcufatih.tr.gg
--------------------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1254">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>JavaFILE</title>
<base target="leftframe">
</head>
<body bgcolor="#FFFFFF" link="#CC0033" vlink="#333399"
alink="#FF0000" <!--content start-->
<script language="JavaScript">
<!-- Begin
// Script elements copyright (c) 1997 IMGIS Inc.
// All rights reserved.
function MakeArray(n) {
this.length = n;
for (var i = 1; i <= n; i++) {
this[i] = 0 }
return this
}
speedVar = new MakeArray(11);
speedVar[1] = "1.1719"
speedVar[2] = "1.7578"
speedVar[3] = "3.5156"
speedVar[4] = "6.8359"
speedVar[5] = "7.8125"
speedVar[6] = "16.6250"
speedVar[7] = "187.9883"
speedVar[8] = "1220.7031"
speedVar[9] = "3295.8984"
speedVar[10] = "5493.1641"
speedVar[11] = "18920.8984"
function compute(form, mult){
for (i=1; i < 12; i++){
if (form.size.value==null||form.size.value.length==0){
form.size.value=0;}
if (form[i+"hour"].value==null||form[i+"hour"].value.length==0){
form[i+"hour"].value=0;}
if (form[i+"minute"].value==null||form[i+"minute"].value.length==0){
form[i+"minute"].value=0;}
if (form[i+"second"].value==null||form[i+"second"].value.length==0){
form[i+"second"].value=0;}
if (mult != 0 && form.size.value != 0){
with (Math){
var speed = speedVar[i];
var TotalTime = ((form.size.value*mult)/speed);
var TotalHours = floor((TotalTime/3600));
var TotalHoursMod = (TotalTime%3600);
var TotalMin = floor(TotalHoursMod/60);
var TotalMinMod = (TotalHoursMod%60);
var TotalSec = floor(TotalMinMod);
form[i+"hour"].value=TotalHours;
form[i+"minute"].value=TotalMin;
form[i+"second"].value=TotalSec;
}
}
}
return;
}
// End -->
</script><div align="center"><center>
<table border="0" cellpadding="5" cellspacing="5" width="96%">
<tr>
<td width="100%"><p align="center"><a
href="http://www.adresonline.gen.tr.tc"><font
color="#FF0000"><strong><u>ADRES</u></strong></font><font
color="#0000FF"><strong><u>ONLİNE</u></strong></font></a></p>
<p align="center"><strong><u>İndirmek İstediğiniz
Dosya Boyutunu Yazın Downloader Hesaplasın<br>
webmasterler sitenize ekleyin</u></strong></p>
<form>
<input type="hidden" name="7hour" value><input
type="hidden" name="7minute" value><input
type="hidden" name="7second" value><input
type="hidden" name="8hour" value><input type="hidden"
name="8minute" value><input type="hidden"
name="8second" value><input type="hidden"
name="9hour" value><input type="hidden"
name="9minute" value><input type="hidden"
name="9second" value><input type="hidden"
name="10hour" value><input type="hidden"
name="10minute" value><input type="hidden"
name="10second" value><input type="hidden"
name="11hour" value><input type="hidden"
name="11minute" value><input type="hidden"
name="11second" value><div align="center"><center><table
border="1" bordercolor="#FF8000">
<tr>
<td><font size="2" face="ARIEL,HELVETICA">Boyutu
Yaz..!<input type="text" size="10"
name="size"> <input type="button" value="KB"
onclick="compute(this.form, 1)"> <input
type="button" value="MB"
onclick="compute(this.form, 1024)"> </font></td>
<td colspan="3"><p align="center"><font
size="2" face="ARIEL,HELVETICA"><b>( It will
take you )</b></font></p>
</td>
</tr>
<tr>
<th><font size="2" face="ARIEL,HELVETICA">Modemin
Hızı</font></th>
<th><font size="2" face="ARIEL,HELVETICA">Hours
</font></th>
<th><font size="2" face="ARIEL,HELVETICA">Minutes
</font></th>
<th><font size="2" face="ARIEL,HELVETICA">Seconds</font></th>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"><font
size="2" face="ARIEL,HELVETICA">9.6 Kb</font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="1hour"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="1minute"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="1second"></font></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"><font
size="2" face="ARIEL,HELVETICA">14.4 Kb</font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="2hour"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="2minute"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="2second"></font></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"><font
size="2" face="ARIEL,HELVETICA">28.8 Kb</font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="3hour"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="3minute"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="3second"></font></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"><font
size="2" face="ARIEL,HELVETICA">56 Kb</font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="4hour"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="4minute"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="4second"></font></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"><font
size="2" face="ARIEL,HELVETICA">ISDN (64 Kb)</font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="5hour"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="5minute"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="5second"></font></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"><font
size="2" face="ARIEL,HELVETICA">ISDN (128 Kb)</font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="6hour"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="6minute"> </font></td>
<td align="center"><font size="2"
face="ARIEL,HELVETICA"><input type="text"
size="6" name="6second"></font></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"> </td>
<td align="center"> </td>
<td align="center"> </td>
<td align="center"> </td>
</tr>
</table>
</center></div>
</form>
</td>
</tr>
</table>
</center></div><!--content stop-->
</body>
</html>
-----------------------------------
---------------------------------------
(E-mail gönderme programı) ScriptCi.Com
--------------------------------------------------------------------------------------------
<BODY>
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://aslanprogram.com.tr.tc -->
<FORM>
<INPUT TYPE="button" VALUE="vehbiaslan@superonline.com" onClick="parent.location='mailto:vehbiaslan@superonline.com'">
</FORM>
<FORM>
<INPUT TYPE="button" VALUE="aslanvehbii@mynet.com" onClick="parent.location='mailto:aslanvehbii@mynet.com?subject='">
</FORM>
<p><center>
<a
<!-- Script Size: 0.70 KB -->
---------------------------------------------------
--------------------------------------------
Java nın ilk başlarda internet için geliştirildiğini anımsarsak. İnternetteki bir dosyayı jvm yüklü bir cihaza indirmemiz çok kolay gerçekleşecektir.
Bize internetteki dosyayı indirmemiz gerekli olan paketler
import java.io.*;
import java.net.*;
Adımlar :
1- Bir URL nesnesi örneklendir.URL nesnesinin yapılandırıcı metoduna internetteki dosyayı parametre olarak ver.
2- URL nesnesinin openStream() metodunu kulanarak bir InputStream nesnesi elde et.
3- Cihazın sabit diskinde FileOutputStream kullanarak bir dosya oluştur
4- InputStream den dosyanın son sekizlik(byte) ‘a gelene kadar Akıştan (Stream) oku ve okunan sekizlik veriyi FileInputStream Kullanarak oluşturduğun dosya ya yaz.
Oluşan algoritmayı koda dökecek olursak.
import java.io.*;
import java.net.*;
public class Indir{
public static void main(String[] args) throws MalformedURLException, IOException {
URL url = new URL(”http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf”);
BufferedInputStream TampondanOkuyucu= new BufferedInputStream(url.openStream());
BufferedOutputStream TampondanYazıcı= new BufferedOutputStream(new FileOutputStream(”C:/indirilen.pdf”));
byte i = 0;
do
{
i = (byte)TampondanOkuyucu.read();
TampondanYazici.write(i)
}
while (i != -1);
TampondanOkuyucu.close();
TampondanYazici.close();
System.out.println(”Dosya basarıyla kayıt edildi”);
}
}
Not olarak akıştan her sefirinde bir sekizlik okuyup, yazmak yerine tüm sekizlikleri bir Byte dizisine aktarmak ya da Byte dizilerine bölmek performansı artıracaktır.
Kaynak : http://boraabaci.wordpress.com/
hardcoder
defaten@msn.com