Page 1 of 2 12 LastLast
Results 1 to 12 of 21

Thread: Java Magcal Mouse Effects

  1. #1
    Member1 is offline Senior Member+
    Last Online
    24th February 2006 @ 06:02 PM
    Join Date
    20 Jan 2006
    Posts
    465
    Threads
    115
    Credits
    0
    Thanked
    0

    Cool Java Magcal Mouse Effects

    <!-- ONE STEP TO INSTALL EYES:

    1. Copy the coding into the BODY of your HTML document -->

    <!-- STEP ONE: Paste this code into the BODY of your HTML document -->

    <BODY>

    <SCRIPT LANGUAGE="JavaScript1.2">
    <!-- Original: Afflicted_Heart*********** -->
    <!-- Web Site: http://www.itdunya.com -->

    <! >
    <! >

    <!-- Begin
    var brOK = false, mie = false;
    if (document.layers || document.all) brOK = true;
    if (document.all) mie = true;
    var ex = 0, ey = 0;
    var ae, le, re, x0, y0, tid, realx, realy;
    function navMove(e) {
    ex = e.pageX;
    ey = e.pageY;
    moveeye()
    return routeEvent(e);
    }
    function mieMove() {
    ex = document.body.scrollLeft + event.x;
    ey = document.body.scrollTop + event.y;
    moveeye();
    }
    function moveeye() {
    dy = ey - y0 - 20;
    dx1 = ex - x0 - 20;
    dx2 = ex - x0 - 60;
    r = Math.sqrt(dx1 * dx1 + dy * dy);
    if (r < 20) r = 20;
    dx1 = dx1 * 10 / r + x0 + 10;
    dy1 = dy * 10 / r + y0 + 10;
    r = Math.sqrt(dx2 * dx2 + dy * dy);
    if (r < 20) r = 20;
    dx2 = dx2 * 10 / r + x0 + 50;
    ae.left = x0;
    ae.top = y0;
    le.left = dx1;
    le.top = dy1;
    re.left = dx2;
    re.top = dy1;
    }
    function setHandlers() {
    if (!mie) {
    y0 = document.eyeballs.top;
    x0 = document.eyeballs.left;
    ae = document.eyeballs;
    le = document.lefteye;
    re = document.righteye;
    window.captureEvents(Event.MOUSEMOVE);
    window.onMouseMove = navMove;
    }
    else {
    y0 = document.all.eyeballs.style.pixelTop;
    x0 = document.all.eyeballs.style.pixelLeft;
    ae = document.all.eyeballs.style;
    le = document.all.lefteye.style;
    re = document.all.righteye.style;
    window.document.onmousemove = mieMove;
    }
    realx = x0 + 0.1;
    realy = y0 + 0.1;
    moveall();
    }
    function moveall() {
    rx = realx + 40;
    ry = realy + 40;
    rx += (ex - rx) * 0.1;
    ry += (ey - ry) * 0.1;
    realx = rx - 40;
    realy = ry - 40;
    x0 = Math.round(realx);
    y0 = Math.round(realy);
    moveeye();
    tid = setTimeout('moveall()', 100);
    }
    function placeeyes(x, y) {
    if (brOK) {
    ex = x + 40;
    ey = y + 40;
    s = '<DIV ID ="dummy" STYLE="position:absolute; ' +
    'top:'+y+'; left:'+x+'; width:10; height:10;"> </DIV>';
    s += '<DIV ID="eyeballs" STYLE="position:absolute; ' +
    'top:'+y+'; left:'+x+'; width:80; height:40;"><IMG SRC=' +
    '"whites.gif" border=0></DIV>';
    s += '<DIV ID="lefteye" STYLE="position:absolute; ' +
    'top:'+(y+10)+'; left:'+(x+10)+'; width:20; height:20;">' +
    '<IMG SRC="pupil.gif" border=0></DIV>';
    s += '<DIV ID="righteye" STYLE="position:absolute; ' +
    'top:'+(y+10)+'; left:'+(x+50)+'; width:20; height:20;">' +
    '<IMG SRC="pupil.gif" border=0></DIV>';
    document.writeln(s);
    }
    }
    function clearEyes() {
    if (tid) clearTimeout(tid);
    }
    placeeyes(200, 100);
    window.onload = setHandlers;
    window.onunload = clearEyes;
    // End -->
    </script>
    Attached Images Attached Images    
    NO SPAMMING allowed in signatures here ........ itdunya.com team

  2. #2
    Join Date
    20 Nov 2005
    Posts
    575
    Threads
    60
    Thanked
    0

    Default

    Very Nice BHAI AP NI TU KAMMAL KAR DIYA HAI.
    Hope kaa app ache sharing jari rehkhye gaaa.
    SAJID YASIN.

  3. #3
    jaankaash's Avatar
    jaankaash is offline Senior Member+
    Last Online
    26th May 2022 @ 10:24 AM
    Join Date
    18 Nov 2005
    Location
    Karachi
    Age
    38
    Gender
    Male
    Posts
    2,139
    Threads
    117
    Credits
    1,384
    Thanked
    5

    Default

    very nice rashid bhai bohat acha work kia aap ne too

  4. #4
    gul's Avatar
    gul is offline Senior Member
    Last Online
    17th April 2019 @ 03:19 AM
    Join Date
    22 Nov 2005
    Posts
    1,407
    Threads
    48
    Credits
    532
    Thanked
    44

    Default

    S P Y bhaaaeee sahib..
    excellent....
    aap say aik guzarish hay keh agar aap corel draw kay baray main be tutorial likh diya karain to mehrbanee ho gee,,, shukria

  5. #5
    Member1 is offline Senior Member+
    Last Online
    24th February 2006 @ 06:02 PM
    Join Date
    20 Jan 2006
    Posts
    465
    Threads
    115
    Credits
    0
    Thanked
    0

    Default

    Hehehehe Bhai Corel Ata Hota By God Zaroor Deta Aap Ko Mein Tutorial
    Na Office Ata Hay Na Word Na Excel Na Corel
    Thanks Mere Sab Bhaiyoon Ka Jinhoon Ne Post Ko Pasand Kyaa

  6. #6
    cute_charming786 is offline Senior Member+
    Last Online
    26th July 2011 @ 01:16 AM
    Join Date
    29 Dec 2005
    Location
    ~*~Live in yOur
    Posts
    3,449
    Threads
    146
    Credits
    955
    Thanked
    0

    Default

    hmmmmmmmmmmmmmm great shairing keeeeeeeep it up dear

  7. #7
    Member1 is offline Senior Member+
    Last Online
    24th February 2006 @ 06:02 PM
    Join Date
    20 Jan 2006
    Posts
    465
    Threads
    115
    Credits
    0
    Thanked
    0

    Default

    Thanks So Much Janab

  8. #8
    Join Date
    09 Nov 2005
    Location
    @itdunya.com
    Age
    39
    Gender
    Male
    Posts
    20,633
    Threads
    1118
    Credits
    28,335
    Thanked
    4779

    Default

    Nice Sharing.........
    App script deetee wakat Quote kaa isstemaal karee...per app ka script alag aayegaa...

    example.......

    Great work....
    Last edited by Afridi; 11th February 2006 at 07:23 AM.

    Click Here to View All My Important Threads (Afridi)

    وتُعِزُّ مَنْ تَشَاءُ وَتُذِلُّ مَنْ تَشَاءُ
    اور تو جسے چاہے عزت دے اور جسے چاہے ذلت دے۔
    Pakistan Zindabad


  9. #9
    Member1 is offline Senior Member+
    Last Online
    24th February 2006 @ 06:02 PM
    Join Date
    20 Jan 2006
    Posts
    465
    Threads
    115
    Credits
    0
    Thanked
    0

    Default

    Thanks Bhai Jaan Aap Ko To Pata Hay Mujhe Itna Maloom Nahi Lakin Ab Yehi Karoonga Inshallah

  10. #10
    Noman Khan is offline Senior Member+
    Last Online
    26th September 2014 @ 01:54 AM
    Join Date
    30 Nov 2005
    Posts
    1,117
    Threads
    2
    Credits
    0
    Thanked: 1

    Default

    walaykum salam bhai
    kasey hain ap
    MASHA ALLAH ap ka kam bohat acha chal raha hai
    wel done bhai
    main check kerta hon ager koi masla hota hai to bataon ga
    zaroor
    wel keep it up
    ALLAH HAFIZ
    السلام وعلیکم
    ASSALAM_O_ALIKUM Hw R U Friends

  11. #11
    faakher is offline Senior Member
    Last Online
    18th January 2017 @ 01:45 PM
    Join Date
    11 Nov 2005
    Age
    43
    Posts
    571
    Threads
    56
    Credits
    6
    Thanked
    0

    Default

    Very Nice.
    i Think its good effort spy.
    is sey hamarey forum k log java ko bi seekh saktey hain
    agar aap java ko shuroo sey batana shuroo karain to maza aa jay.
    well ver nice man

    Faakher

  12. #12
    Join Date
    08 Jun 2006
    Location
    AlKaMoNyA
    Posts
    20,923
    Threads
    1112
    Credits
    846
    Thanked
    12

    Default

    great work....welldone brother...keep it up

Page 1 of 2 12 LastLast

Similar Threads

  1. Use your java enabled mobile as a mouse for PC
    By ILYASZARIF in forum General Mobile Discussion
    Replies: 13
    Last Post: 12th October 2012, 03:12 PM
  2. Java scripts (Hearts following mouse)
    By daniyaliqbal in forum General Discussion
    Replies: 2
    Last Post: 16th December 2009, 03:15 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
  •