Skip to content

Instantly share code, notes, and snippets.

@dannguyen
Created March 18, 2011 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannguyen/876820 to your computer and use it in GitHub Desktop.
Save dannguyen/876820 to your computer and use it in GitHub Desktop.
Excerpt of homepage source code for AP.org
<style type="text/css">
#p7s1content1 {
position: absolute;
width: 1548px;
z-index: 99;
left: -182px;
top: 2064px;
visibility: visible;
height: 203px;
overflow: hidden;
}
.gotz { font-family: Arial, sans-serif; font-size: 14px; color: #ADB2A5}
</style>
<link href="stylesheets/aporg.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="JavaScript1.2" src="library/stm31.js"></script>
<script language="JavaScript">
<!--
<!-- Begin
var day="";
var month="";
var myweekday="";
var year="";
mydate = new Date();
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
weekday= myweekday;
myyear= mydate.getYear();
if( myyear < 1000 ) // Netscape returns 100 for Y2K, assuming it will return 101 to 2001, etc...
myyear += 1900;
year = myyear
if(myday == 0)
day = " Sunday, "
else if(myday == 1)
day = " Monday, "
else if(myday == 2)
day = " Tuesday, "
else if(myday == 3)
day = " Wednesday, "
else if(myday == 4)
day = " Thursday, "
else if(myday == 5)
day = " Friday, "
else if(myday == 6)
day = " Saturday, "
if(mymonth == 0) {
month = "Jan. "}
else if(mymonth ==1)
month = "Feb. "
else if(mymonth ==2)
month = "March "
else if(mymonth ==3)
month = "April "
else if(mymonth ==4)
month = "May "
else if(mymonth ==5)
month = "June "
else if(mymonth ==6)
month = "July "
else if(mymonth ==7)
month = "Aug. "
else if(mymonth ==8)
month = "Sept. "
else if(mymonth ==9)
month = "Oct. "
else if(mymonth ==10)
month = "Nov. "
else if(mymonth ==11)
month = "Dec. "
// -->
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<style type="text/css">
<!--
.invisible {
visibility: hidden;
z-index: -1;
height: 1px;
width: 1px;
font-size: 1px;
line-height: 1px;
clip: rect(1px,1px,1px,1px);
}
.style2 {font-size: 10px; font-style: normal; font-variant: normal; color: #990000; font-family: Arial, Helvetica, sans-serif;}
.style3 {color: #000000}
-->
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment