iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar 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.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-14-2007, 06:43 PM
jannmirch's Avatar
WebProWorld Pro
 
Join Date: Sep 2005
Location: Yorktown Heights, NY
Posts: 112
jannmirch RepRank 1
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 06:44 PM. Reason: More code...
Reply With Quote
  #2 (permalink)  
Old 06-14-2007, 09:42 PM
sands's Avatar
WebProWorld Veteran
 
Join Date: Sep 2005
Location: Kerala, India
Posts: 395
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 | My Photos
Reply With Quote
Reply

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

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

BB 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 05:28 AM
pin code arpecop Google AdWords/Google AdSense 2 05-18-2005 04:41 AM
What is this code for? postUre Web Programming Discussion Forum 2 02-05-2005 01:54 PM
Odd code? TXprogrammer Web Programming Discussion Forum 8 11-06-2004 12:53 AM
PHP Code Help trinski Web Programming Discussion Forum 6 12-26-2003 03:07 AM


All times are GMT -4. The time now is 10:20 AM.



Search Engine Optimization by vBSEO 3.3.0