WEB Need some javascripts help

Discussion in 'OT Technology' started by thomor25, Nov 22, 2009.

  1. thomor25

    thomor25 I make money online....

    Joined:
    Jun 11, 2000
    Messages:
    11,101
    Likes Received:
    0
    Location:
    Denver Colorado
    I need this to say like one day after like today is Saturday the 21st of nov 2009 I need it to be one day ahead and say like sunday the 22nd of nov 2009 here is the code i got for today but I been trying to modify it and it isn't working

    Code:
    <script>
    
    
    
    var mydate=new Date()
    var year=mydate.getYear()
    if (year < 1000)
    year+=1900
    var day=mydate.getDay()
    var month=mydate.getMonth()
    var daym=mydate.getDate()
    if (daym<10)
    daym="0"+daym
    var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
    var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
    document.write(""+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"")
    
    </script>
    
    
     
  2. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,767
    Likes Received:
    6
    easy
     
  3. thomor25

    thomor25 I make money online....

    Joined:
    Jun 11, 2000
    Messages:
    11,101
    Likes Received:
    0
    Location:
    Denver Colorado
    i tried adding +1 to get day but it didn't work
     
  4. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,767
    Likes Received:
    6
    var penis = new Date();
    penis.setDate(penis.getDate()+1);
     
  5. thomor25

    thomor25 I make money online....

    Joined:
    Jun 11, 2000
    Messages:
    11,101
    Likes Received:
    0
    Location:
    Denver Colorado
    where do I insert penis lol
     
  6. thomor25

    thomor25 I make money online....

    Joined:
    Jun 11, 2000
    Messages:
    11,101
    Likes Received:
    0
    Location:
    Denver Colorado
    thanks for the help for showing me where to insert penis it worked great
     
  7. Insert Tokens

    Insert Tokens Making Cancer My Bitch OT Supporter

    Joined:
    Jan 12, 2006
    Messages:
    8,329
    Likes Received:
    75
    Location:
    Tasmania
    :rofl:

    Funny, but also the correct answer :p
     
  8. thomor25

    thomor25 I make money online....

    Joined:
    Jun 11, 2000
    Messages:
    11,101
    Likes Received:
    0
    Location:
    Denver Colorado
    I tried to insert it at the bottom and it just didn't feel right and gave me an error so I tried at the top and it went in nice and smooth and gave me the result I was looking for.
     
  9. brds

    brds OT Supporter

    Joined:
    Jun 26, 2006
    Messages:
    17,647
    Likes Received:
    15
    Location:
    Atlanta
    y not just use PHP?
     
  10. blinger

    blinger Guest

    .
     

Share This Page