Webhosting in Pakistan
Page 1 of 2 12 LastLast
Results 1 to 12 of 13

Thread: Cursor clock chaiye

  1. #1
    manish141 is offline Senior Member+
    Last Online
    7th September 2019 @ 11:29 PM
    Join Date
    28 Jul 2010
    Age
    30
    Gender
    Male
    Posts
    452
    Threads
    196
    Credits
    810
    Thanked
    12

    Arrow Cursor clock chaiye

    Webhosting in Pakistan
    bhai mujhe cursor clock chaiye jaise websites pe hoti hai kaise banegi java coding ko notepad pe lekar kaise save karna hai plz batao

  2. #2
    Join Date
    22 Oct 2009
    Location
    ~*Dream*World*~
    Gender
    Male
    Posts
    21,935
    Threads
    299
    Credits
    1,125
    Thanked
    1701

    Smile Along with On/Off Button


    Is ke sath On/Off ka chota sa button bhi hai,,,
    Code:
    <body bgcolor="black">
    
    <style type="text/css">
    <!--
    /*Do not Alter these. Set for alignment*/
    .css1{
    position:absolute;top:0px;left:0px;
    width:16px;height:16px;
    font-family:Arial,sans-serif;
    font-size:16px;
    text-align:center;
    font-weight:bold;
    }
    .css2{
    position:absolute;top:0px;left:0px;
    width:10px;height:10px;
    font-family:Arial,sans-serif;
    font-size:10px;
    text-align:center;
    }
    //-->
    </style>
    
    <script type="text/javascript">
    <!-- Mouse Clock 3 Button
    //Hide from older browsers 
    if (document.getElementById&&!document.layers){
    document.write('<input type="button" id="control" value="Clock Off" onClick="this.blur();onoff()">');
    }
    //-->
    </script>
    
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Mouse Follow Clock 3 from Rainbow Arch -->
    <!-- This script and many more from : -->
    <!-- http://rainbow.arch.scriptmania.com -->
    
    <!-- Mouse Follow Clock 3 from http://rainbow.arch.scriptmania.com
    //Hide from older browsers 
    if (document.getElementById&&!document.layers){
    
    //Clock colours
    dCol='#00ff00';//date colour.
    fCol='#ffffff';//face colour.
    sCol='#ffffff';//seconds colour.
    mCol='#00ff00';//minutes colour.
    hCol='#00ff00';//hours colour.
    
    //Controls
    del=0.6;  //Follow mouse speed.
    ref=40;   //Run speed (timeout).
    
    //Alter nothing below! Alignments will be lost!
    var ieType=(typeof window.innerWidth != 'number');
    var docComp=(document.compatMode);
    var docMod=(docComp && docComp.indexOf("CSS") != -1);
    var ieRef=(ieType && docMod)
    ?document.documentElement:document.body;
    theDays=new Array("SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY");
    theMonths=new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER");
    date=new Date();
    day=date.getDate();
    year=date.getYear();
    if (year < 2000) year=year+1900; 
    tmpdate=" "+theDays[date.getDay()]+" "+day+" "+theMonths[date.getMonth()]+" "+year;
    D=tmpdate.split("");
    N='3 4 5 6 7 8 9 10 11 12 1 2';
    N=N.split(" ");
    F=N.length;
    H='...';
    H=H.split("");
    M='....';
    M=M.split("");
    S='.....';
    S=S.split("");
    siz=40;
    eqf=360/F;
    eqd=360/D.length;
    han=siz/5.5;
    ofy=-7;
    ofx=-3;
    ofst=70;
    tmr=null;
    vis=true;
    mouseY=0;
    mou***=0;
    dy=new Array();
    dx=new Array();
    zy=new Array();
    zx=new Array();
    tmps=new Array();
    tmpm=new Array(); 
    tmph=new Array();
    tmpf=new Array(); 
    tmpd=new Array();
    var sum=parseInt(D.length+F+H.length+M.length+S.length)+1;
    for (i=0; i < sum; i++){
    dy[i]=0;
    dx[i]=0;
    zy[i]=0;
    zx[i]=0;
    }
    
    algn=new Array();
    for (i=0; i < D.length; i++){
    algn[i]=(parseInt(D[i]) || D[i]==0)?10:9;
    document.write('<div id="_date'+i+'" class="css2" style="font-size:'+algn[i]+'px;color:'+dCol+'">'+D[i]+'<\/div>');
    tmpd[i]=document.getElementById("_date"+i).style;
    }
    for (i=0; i < F; i++){
    document.write('<div id="_face'+i+'" class="css2" style="color:'+fCol+'">'+N[i]+'<\/div>');
    tmpf[i]=document.getElementById("_face"+i).style; 
    }
    for (i=0; i < H.length; i++){
    document.write('<div id="_hours'+i+'" class="css1" style="color:'+hCol+'">'+H[i]+'<\/div>');
    tmph[i]=document.getElementById("_hours"+i).style;
    }
    for (i=0; i < M.length; i++){
    document.write('<div id="_minutes'+i+'" class="css1" style="color:'+mCol+'">'+M[i]+'<\/div>');
    tmpm[i]=document.getElementById("_minutes"+i).style; 
    }
    for (i=0; i < S.length; i++){
    document.write('<div id="_seconds'+i+'" class="css1" style="color:'+sCol+'">'+S[i]+'<\/div>');
    tmps[i]=document.getElementById("_seconds"+i).style;         
    }
    
    function onoff(){
    if (vis){ 
     vis=false;
     document.getElementById("control").value="Clock On";
     }
    else{ 
     vis=true;
     document.getElementById("control").value="Clock Off";
     Delay();
     }
    kill();
    }
    
    function kill(){
    if (vis) 
     document.onmousemove=mouse;
    else 
     document.onmousemove=null;
    } 
    
    function mouse(e){
    var msy = (!ieType)?window.pageYOffset:0;
    if (!e) e = window.event;    
     if (typeof e.pageY == 'number'){
      mouseY = e.pageY + ofst - msy;
      mou*** = e.pageX + ofst;
     }
     else{
      mouseY = e.clientY + ofst - msy;
      mou*** = e.clientX + ofst;
     }
    if (!vis) kill();
    }
    document.onmousemove=mouse;
    
    function winDims(){
    winH=(ieType)?ieRef.clientHeight:window.innerHeight; 
    winW=(ieType)?ieRef.clientWidth:window.innerWidth;
    }
    winDims();
    window.onresize=new Function("winDims()");
    
    function ClockAndAssign(){
    time = new Date();
    secs = time.getSeconds();
    sec = Math.PI * (secs-15) / 30;
    mins = time.getMinutes();
    min = Math.PI * (mins-15) / 30;
    hrs = time.getHours();
    hr = Math.PI * (hrs-3) / 6 + Math.PI * parseInt(time.getMinutes()) / 360;
    
    for (i=0; i < S.length; i++){
     tmps[i].top=dy[D.length+F+H.length+M.length+i]+ofy+(i*han)*Math.sin(sec)+scrollY+"px";
     tmps[i].left=dx[D.length+F+H.length+M.length+i]+ofx+(i*han)*Math.cos(sec)+"px";
     }
    for (i=0; i < M.length; i++){
     tmpm[i].top=dy[D.length+F+H.length+i]+ofy+(i*han)*Math.sin(min)+scrollY+"px";
     tmpm[i].left=dx[D.length+F+H.length+i]+ofx+(i*han)*Math.cos(min)+"px";
     }
    for (i=0; i < H.length; i++){
     tmph[i].top=dy[D.length+F+i]+ofy+(i*han)*Math.sin(hr)+scrollY+"px";
     tmph[i].left=dx[D.length+F+i]+ofx+(i*han)*Math.cos(hr)+"px";
     }
    for (i=0; i < F; i++){
     tmpf[i].top=dy[D.length+i]+siz*Math.sin(i*eqf*Math.PI/180)+scrollY+"px";
     tmpf[i].left=dx[D.length+i]+siz*Math.cos(i*eqf*Math.PI/180)+"px";
     }
    for (i=0; i < D.length; i++){
     tmpd[i].top=dy[i]+siz*1.5*Math.sin(-sec+i*eqd*Math.PI/180)+scrollY+"px";
     tmpd[i].left=dx[i]+siz*1.5*Math.cos(-sec+i*eqd*Math.PI/180)+"px";
     }
    if (!vis)clearTimeout(tmr);
    }
    
    buffW=(ieType)?80:90;
    function Delay(){
    scrollY=(ieType)?ieRef.scrollTop:window.pageYOffset;
    if (!vis){
     dy[0]=-100;
     dx[0]=-100;
    }
    else{
     zy[0]=Math.round(dy[0]+=((mouseY)-dy[0])*del);
     zx[0]=Math.round(dx[0]+=((mou***)-dx[0])*del);
    }
    for (i=1; i < sum; i++){
     if (!vis){
      dy[i]=-100;
      dx[i]=-100;
     }
     else{
      zy[i]=Math.round(dy[i]+=(zy[i-1]-dy[i])*del);
      zx[i]=Math.round(dx[i]+=(zx[i-1]-dx[i])*del);
     }
    if (dy[i-1] >= winH-80) dy[i-1]=winH-80;
    if (dx[i-1] >= winW-buffW) dx[i-1]=winW-buffW;
    }
    
    tmr=setTimeout('Delay()',ref);
    ClockAndAssign();
    }
    window.onload=Delay;
    }
    //-->
    </script>
    </body>
    Attached Files Attached Files
    ~* W@R T!ll D3@t|-| *~
    ~* I'll Win Not Immediately But Definitely *~

  3. The Following User Says Thank You to Tanweer For This Useful Post:

    apovtigrt (31st August 2011)

  4. #3
    apovtigrt is offline Senior Member+
    Last Online
    23rd July 2016 @ 08:11 PM
    Join Date
    14 May 2009
    Location
    Gujrat
    Gender
    Male
    Posts
    233
    Threads
    2
    Credits
    774
    Thanked
    7

    Default

    Oh Thanx Tanveer Bhai muje b is ki zrurat thi.

  5. #4
    manish141 is offline Senior Member+
    Last Online
    7th September 2019 @ 11:29 PM
    Join Date
    28 Jul 2010
    Age
    30
    Gender
    Male
    Posts
    452
    Threads
    196
    Credits
    810
    Thanked
    12

    Arrow save kaise karna hai

    bhai is code ko save kaise karna hai notepad pe lekar kis format main save kar na hai matlab ki .vbs .reg .bat kisme

  6. #5
    manish141 is offline Senior Member+
    Last Online
    7th September 2019 @ 11:29 PM
    Join Date
    28 Jul 2010
    Age
    30
    Gender
    Male
    Posts
    452
    Threads
    196
    Credits
    810
    Thanked
    12

    Arrow dektop pe nahi chalti hai

    mujhe ye clock desktop pe bhi chalani hai wo kaise hoga

  7. #6
    Join Date
    22 Oct 2009
    Location
    ~*Dream*World*~
    Gender
    Male
    Posts
    21,935
    Threads
    299
    Credits
    1,125
    Thanked
    1701

    Default

    Quote manish141 said: View Post
    bhai is code ko save kaise karna hai notepad pe lekar kis format main save kar na hai matlab ki .vbs .reg .bat kisme
    Ji ise .html formate men save karna hai jaisa ke mene file bhi attach ki hai
    Quote manish141 said: View Post
    mujhe ye clock desktop pe bhi chalani hai wo kaise hoga
    Desktop par sirf clock ek side par {as a gadget} hi yan phir cursor ke sath hi?

  8. #7
    manish141 is offline Senior Member+
    Last Online
    7th September 2019 @ 11:29 PM
    Join Date
    28 Jul 2010
    Age
    30
    Gender
    Male
    Posts
    452
    Threads
    196
    Credits
    810
    Thanked
    12

    Arrow cursor ke saath

    bhai cusrsor ke sath ghumni chaiye udne wali jaise aapne attech ki hai

  9. #8
    Join Date
    22 Oct 2009
    Location
    ~*Dream*World*~
    Gender
    Male
    Posts
    21,935
    Threads
    299
    Credits
    1,125
    Thanked
    1701

    Red face

    Quote manish141 said: View Post
    bhai cusrsor ke sath ghumni chaiye udne wali jaise aapne attech ki hai
    aisa to koi nahin mil raha
    par yeh ek chota sa simple sa mila hai
    http://www.softpedia.com/get/Desktop...or-Clock.shtml

  10. #9
    naimatullah_11 is offline Junior Member
    Last Online
    4th November 2014 @ 03:41 PM
    Join Date
    01 Jan 2011
    Gender
    Male
    Posts
    13
    Threads
    2
    Credits
    583
    Thanked
    0

    Default

    Zaberdast bhai,
    ye java main hota hy kiya?
    agr java main hota hy to mujhe b sikhaoge?


    waiting 4 replying

  11. #10
    manish141 is offline Senior Member+
    Last Online
    7th September 2019 @ 11:29 PM
    Join Date
    28 Jul 2010
    Age
    30
    Gender
    Male
    Posts
    452
    Threads
    196
    Credits
    810
    Thanked
    12

    Question achi nahi hai

    Tanweer bhai ye to sahi nahi lagi wasi nahi hai jaisi aapne html pe banai hai mujhe same wasi hi clock pc ke liye chaiye

  12. #11
    umair8005's Avatar
    umair8005 is offline Advance Member
    Last Online
    8th April 2019 @ 05:06 PM
    Join Date
    24 Sep 2006
    Location
    ~~ SOME 1 HEART ~~
    Posts
    8,820
    Threads
    326
    Credits
    0
    Thanked
    457

    Default

    desktop pr waise clik milna mushkil hy............curcor k sath aaye ge but still rahe hy....web ki trah move nhi kre ge....

  13. #12
    Join Date
    22 Oct 2009
    Location
    ~*Dream*World*~
    Gender
    Male
    Posts
    21,935
    Threads
    299
    Credits
    1,125
    Thanked
    1701

    Red face

    Webhosting in Pakistan
    Quote manish141 said: View Post
    Tanweer bhai ye to sahi nahi lagi wasi nahi hai jaisi aapne html pe banai hai mujhe same wasi hi clock pc ke liye chaiye
    Ji wesi mene try ki thi par mili nahin
    Aor jo HTML wala hai woh mene banaya nahin, search kiya tha aor ta'ki sahi se nazar aaye is liye bus background black kiya,,,

Page 1 of 2 12 LastLast

Similar Threads

  1. Makkah Clock yhe largest clock of the WORLD masha ALLAH.
    By ali786176 in forum Photo Gallery
    Replies: 10
    Last Post: 31st October 2011, 12:04 AM
  2. Cursor clock
    By manish141 in forum Ask an Expert
    Replies: 5
    Last Post: 14th September 2011, 04:13 PM
  3. Replies: 18
    Last Post: 30th May 2011, 02:56 PM
  4. Replies: 11
    Last Post: 28th May 2011, 04:05 AM
  5. The Clock Clock 24 Individual Clocks
    By !*~ITDSTARS~*! in forum Videos
    Replies: 31
    Last Post: 4th January 2011, 12:07 PM

Bookmarks

Posting Permissions

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