SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Message of Love as conditional statement

    I'm designing an wedding album cover with a few lines of Javascript on it. The bride and groom know scripting languages, I don't. Here's what I want to say but in Javascript.
    “If Greta loves Josh
    And Josh loves Greta
    Then love will go on forever.”
    This one too
    “If Greta loves Josh
    And Josh loves Greta
    Then love is true.”

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by joemc74 View Post
    I'm designing an wedding album cover with a few lines of Javascript on it. The bride and groom know scripting languages, I don't. Here's what I want to say but in Javascript.
    Those would be something like this:

    Code javascript:
    if (greta.loves('josh') && josh.loves('greta')) {
        setInterval(love, forever);
    }

    Code javascript:
    if (greta.loves('josh') && josh.loves('greta')) {
        love = true;
    }
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •