글꼴 크기, 본문 보호색 변경

1620 단어
 function setFontSize(size){
                  document.getElementById('tab_content').style.fontSize=size+'px'
                }
    
    function changeColor(color){
                  document.getElementById('tab_content').style.background=color
                }
  
                   <a href="javascript:setFontSize(12)">【 】</a>
                   <a href="javascript:setFontSize(14)">【 】</a>
                   <a href="javascript:setFontSize(16)">【 】</a>
   
       <a href="javascript:changeColor('#FAFBE6')"><img src="images/color1.gif"/></a>
       <a href="javascript:changeColor('#FFF2E2')"><img src="images/color2.gif"/></a>
       <a href="javascript:changeColor('#FDE6E0')"><img src="images/color3.gif"/></a>
       <a href="javascript:changeColor('#F3FFE1')"><img src="images/color4.gif"/></a>
       <a href="javascript:changeColor('#DAFAFE')"><img src="images/color5.gif"/></a>
       <a href="javascript:changeColor('#E9EBFE')"><img src="images/color6.gif"/></a>
       <a href="javascript:changeColor('#EAEAEF')"><img src="images/color7.gif"/></a>
       <a href="javascript:changeColor('#FFFFFF')"><img src="images/color8.gif"/></a>

좋은 웹페이지 즐겨찾기