JavaScript ã§ä½ããã¦ããããã¼ã¸ã®ä½¿ããããã®åä¸ã ç®çã¨ããæ©è½ãæã¤ã¹ã¯ãªããã§ãã ãããããã¼ã¸ã«é©ç¨ã§ããããã«è¨è¨ãã¦ãããHTML/4.01 (text/html) ã§ã¯å¿è«ã®äºãXHTML/1.1 (application/xhtml+xml) ã§ãåä½ãã¾ãã ã¾ããMozilla Firefox/1.5.x ã§ã®å³æ ¼ãªæ§æãã§ãã¯ãéãã¦ãã¾ãã
以å㯠Preferred Style Generator ã¨ããååã§é å¸ãã¦ãã¾ããã
ç°¡åãªè¨å®ãè¡ãã ãã§ã次ã®ãããªæ©è½ã使ãäºãã§ãã¾ãã
ã¹ã¿ã¤ã«ã·ã¼ããç°¡åã«åãæ¿ããããæ©è½ãã¦ã¼ã¶ã¼ã«æä¾ãã¾ãã ã¯ããã¼ã使ã£ã¦ã¹ã¿ã¤ã«ã·ã¼ãã®è¨å®ããã©ã¦ã¶ã«è¨æ¶ããã ãã¼ã¸ã移åãã¦ã表示ã¹ã¿ã¤ã«ãç¶æãã¾ãã XHTML ã«æ¸ããã xml-stylesheet å¦çå½ä»¤ã§ã ãã©ã¦ã¶ãèªèã§ãã¦ããã°åãæ¿ãããã¾ãã
以åããã®æ©è½ã ããããªããã®ãç¨æãã¦ãã¾ãããã ä¿å®æ§ãè½ã¡ãçºããã¾ããã ãã¡ã¤ã«ãµã¤ãºã«é¢ãã¦ãããã©ã¦ã¶ã®ãã£ãã·ã¥ãåãçºãåé¡ã«ãªããªãã§ãããã
Presto ã¨ã³ã¸ã³ã使ç¨ãããã©ã¦ã¶ (主㫠Opera 7.00 以é) ã§ã¯ãXHTML ã§ã®ä½¿ç¨ã«ããã¦æ³¨æãå¿ è¦ã§ãã
HTML 4.01 Strict ã XHTML 1.1 ã«æºæ ããã¾ã¾ã§ãã¦ã¼ã¶ã¼ããµã¤ãå¤ã¸ã®ãªã³ã¯ã æ°ããã¦ã£ã³ãã¦ã§éããããã«è¨å®ãã¾ãã ã¯ããã¼ã§è¨å®ãè¨æ¶ããããã¼ã¸ã移åãã¦ãç¶æ ãç¶æãã¾ãã ããã©ã«ãã§æå¹ã«ãããã©ããã®è¨å®ãè¡ãã¾ãã
誤ã£ãæä½ã§ãã©ã¼ã æ å ±ãéä¿¡ããããªã»ãããã¦ãã¾ãäºãé²ãã¾ããç¹å®ã® form è¦ç´ ã® class å±æ§ã« WO-noConfirm ã¨ããååãä»å ããäºã§ãä¾å¤çã«ç¢ºèªãåããªããã©ã¼ã ãè¨å®ããäºãã§ãã¾ãã
WinIE ã§ã abbr è¦ç´ ã® title å±æ§ã ãã¼ã«ãããã§è¡¨ç¤ºããããªã©ãæ£å¸¸ãªèªèãã§ããããã«ãã¾ãã acronym è¦ç´ ã«ç½®æããããã§ã¯ããã¾ãããè¦ç´ åã¯ãã®ã¾ã¾ã§ãã
blockquote è¦ç´ ã« cite å±æ§ãããå ´åããããå ã«ãã¦ãªã³ã¯ãèªåçæãã¾ãã
ãã®æçæããã div è¦ç´ ã«ã¯ blockquotesource ã¨ããã¯ã©ã¹åãä»ãããã¾ããå¾ã£ã¦ãå¿ è¦ãªãã° CSS ã§è¡¨ç¤ºãå¶å¾¡ããçºã«æ´»ç¨ãããã¨ãã§ãã¾ãã
å ¨ã¦ã®æ©è½ãç¬ç«ãã¦ããã®ã§ãå ¨ã¦ã®æ©è½ã使ãäºã¯ãã¡ããã ãã¼ã¸å èªå·±ãªã³ã¯ã®æé¤æ©è½ã ãã使ã£ããããäºãåºæ¥ã¾ãã
次ã®ãããªæé ã§ãç°¡åã«è¨ç½®ããäºãåºæ¥ã¾ãã
<head> <meta http-equiv="Content-Type" content="text/html; charset=EUC-JP"> <title>ãã¼ã¸ã¿ã¤ãã«</title> <link rel="stylesheet" title="Simple" href="style/simple.css" type="text/css"> <link rel="alternate stylesheet" title="Flat" href="style/flat.css" type="text/css"> <script type="text/javascript" src="webopt.js" charset="UTF-8"></script> </head>
ä¸è¨ã®ãµã³ãã«ã® charset ( EUC-JP 㨠UTF-8 ) ã¯ããããé©åã«èªã¿æ¿ãã¦ä¸ããã
ã¹ã¯ãªããã®å é ã®æ¹ã«è¨å®é ç®ãããã¾ãã®ã§ãåä½ã確èªã§ããã è¨å®ãããã£ã¦ã好ããªããã«ã«ã¹ã¿ãã¤ãºãã¦ãã ããã ç´°ããæ å ±ã¯è©³ãã説æãåç §ãã¦ãã ããã
ææ°çã«ããããã¹ãåä½ç¶æ³ã§ããæ³å®åä½ãã©ã¦ã¶ã¯ Firefox/1.0 以ä¸, WinIE/6.0 以ä¸, Opera/7.53 以ä¸ã§ããã¾ã¨ããªãã©ã¦ã¶ãªãåãããã«ãã¦ãã¾ãããããã以å¤ã¯æ£å¸¸ã«åä½ãããããã¾ããä»æ§ã§ãã
ããã§ã"å®å ¨åä½"ã¯å ¨ã¦æ£å¸¸åä½ããäºãã"è¯å¥½åä½"㯠application/xhtml+xml ã§éä¿¡ããã XHTML ã«ãã㦠xml-stylesheet å¦çå½ä»¤ãæ£ããå¦çã§ããªãäºä»¥å¤ã¯æ£å¸¸åä½ããäºããããããæå³ãã¾ãã
å³ã¯ãªãã¯ããã¦ã¹é·æ¼ãã®ã¡ãã¥ã¼ã§ä¿åãã¦ãã ãããã³ããããã¨æåã³ã¼ããå¤ãã£ã¦ãã¾ãå ´åãããã¾ãã
以ä¸ã¯å¤ãååã§é å¸ãã¦ãããã®ã§ãobsolete ã§ããç¹å¥ãªäºæ ãããå ´åã«ã®ã¿ä½¿ç¨ãã¦ãã ããã
ã¹ã¿ã¤ã«ã·ã¼ãåãæ¿ãæ©è½ã使ã£ãæã«è¡¨ç¤ºãããé¨åã®æ§é ã¯ä¸è¨ã¨åãã§ãã
li/dd (id="WOSSS_PARENT") (UL/OL/DL ã®ããããã«è¿½å ãããã¨ããå ´åã«ã®ã¿è£å ) | +--div (id="WOSSS") | +--labelï¼ããè¨å®ã§ããã¹ãã空ãªããã®è¦ç´ ã¯ãªããªãã¾ãï¼ | +--select (id="WOSSSBOX") | +--option (class="enable"(æå¹æ) / "disable"(ç¡å¹æ)) +--option (åä¸) +--option...
div è¦ç´ ã® ID(WOSSS) ã使ã£ã¦ã¹ã¿ã¤ã«ã·ã¼ã㧠ãã®é¨åã®è¡¨ç¤ºä½ç½®ãä¸ã«å«ã¾ããåã ã®è¦ç´ ã¸ã®ç´°ãããã¶ã¤ã³æå®ãè¡ãã¾ãã
ã¾ãããªã³ã¯å ã¦ã£ã³ãã¦åãæ¿ãæ©è½ã使ã£ãæã«è¡¨ç¤ºãããé¨åã®æ§é ã¯ä¸è¨ã¨åãã§ãã
li/dd (id="WOSWITCH_PARENT") (UL/OL/DL ã®ããããã«è¿½å ãããã¨ããå ´åã«ã®ã¿è£å ) | +--div (id="WOSWITCH", class="enable"(æå¹æ) / "disable"(ç¡å¹æ)) | +--label | +--checkbox (id="WOSWITCHBOX")
div è¦ç´ ã® ID(WOSWITCH) ã使ã£ã¦ã¹ã¿ã¤ã«ã·ã¼ã㧠ãã®é¨åã®è¡¨ç¤ºä½ç½®ãä¸ã«å«ã¾ããåã ã®è¦ç´ ã¸ã®ç´°ãããã¶ã¤ã³æå®ãè¡ãã¾ãã
è¨å®ãã¨ã®åºåãµã³ãã«ãåç §ãã¦ãã ããã
ç¾å¨ã確èªããã¦ããåé¡ã§ãã
ãã®ã¹ã¯ãªããã®ä½æã«ãããã次ã®ãµã¤ãã®ã¹ã¯ãªãããåèã«ããã¦ããã ãã¾ããã ãã®å ´ãåãã¦æè¬ãããã¾ãã
ãã® JavaScript ã¯ä¿®æ£ BSD ã©ã¤ã»ã³ã¹ã§é å¸ãã¾ãã
å¤ãã®ã¦ã§ããµã¤ãã§ã¯ããã®ãããªè£å©æ©è½ã¯ãªãã®ã§ãã¦ã¼ã¶ããã¯ãã®æ©è½ãæ¢ããã¨ãã¾ãããããç®ç«ã¤æã«ãã©ã¼ã ãé ç½®ãã¾ãããã
ç¾å¨ ToDo ã¯ä½ãããã¾ããã
ä¸è¨ã«ããã¼ãç½®ãã¦ããã¾ããå¿ è¦ã«å¿ãã¦ã使ããã ãããç´ãªã³ã¯ã¯éæ¨å¥¨ã§ãã