[翻譯]歡迎來到第三個CSS裸奔節!

來源:互聯網
上載者:User

原文地址:http://naked.dustindiaz.com/


Welcome to the third year of CSS Naked Day!
. The first year turned out great, and the second year even better. Now Naked Day '08 is going to push the numbers even further on April 9th.

English, Spanish, French, Thai, Chinese, [Korean 01, Korean 02], [German 01 German 02], Bulgarian, Hungarian, [Russian 01, Russian 02], Ukrainian, Croatian
(if you translated most of this page to another langauge, let me know)

第三屆CSS裸奔節來了,今年(CSS Naked Day ‘08)的時間定在4月9日。

Where did my Design go?

The idea behind this event is to promote Web Standards. Plain and simple. This includes proper use of (x)html, semantic markup, a good hierarchy structure, and of course, a good 'ol play on words. It's time to show off your <body>.

活動目的

CSS裸奔節的目的是推動Web標準。簡潔為美。使用正確的(x)html,語義標記,良好的階層。暫時把頁面設計拋棄,直接展示<body>吧。

 

How to participate

Fill out the naked day signup form, then your website will be included in the official list within the next hour.

Then on April 9th, simply remove all CSS from your website, stripping it entirely of its design.

(Optional): Insert the following snippet of markup at the top of your page on the day of.

<h3>What happened to the design?</h3><p>To know more about why styles are disabled on this website visit the<a href="http://naked.dustindiaz.com" title="Web Standards Naked Day Host Website">Annual CSS Naked Day</a> website for more information.</p>

This option for those who feel a need to give their visitors a reference as to what's going on. This is not about getting traffic or making money. There are no ads on this site, nor will there ever be. This is about you, the people; getting naked.

如何參與

到這裡填表報名,報名後一個小時內,你的網站會在官方列表中出現。

到了4月9日,將你網站上的CSS移除,拋掉頁面設計。

你也可以在那天把以下HTML內容放置於網站頂部:

<h3>What happened to the design?</h3><p>To know more about why styles are disabled on this website visit the<a href="http://naked.dustindiaz.com" title="Web Standards Naked Day Host Website">Annual CSS Naked Day</a> website for more information.</p>

註:加上這些標註僅僅是為了向你網站的訪問者說明情況,並不是為了帶來流量或賺錢。CSS裸奔官方網站上沒有任何廣告,以後也不會放置廣告。

 

When is it again?

A few folks were curious about the date of CSS Naked Day. Here's a few reasons why it's on April 9th this year.

  • The date should always be on a Tuesday, Wednesday, or Thursday (most highly trafficked days)
  • It should be near the first week of April
  • It should never be on April 1st (international prank day)
  • There should be at least five days ahead of time before the announcement
活動日期

很多人非常關心CSS裸奔節的啟用時間。今年定於4月9日,理由如下:

  • 活動日期應該定於周二、周三或周四,這幾天網站流量比較高
  • 時間應該在4月份的第一周前後
  • 不應該是4月1日(要不誰信呢,呵呵)
  • 在活動通告發出至活動日期,至少有五天時間

 

Don't think, just strip

Here is a sample PHP function for you

如何裸奔

下面這個PHP函數可以用來裸奔:


<?phpfunction is_naked_day($d) {$start = date('U', mktime(-12, 0, 0, 04, $d, date('Y')));$end = date('U', mktime(36, 0, 0, 04, $d, date('Y')));$z = date('Z') * -1;$now = time() + $z;if ( $now >= $start && $now <= $end ) {return true;}return false;}?>

Use it like this

可以這樣使用該函數:<head>...<?phpif ( is_naked_day(9) ) {echo '<!-- naked day has no styles -->';} else {echo '<link rel="stylesheet" type="text/css" href="styles.css" />';}?>...</head>
Tools & Plugins

Attention Plugin Developers. Most of last years plugins are out of sync on the date of Naked Day. Take note of the changes to the function above whereby it takes in a argument representing the day of the month. If you have a Naked Day plugin for a popular CMS, please email me at dustin [@] dustindiaz dot com

  • Jim Auldridge has created a nice PHP Naked Day Timer Class that has fun methods that can determine if Naked Day is coming soon, if it's over, is it now, how long until.... Thanks Jim. Very fun. Check out the API doc as well.
  • Aja's updated most excellent WordPress Naked Day Plugin
  • Tore Darell has provided a simple Rails Helper to go naked for 48 hours
  • Josh Stodola has created an ASP.net Naked Day Class
  • Reto has created a Naked Day plugin for the LifeType Blogging platform
  • Tante shows us how to implement a snippet for Serendipity
  • Paul Anthony has a classic ASP snippet of code
  • And if all else fails, Marat threw together a nakedDay.js
工具、外掛程式
  • PHP Naked Day Timer Class (作者Jim Auldridge)
  • WordPress Naked Day Plugin (作者Aja’s)
  • Rails Helper (作者Tore Darell)
Famous Words

This is a fun idea, fully in line with the reasons for creating CSS in the first place. While most designers are attracted by the extra presentational capabilities, saving HTML from becoming a presentational language was probably a more important motivation for most people who participated in the beginning.

Håkon Wium Lie

著名的言論

 這是一個很好的主意,完全符合CSS在首次出現的原因。當大多數設計者已經將注意力傾向於被額外的(網頁元素)引起直觀的能力的同時,但大多數初學者可能還是以節約HTML作為表象語言是一個更重要的原因。

Drop some love to those who will go nude

Still growing...

(以下為評論和參加此次活動的網站名單,當然參加活動的網站全都要主動的脫光光,大家可以到原始串連裡看到不斷增長的名單。)

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.