• 07-02-2009, 19:24:19
    #10
    yani böylemi "window.location = <?php echo $_GET['id'];?>"
  • 07-02-2009, 19:49:31
    #11
    Üyeliği durduruldu
    sum41 adlı üyeden alıntı: mesajı görüntüle
    yani böylemi "window.location = <?php echo $_GET['id'];?>"
    evet. javascript ile geri sayma işlemi bitince
    <script language = "javascript">
    window.location = "<?php echo $_GET['id'];?>";
    </script>
    yaparsanız olur
  • 07-02-2009, 19:59:21
    #12
    yardımlarınız için teşekkürler kendinize iyi bakın
  • 07-02-2009, 21:56:23
    #13
    Download yönetimi olayında bir sorunla karşılaştım
    <script language = "javascript">
    window.location = "<?php echo $_GET['id'];?>";
    </script>
    verdiğiniz kodu alttaki gibi yazdım fakat linki (http://sitem.com/"<?php echo $_GET['id'];?>" bu şekilde açtı
    var mins
    var secs;
    function cd() {
         mins = 1 * m("00"); // change minutes here
         secs = 0 + s(":04"); // change seconds here (always add an additional second to your total)
         redo();
    }
    function m(obj) {
         for(var i = 0; i < obj.length; i++) {
              if(obj.substring(i, i + 1) == ":")
              break;
         }
         return(obj.substring(0, i));
    }
    function s(obj) {
         for(var i = 0; i < obj.length; i++) {
              if(obj.substring(i, i + 1) == ":")
              break;
         }
         return(obj.substring(i + 1, obj.length));
    }
    function dis(mins,secs) {
         var disp;
         if(mins <= 9) {
              disp = " 0";
         } else {
              disp = " ";
         }
         disp += mins + ":";
         if(secs <= 9) {
              disp += "0" + secs;
         } else {
              disp += secs;
         }
         return(disp);
    }
    function redo() {
         secs--;
         if(secs == -1) {
              secs = 59;
              mins--;
         }
         document.cd.disp.value = dis(mins,secs); // setup additional displays here.
         if((mins == 0) && (secs == 0)) {
              window.alert("Time is up. Press OK to continue."); // change timeout message as required
                      window.location = "<?php echo $_GET['id'];?>"; // redirects to specified page once timer ends and ok button is pressed
         } else {
             cd = setTimeout("redo()",1000);
         }
    }
    function init() {
      cd();
    }
    window.onload = init;
    nasıl düzelte bilirim.
  • 07-02-2009, 22:01:56
    #14
    Üyeliği durduruldu
    dosyayı php uzantılı kaydedip download.php
    download.php?id=dosya.zip

    gibi çağırmıyor musunuz?
  • 07-02-2009, 22:10:10
    #15
    bu geri sayım sayacı .js uzantılı
    söyle çalışıyor. aşağıdaki kodu download sayfama koyuyorum
    <HEAD>
    <style>
    #txt {
      background-color:#e6e6de
      border:none;
      font-family:verdana;
      font-size:16pt;
      font-weight:bold;
      border-right-color:#e6e6de
    }
    </style>
    <script type="text/javascript" src="countDown.js"></script>
    </HEAD>
    <form name="cd">
    <input id="txt" readonly="true" type="text" value="00:35" border="0" name="disp">
    			</form>
    sizin verdiğiniz bu koduda .js uzantılı dosyanın içinde uygun yere kaydediyorum
    <script language = "javascript">
    window.location = "<?php echo $_GET['id'];?>";
    </script>
    ve böyle bir sayfa açılıyo http://sitem.com/"<?php echo $_GET['id'];?>"
  • 07-02-2009, 22:15:55
    #16
    Üyeliği durduruldu
    sum41 adlı üyeden alıntı: mesajı görüntüle
    bu geri sayım sayacı .js uzantılı
    söyle çalışıyor. aşağıdaki kodu download sayfama koyuyorum
    <HEAD>
    <style>
    #txt {
      background-color:#e6e6de
      border:none;
      font-family:verdana;
      font-size:16pt;
      font-weight:bold;
      border-right-color:#e6e6de
    }
    </style>
    <script type="text/javascript" src="countDown.js"></script>
    </HEAD>
    <form name="cd">
    <input id="txt" readonly="true" type="text" value="00:35" border="0" name="disp">
    			</form>
    sizin verdiğiniz bu koduda .js uzantılı dosyanın içinde uygun yere kaydediyorum
    <script language = "javascript">
    window.location = "<?php echo $_GET['id'];?>";
    </script>
    ve böyle bir sayfa açılıyo http://sitem.com/"<?php echo $_GET['id'];?>"
    ön tanımlı olarak javascript kodları php yorumlayıcısı tarafından işleme tabi tutulmaz. kodları php dosyanıza taşımalısınız
    olduğu gibi içeriği kopyalarsanız ve
    <script language = "javascript">
    </script>

    tagları arasına yapıştırırsanız çalışacaktır
  • 07-02-2009, 22:31:45
    #17
    countdown.js dosyasının içindeki kodları download.php de
    <script language = "javascript">
    </script> tagları arasına kopyaladım fakat
    <script type="text/javascript" src="countDown.js">
    yukarıda verilen src="countDown.js" bilgileri burdan çekiyodu bunu nasıl download.php sayfasında tanıtırım
    şaunki download.php sayfası
    <HEAD>
    <style>
    #txt {
      background-color:#e6e6de
      border:none;
      font-family:verdana;
      font-size:16pt;
      font-weight:bold;
      border-right-color:#e6e6de
    }
    </style>
    <script type="text/javascript"></script>
    </HEAD>
    <?
    	include_once("header.php");
    
    /*	
    Copyright Notice                 
    Web Site URL:  http://www.ezonelink.co.uk                   
    Script Owner eMail: webmaster@ezonelink.co.uk    
    Date: May, 2006        
    Script Name: eZonelink Image Hosting Script
    Copyright Details: This is not a free Script.  You must pay cost of this script and then use it.  Do not Remove this Copy Right notice.  	
    */	
        if (isset($_GET["id"]) && $_GET["id"] != "")
    	{
    		$myFile = "uploads/".$_GET["id"];
    		$fh = fopen($myFile, 'r');
    
    
    		$comfirmmess = "<p>Download File</p>";
         <script language = "javascript">
    	 var mins
    var secs;
    
    function cd() {
     	mins = 1 * m("00"); // change minutes here
     	secs = 0 + s(":04"); // change seconds here (always add an additional second to your total)
     	redo();
    }
    
    function m(obj) {
     	for(var i = 0; i < obj.length; i++) {
      		if(obj.substring(i, i + 1) == ":")
      		break;
     	}
     	return(obj.substring(0, i));
    }
    
    function s(obj) {
     	for(var i = 0; i < obj.length; i++) {
      		if(obj.substring(i, i + 1) == ":")
      		break;
     	}
     	return(obj.substring(i + 1, obj.length));
    }
    
    function dis(mins,secs) {
     	var disp;
     	if(mins <= 9) {
      		disp = " 0";
     	} else {
      		disp = " ";
     	}
     	disp += mins + ":";
     	if(secs <= 9) {
      		disp += "0" + secs;
     	} else {
      		disp += secs;
     	}
     	return(disp);
    }
    
    function redo() {
     	secs--;
     	if(secs == -1) {
      		secs = 59;
      		mins--;
     	}
     	document.cd.disp.value = dis(mins,secs); // setup additional displays here.
     	if((mins == 0) && (secs == 0)) {
      		window.alert("Time is up. Press OK to continue."); // change timeout message as required
    		  		window.location = "<?php echo $_GET['id'];?>"; // redirects to specified page once timer ends and ok button is pressed
     	} else {
     		cd = setTimeout("redo()",1000);
     	}
    }
    
    function init() {
      cd();
    }
    window.onload = init;
    </script>
    		<form name="cd">
    		<input id="txt" readonly="true" type="text" value="00:35" border="0" name="disp">
    			</form>
    <?
    	    $template->set_filenames(array("confirm" => "comfirm.html")); 
    		$template->assign_vars(array(
    			'CONFIRM' => "Download File",
    			'COMFIRMMESS' => $comfirmmess
    		));
    		
    
    		
    		
    		$template->pparse("confirm");
    		include_once ("right.php"); 
    		include_once ("footer.php"); 
    		die();
    	}
    	else
    	{
    		$template->set_filenames(array("login" => "login.html"));     
    		
    		$template->assign_vars(array(
    			'ERROR' => $error != ""?"<tr><td class='txt_red'>".$error."</td></tr>":"",
    			'USERNAME'=> $_POST['username']
    		));
    		
    		$template->pparse("login");
    	}
    
    	include_once ("footer.php");    
    
    ?>
  • 07-02-2009, 23:27:24
    #18
    Üyeliği durduruldu
    kodları php dosyanıza taşımalısınız js dosyasını açın olduğu gibi içeriği kopyalayın
    <script language = "javascript">
    </script>

    tagları arasına yapıştırırsanız çalışacaktır