Results 1 to 13 of 13

Thread: ( )

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128

    ( )

    -

    Code:
    <script type="text/javascript">
           
    	var currenttime = '<? print date("F d, Y H:i:s", time())?>' //PHP method of getting server date
    
    	var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
    	var serverdate=new Date(currenttime)
    
    	function padlength(what){
    	var output=(what.toString().length==1)? "0"+what : what
    	return output
    	 }
    
    	  function displaytime(){
    	      serverdate.setSeconds(serverdate.getSeconds()+1)
    	      var datestring=montharray[serverdate.getMonth()]+" "+padlength(serverdate.getDate())+", "+serverdate.getFullYear()
    	
    
    
                  var timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds())
    	      document.getElementById("servertime").innerHTML=datestring+" "+timestring
    
            
    	      }
            
    	window.onload=function(){        
            setInterval("displaytime()", 1000);
           
    	} 
    
          </script>
       
          <p style="font:10px Ariel"><b><span id="servertime"></span></p></b>
    1 ,

    window.onload=function(){
    setInterval("displaytime()", 1000);


    *output: August 06, 2009 01:11:50


    -

    window.onload=function(){ displaytime()
    setInterval("displaytime()", 1000);

    ,
    Last edited by Red_Leader; 6th August 2009 at 01:17.

  2. #2
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    1. 1000 time() .
    2. displaytime , onload.

    P.S. .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  3. #3
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    -

  4. #4
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    Code:
    <p style="font:10px Ariel">
    <b><span id="servertime"><?php echo date("F d, Y H:i:s", time()); ?></span></b>
    </p>
    . , , .

    .. : time()-1, -1000. . , -. span ot PHP, .

    ... o , .
    Last edited by Bombera; 6th August 2009 at 02:21.
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  5. #5
    Registered User
    Join Date: Jul:2005
    Location: Sofiq
    Posts: 2,798
    Quote Originally Posted by Bombera View Post
    Code:
    <p style="font:10px Ariel">
    <b><span id="servertime"><?php echo date("F d, Y H:i:s", time()); ?></span></b>
    </p>
    . , , .

    .. : time()-1, -1000. . , -. span ot PHP, .

    ... o , .
    , , , PHP- PHP-.

  6. #6
    Registered User PepiX's Avatar
    Join Date: Sep:2004
    Location:
    Posts: 13,376
    1 1000 ?
    ███████ ( Ilko)
    ███████-, ? ( )
    ███████

  7. #7
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128


    Code:
    <script type="text/javascript">
            //Javascript Script for displaying Date, Time and automaticly refreshing
    	var currenttime = '<?php echo date("F d, Y H:i:s", time())?>' //PHP method of getting server date
    
    	var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
    	var serverdate=new Date(currenttime)
    
    	function padlength(what){
    	var output=(what.toString().length==1)? "0"+what : what
    	return output
    	 }
    
    	  function displaytime(){
    	      serverdate.setSeconds(serverdate.getSeconds()+1)
    	      var datestring=montharray[serverdate.getMonth()]+" "+padlength(serverdate.getDate())+", "+serverdate.getFullYear()
    	
    
    
                  var timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds())
    	      document.getElementById("servertime").innerHTML=datestring+" "+timestring
    
            
    	      }
            
    	window.onload=function(){  displaytime()      
            setInterval("displaytime()", 1000);
           
    	} 
    
          </script>
    	<p style="font:10px Ariel"><b><span id="servertime"></span></p></b>

  8. #8
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    ? , . , , . , ?
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  9. #9
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    /

  10. #10
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    Quote Originally Posted by Red_Leader View Post
    /
    PHP. , . , , - .

    :
    , 06 2009.

  11. #11
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    , PepiX, , ?
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  12. #12
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    PHP

    PHP user log in script.
    ?

  13. #13
    TEKIL4O's Avatar
    Join Date: Feb:2007
    Location: Rousse/Sofia
    Posts: 341
    , 10 .
    Code:
    <?php
    $user = $_POST['username'];
    $pass = md5($_POST['password'];
    $q = "SELECT * FROM `users` WHERE `username` = '$name' AND `password` = '$pass'";
    $res = mysql_query($q) or die(mysql_error());
    if (mysql_num_rows($res) > 0) {
    //        
    }
    else {
    //   
    }
    ?>
    EP 9NPA+ U (HR-05/IFX)| 4200+X2@2.8GHz (IFX-14) | 2x1GB KINGSTON (DDR430 3-4-3-6-1T@2.7V) | GB 8800GT (512MB) | WD6401AALS | CFT-750-14CS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |