OSDN Git Service

更新履歴追加
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / documentation / tips.html
index 4ed6ea0..87edea3 100755 (executable)
             font-style: italic;\r
         }\r
     </style>\r
+       <script type="text/javascript">\r
+               function fontSizeChange(size) {\r
+                       var elem = document.getElementsByTagName('body')[0];\r
+                       var flrg = document.getElementById('fontLarge');\r
+                       var fmdl = document.getElementById('fontMiddle');\r
+                       var fsml = document.getElementById('fontSmall');\r
+                       switch(size) {\r
+                               case 'l':\r
+                                       elem.style.fontSize = 'large';\r
+                                       flrg.style.fontWeight = 'bold';\r
+                                       fmdl.style.fontWeight = 'normal';\r
+                                       fsml.style.fontWeight = 'normal';\r
+                                       break;\r
+                               case 'm':\r
+                                       elem.style.fontSize = 'medium';\r
+                                       flrg.style.fontWeight = 'normal';\r
+                                       fmdl.style.fontWeight = 'bold';\r
+                                       fsml.style.fontWeight = 'normal';\r
+                                       break;\r
+                               case 's':\r
+                                       elem.style.fontSize = 'small';\r
+                                       flrg.style.fontWeight = 'normal';\r
+                                       fmdl.style.fontWeight = 'normal';\r
+                                       fsml.style.fontWeight = 'bold';\r
+                                       break;\r
+                       }\r
+                       \r
+               }\r
+       </script>\r
 </head>\r
 <body>\r
+<div id="fontSizeCanger">\r
+<a href="#top" onClick="fontSizeChange('s');return false;" id="fontSmall">小</a>\r
+<a href="#top" onClick="fontSizeChange('m');return false;" id="fontMiddle">中</a>\r
+<a href="#top" onClick="fontSizeChange('l');return false;" id="fontLarge">大</a>\r
+</div>\r
 \r
 <div class="heading">\r
 Tips &amp; Suggestions\r