java date script needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • newbie
    Confirmed User
    • Jun 2002
    • 108

    #1

    java date script needed

    i have a page that has 156 dates on it

    i need a java script that lets' me put a simple line in each date spot so that it displays the current date/month in every spot
    <embed src="http://www.pluginstories.com/sig.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="60"></embed>
  • pimplink
    Confirmed User
    • Jun 2001
    • 9535

    #2
    Here's a link that spells it out: http://www.computerhope.com/j2.htm
    Last edited by pimplink; 10-28-2002, 09:43 PM.

    Need Mainstream Content and SEO?
    SEO * Website Copy * Blogs
    Blogging - PR Work - Forum Marketing - Social Marketing - Link building - Articles
    100% Guaranteed Content!

    Comment

    • newbie
      Confirmed User
      • Jun 2002
      • 108

      #3
      Originally posted by pimplink
      Here's a link that spells it out: http://www.computerhope.com/j2.htm
      thanks but that's way way way too big to put in 156 times
      <embed src="http://www.pluginstories.com/sig.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="60"></embed>

      Comment

      • Libertine
        sex dwarf
        • May 2002
        • 17860

        #4
        Between your head tags:
        PHP Code:
        <script language="JavaScript">
        <!--
        day = new Date();
        strday = (day.getMonth() + 1) + '/' + day.getDate();
        function sd(){ document.write(strday); }
        //-->
        </script> 
        
        Where you want the date to appear:
        PHP Code:
        <script language="JavaScript">
        <!--
        sd();
        //-->
        </script> 
        
        /(bb|[^b]{2})/

        Comment

        • .:Frog:.
          Confirmed User
          • Jul 2002
          • 2123

          #5
          script language="javascript">
          var monthNames = new Array("January","February","March","April","May"," June","July","August","September","October","Novem ber","December");
          tday = new Date();
          theDay = [tday.getDay()];
          theMonth = monthNames[tday.getMonth()];
          out = theMonth + ' ' + tday.getDate() + ''
          document.write(out);
          </script
          Last edited by .:Frog:.; 10-29-2002, 02:35 AM.
          <a href="http://www.pornopayouts.com/?rid=pp3076">PornoPayouts</a>
          Tons of Hosted Galleries.

          Comment

          Working...