Submit Your Article Forum Rules

Results 1 to 2 of 2

Thread: Unknow code

  1. #1
    Senior Member jannmirch's Avatar
    Join Date
    Sep 2005
    Posts
    229

    Unknow code

    First, let me confess, I am only beginning to learn js. I am in the process of updating pages for a new client who got taken advantage of by her former web designer.

    ANYWAY...I am updating pages and trying to clean up the coding/CSS. I am unfamiliar with the following script and want to know if I'm going to screw something up by setting up an external CSS file.

    Here's the code:
    <!--[if !mso]>
    <style> li.MsoNormal
    {mso-style-parent:"";
    margin-bottom:.0001pt;
    font-size:12.0pt;
    font-family:"Times New Roman";
    margin-left:0in; margin-right:0in; margin-top:0in}
    span.style161
    {font-family:Arial;
    color:black}
    span.body1
    {font-family:Arial;
    color:black;
    font-weight:normal}
    div.Section1
    {page:Section1;}
    span.GramE
    {}
    table.MsoTableGrid
    {border:1.0pt solid windowtext;
    font-size:10.0pt;
    font-family:"Times New Roman";
    }
    </style>
    <![endif]-->
    <script>
    <!--
    // gets current date and converts it
    function MakeArray(n) {
    this.length = n
    return this
    }
    monthNames = new MakeArray(12)
    monthNames[1] = "January"
    monthNames[2] = "February"
    monthNames[3] = "March"
    monthNames[4] = "April"
    monthNames[5] = "May"
    monthNames[6] = "June"
    monthNames[7] = "July"
    monthNames[8] = "August"
    monthNames[9] = "September"
    monthNames[10] = "October"
    monthNames[11] = "November"
    monthNames[12] = "December"


    function customDateString(oneDate) {

    var theMonth = monthNames[oneDate.getMonth() + 1]
    var theYear = 2007
    return theMonth + " " + oneDate.getDate() + ", " + theYear
    }
    //-->
    </script>

    <!--[if !mso]>
    <style>
    v\:* { behavior: url(#default#VML) }
    o\:* { behavior: url(#default#VML) }
    .shape { behavior: url(#default#VML) }
    </style>
    <![endif]--><!--[if gte mso 9]>
    <xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
    </xml><![endif]-->
    Marketing & Web Design www.WestchesterMarketingCafe.com
    Twitter: @JannMirch
    FB: Marketing Cafe

  2. #2
    Senior Member sands's Avatar
    Join Date
    Sep 2005
    Posts
    392

    Re: Unknow code

    Looks like the former designer just used Word to create the webpages. You can safely get rid of everything between <!--[if !mso]> and <![endif]--> and go ahead and create a new CSS file after cleaning up the HTML part of the document also. Just retain the JS code as it looks like some kind of calendar script.

Similar Threads

  1. Code
    By jboraski in forum Graphics & Design Discussion Forum
    Replies: 2
    Last Post: 06-25-2009, 09:29 AM
  2. Dynamic code in source code
    By Milo in forum Google Discussion Forum
    Replies: 4
    Last Post: 07-02-2007, 07:25 AM
  3. pin code
    By arpecop in forum Google AdWords/Google AdSense
    Replies: 2
    Last Post: 05-18-2005, 03:41 AM
  4. What is this code for?
    By postUre in forum Web Programming Discussion Forum
    Replies: 2
    Last Post: 02-05-2005, 12:54 PM
  5. PHP Code Help
    By trinski in forum Web Programming Discussion Forum
    Replies: 6
    Last Post: 12-26-2003, 02:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •