+ Reply to Thread
Page 19 of 363 FirstFirst ... 917181920212969119 ... LastLast
Results 181 to 190 of 3627

Thread: Clipboard Game

  1. #181
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Clipboard Game

    Code:
    <th  class="th-6 sectiontableheader">' . ($show_replies) ? 'Replies' : 'Views' . '</th></tr>';

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #182
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: Clipboard Game

    rand(A,B)
    ...

  4. #183
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    Re: Clipboard Game

    Code:
    1. Move the first letter of the message up the alphabet by the first value of the key.
    2.Move the second letter of the message up the alphabet by the second value of the key.

  5. #184
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Clipboard Game

    Code:
    With Jordan away on vacation, I decided to fulfill my role as an administrator and fix a bug one of our members pointed out. One the homepage, rather than showing the number of "Replies" it showed the number of "Views." Jordan originally wrote the code for the tabs, but while trying to debug it, I realized how much more elegant the ternary operator is. Most operators are binary because they operate on two operands. The ternary operator thus operates on three operands – and it makes excerpts of code look much nicer. An excerpt of Jordan's original code is blow: 
    Code:
      if ($show_reply == 0)
       {
          $html= $html . "$views";
       }
       else
       {
        $html= $html . "$replycount";
       }
    Using the ternary operator, it reduces to one line.
    Code:
       $html = ($show_reply) ? $html . $replycount : $html . $views;
    Its really simple: (condition) ? (case_one) : (case_two);

  6. #185
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: Clipboard Game

    New Ads to Approve
    ...

  7. #186
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    Re: Clipboard Game

    Code:
    myArray = new Array(3);
    myArray[0] = "Item 0";
    myArray[1] = "Item 1";
    myArray[2] = "Item 2";
    for (i=0;i<myArray.length;i++) {
    document.write(myArray[i] + "<br />");
    }

  8. #187
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: Clipboard Game

    Code:
    [quote]
    ...

  9. #188
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: Clipboard Game

    Code:
    Deutschunterricht
    ... "German tutoring".

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  10. #189
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Clipboard Game

    [code]http://i204.photobucket.com/albums/bb52/jwebmaster/rogers-1.jpg[/code[

  11. #190
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    Re: Clipboard Game

    Code:
    0eb4e14e3a0af58fa4769fdad43ec79f52abfcdb

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Intercepting Clipboard events
    By mnirahd in forum C and C++
    Replies: 1
    Last Post: 02-01-2011, 12:49 PM
  2. The Clipboard - VB.NET
    By Vswe in forum Visual Basic Tutorials
    Replies: 2
    Last Post: 11-13-2009, 08:14 AM
  3. Copy To Clipboard Help - Probably easy fix...
    By Souluna in forum JavaScript and CSS
    Replies: 1
    Last Post: 07-07-2009, 05:16 AM
  4. Clipboard
    By dirkfirst in forum C# Programming
    Replies: 3
    Last Post: 07-14-2006, 10:06 AM

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