return page history
α-wwwiki
::
history/styles/20130612-174012.txt
editor : alpha [82.253.168.130] 2013/06/12 17:40:12 _h1 styles _h3 with input button {input {@ type="submit" value="include someCSS" onclick="°° var str = '#red {color:red; font:bold 2em arial;}' + '#green {color:green; font:italic 3em times;}' + '#blue {color:blue; font:italic 4em courier;}'; var css = document.createElement('style'); css.innerHTML = str; document.head.appendChild( css ); this.value = 'OK, someCSS is included !'; this.disabled='disabled'; °°"}} {div {@ id="red"}Suis-je rouge ?} {div {@ id="green"}Suis-je vert ?} {div {@ id="blue"}Suis-je bleu ?} _h3 with defun °°° 1) define a function style °°° {div {@ style="display:none;"} {defun style (:type) °° div {@ style="text-decoration::type;"}°° } } °°° 2) use it °°° {{style overline} This is an overline} {{style line-through} This is a line-through} {{style underline} This is an underline} {{style blink} This is a blink} _p Have a look at the code in the editor !