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

Thread: Java Falling Heart On Backgroung

  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 Falling Heart On Backgroung

    <!-- ONE STEP TO INSTALL FLOATING HEARTS:

    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: ------@--------.com) -->
    <!-- Web Site: http://www.itdunya.com/ -->

    <!-- Modified By: S_p_y (------------------) -->
    <!-- Web Site: http://www.itdunya.com -->

    <! >
    <! >

    <!-- Begin
    var no = 12; // number of hearts
    var speed = 10; // smaller number moves the hearts faster
    var heart = "http://www.your-web-site-address-here.com/where/you/put/it/heart.gif";
    var flag;
    var ns4up = (document.layers) ? 1 : 0; // browser sniffer
    var ie4up = (document.all) ? 1 : 0;

    var dx, xp, yp; // coordinate and position variables
    var am, stx, sty; // amplitude and step variables
    var i, doc_width = 800, doc_height = 600;
    if (ns4up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    } else if (ie4up) {
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    dx = new Array();
    xp = new Array();
    yp = new Array();
    amx = new Array();
    amy = new Array();
    stx = new Array();
    sty = new Array();
    flag = new Array();
    for (i = 0; i < no; ++ i) {
    dx[i] = 0; // set coordinate variables
    xp[i] = Math.random()*(doc_width-30)+10; // set position variables
    yp[i] = Math.random()*doc_height;
    amy[i] = 12+ Math.random()*20; // set amplitude variables
    amx[i] = 10+ Math.random()*40;
    stx[i] = 0.02 + Math.random()/10; // set step variables
    sty[i] = 0.7 + Math.random(); // set step variables
    flag[i] = (Math.random()>0.5)?1:0;
    if (ns4up) { // set layers
    if (i == 0) {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(heart+ "\" border=\"0\"></layer>");
    } else {
    document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
    document.write("top=\"15\" visibility=\"show\"><img src=\"");
    document.write(heart+ "\" border=\"0\"></layer>");
    }
    } else
    if (ie4up) {
    if (i == 0) {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(heart+ "\" border=\"0\"></div>");
    } else {
    document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
    document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
    document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
    document.write(heart+ "\" border=\"0\"></div>");
    }
    }
    }

    function snowNS() { // Netscape main animation function
    for (i = 0; i < no; ++ i) { // iterate for every dot
    if (yp[i] > doc_height-50) {
    xp[i] = 10+ Math.random()*(doc_width-amx[i]-30);
    yp[i] = 0;
    flag[i]=(Math.random()<0.5)?1:0;
    stx[i] = 0.02 + Math.random()/10;
    sty[i] = 0.7 + Math.random();
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    }
    if (flag[i])
    dx[i] += stx[i];
    else
    dx[i] -= stx[i];
    if (Math.abs(dx[i]) > Math.PI) {
    yp[i]+=Math.abs(amy[i]*dx[i]);
    xp[i]+=amx[i]*dx[i];
    dx[i]=0;
    flag[i]=!flag[i];
    }
    document.layers["dot"+i].top = yp[i] + amy[i]*(Math.abs(Math.sin(dx[i])+dx[i]));
    document.layers["dot"+i].left = xp[i] + amx[i]*dx[i];

    }
    setTimeout("snowNS()", speed);
    }

    function snowIE() { // IE main animation function
    for (i = 0; i < no; ++ i) { // iterate for every dot
    if (yp[i] > doc_height-50) {
    xp[i] = 10+ Math.random()*(doc_width-amx[i]-30);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/10;
    sty[i] = 0.7 + Math.random();
    flag[i]=(Math.random()<0.5)?1:0;
    doc_width = document.body.clientWidth;
    doc_height = document.body.clientHeight;
    }
    if (flag[i])
    dx[i] += stx[i];
    else
    dx[i] -= stx[i];
    if (Math.abs(dx[i]) > Math.PI) {
    yp[i]+=Math.abs(amy[i]*dx[i]);
    xp[i]+=amx[i]*dx[i];
    dx[i]=0;
    flag[i]=!flag[i];
    }

    document.all["dot"+i].style.pixelTop = yp[i] + amy[i]*(Math.abs(Math.sin(dx[i])+dx[i]));
    document.all["dot"+i].style.pixelLeft = xp[i] + amx[i]*dx[i];
    }
    setTimeout("snowIE()", speed);
    }

    if (ns4up) {
    snowNS();
    } else if (ie4up) {
    snowIE();
    }
    // End -->
    </script>

    AAP KAY LYEE TESTING KAY TAUR PAR AIK WEB BANAYEEHAY
    http://www.geocities.com/archer.pchome/java.html
    YEH CHCK KARLEIN EFFECTS ISS KA
    Attached Images Attached Images   
    Last edited by *KHAN*JEE*; 23rd May 2010 at 08:24 AM.
    NO SPAMMING allowed in signatures here ........ itdunya.com team

  2. #2
    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

    nice Great shairng wellllll wellllll nice and keeeeeeep it upppppp
    God Bless You Most

  3. #3
    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

    bahut bahut thanks aap ka jo aap ne hum jaisay logoon ko bhi view karnay time dyaa

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

    Default

    great work..........
    Welcome To Tutorail section.............
    Umeed hay yahaa app aur bee achee achee sharing karoo gee..

    Keep it up..

    Click Here to View All My Important Threads (Afridi)

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


  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

    Thanks Bhai Jaan Inshallah Behtar Se Behtar Millay Ga Kaam Aap Ko Days By Days Step By Step
    Bahut Shukryaa Again

  6. #6
    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 rashid bahi
    kasey hain ap
    masha ALLAH achi sharing ki hai
    aab check ker kay ap ko bataon ga
    wel done bhai acha kam kiya hai
    wel keep it up
    ALLAH HAFIZ
    السلام وعلیکم
    ASSALAM_O_ALIKUM Hw R U Friends

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

    Default

    nice sharing...welldone

  8. #8
    Shaheen's Avatar
    Shaheen is offline Advance Member
    Last Online
    25th March 2023 @ 09:00 PM
    Join Date
    31 Jul 2006
    Location
    Melbourne
    Posts
    13,755
    Threads
    225
    Credits
    1,448
    Thanked: 1

    Default

    boht khoob bro

  9. #9
    Join Date
    09 Jan 2006
    Location
    Lahore, Pakistan
    Age
    42
    Posts
    260
    Threads
    5
    Credits
    985
    Thanked: 1

    Default

    Weeeeeeeeeeellllllllllll Done Buhat Khoobe kamal kar dya thanx for such a nice sharing.....

  10. #10
    Join Date
    23 Nov 2006
    Location
    Rawalpindi
    Age
    42
    Posts
    6,234
    Threads
    306
    Credits
    1,029
    Thanked
    0

    Default

    bohat khub janab nice good
    ..

  11. #11
    fysalkhan is offline Member
    Last Online
    26th September 2008 @ 01:55 PM
    Join Date
    19 Nov 2006
    Location
    In Your Dreams
    Age
    38
    Posts
    1,787
    Threads
    22
    Thanked
    0

    Default

    nice bro
    thnx for sharing

  12. #12
    arifazizbaloch's Avatar
    arifazizbaloch is offline Junior Member
    Last Online
    19th May 2013 @ 05:10 PM
    Join Date
    25 Jan 2007
    Posts
    8
    Threads
    0
    Credits
    0
    Thanked
    0

    Default Java Falling Heart On Backgroung

    Thanks for sharing well done we found more on here IT DUNYA ZINDA ABAD SHAAD
    Attached Images Attached Images  

Page 1 of 2 12 LastLast

Similar Threads

  1. Difference Between Girls Heart and Boys Heart
    By fawad ahmadbj in forum Photo Gallery
    Replies: 66
    Last Post: 4th November 2015, 02:43 PM
  2. Mobilink New Offer (Heart To Heart)
    By samigunjial in forum General Mobile Discussion
    Replies: 18
    Last Post: 13th March 2012, 01:53 PM
  3. best backgroung image
    By sonia2009 in forum Photo Gallery
    Replies: 3
    Last Post: 1st September 2009, 03:02 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
  •