<script type="text/javascript">
<!–Hide from old browsers
var today = new Date()
var dayofweek = today.toLocaleString()
dayLocate = dayofweek.indexOf(" ")
weekDay = dayofweek.substring(0, datelocate+1)
newDay = dayofweek.substring(dayLocate)
dateLocate = newDay.indexOf(" ")
monthDate = newDay.substring(0, dateLocate+1)
yearLocate = dayofweek.IndexOf("2006")
year = dayofweek.substr(yearLocate, 4)

var fairDate = new Date("August 17, 2006")
var daysToGo = fairDate.getTime()-today.getTime()
var daysToFair = Math.ceil(daysToGo/(1000*60*60*24))

document.write("<h3 style=’margin-left:10%’>Today is "+weekday+" "+monthdate+" "+year+". We ")
document.write("have "+daysToFair+" days until the start of the fair on August 17, 2006!")
document.write("<br /> See the finest in local crafts, atys, plants and flowers,m animals, and agricultural technology. ")
document.write("Join us for rides, musical entertainment, and the best local cussine.</h3>")

//–>
</script>

The problem is it wont show up the text please help

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Tagged with:

Filed under: Tech News

Like this post? Subscribe to my RSS feed and get loads more!