WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-14-2007, 05:43 PM
jannmirch's Avatar
WebProWorld Member
 

Join Date: Sep 2005
Location: Yorktown Heights, NY
Posts: 78
jannmirch RepRank 0
Default 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]-->
__________________
Graphic & Web Design
www.jannmirch.com

Last edited by jannmirch : 06-14-2007 at 05:44 PM. Reason: More code...
Reply With Quote
  #2 (permalink)  
Old 06-14-2007, 08:42 PM
sands's Avatar
WebProWorld Veteran
 

Join Date: Sep 2005
Location: Kerala, India
Posts: 397
sands RepRank 1
Default 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.
__________________
My Nook | My Biz
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
where i can get php code nuttaphong191 Web Programming Discussion Forum 3 12-20-2006 04:28 AM
pin code arpecop Google AdWords/Google AdSense 2 05-18-2005 03:41 AM
What is this code for? postUre Web Programming Discussion Forum 2 02-05-2005 12:54 PM
Odd code? TXprogrammer Web Programming Discussion Forum 8 11-05-2004 11:53 PM
PHP Code Help trinski Web Programming Discussion Forum 6 12-26-2003 02:07 AM


Search Engine Optimization by vBSEO 3.2.0