Results 1 to 7 of 7

Thread: games war

  1. #1
    Join Date
    Oct 2010
    Location
    Arthunkal
    Posts
    17

    Post games war

    Games war





  2. #2
    Join Date
    Oct 2010
    Location
    Arthunkal
    Posts
    17

    Smile Personal Web pages

    :D[email protected]

    So here we go again! PHP, one of the strongest languages in the whole web design world! If you know how to use it you have the power. Here we have PHP codes and scripts where you can easily use it on your websites! So enjoy, you'll love this open source codes that we have different codes in different categories such as Forums, Forms, Emailing, PHP generators!

  3. #3
    Join Date
    Oct 2010
    Location
    Arthunkal
    Posts
    17

    Default My person page

    Java script array basic code

    <html>
    <body>

    <script type="text/javascript">

    var parents = ["Jani", "Tove"];
    var children = ["Cecilie", "Lone"];
    var family = parents.concat(children);
    document.write(family);

    </script>

    </body>
    </html>

  4. #4
    Join Date
    Oct 2010
    Location
    Arthunkal
    Posts
    17

    Default My personal page

    Add new elements to the beginning of an array - unshift()


    <html>
    <body>

    <script type="text/javascript">

    var fruits = ["Banana", "Orange", "Apple", "Mango"];
    document.write(fruits.unshift("Kiwi") + "<br />");
    document.write(fruits.unshift("Lemon","Pineapple") + "<br />");
    document.write(fruits);

    </script>

    <p><b>Note:</b> The unshift() method does not work properly in Internet Explorer, it only returns undefined!</p>

    </body>
    </html>

  5. #5
    Join Date
    Oct 2010
    Location
    Arthunkal
    Posts
    17

    Default My personal page

    Add an element to position 2 in an array - splice()

    <html>
    <body>

    <script type="text/javascript">

    var fruits = ["Banana", "Orange", "Apple", "Mango"];
    document.write("Removed: " + fruits.splice(2,0,"Lemon") + "<br />");
    document.write(fruits);

    </script>

    </body>
    </html>

  6. #6
    Join Date
    Oct 2003
    Location
    Kochi, Kerala, India
    Posts
    21,389

    Default

    thanks....

  7. #7
    Join Date
    Dec 2011
    Posts
    52

    Default

    good creative information

Tags for this Thread

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
  •