return page history
α-wwwiki
::
history/styles/20130612-191046.txt
editor : alpha [82.248.147.227] 2013/06/12 19:10:46 _h1 styles _h3 with input button {pre {@ id="styles"}°° #red {color:red; font:bold 2em arial;} #green {color:green; font:italic 3em times;} #blue {color:blue; font:italic 4em courier;} °°} {input {@ type="submit" value="include someCSS" onclick="°° var css = document.createElement('style'); css.innerHTML = getId('styles').innerHTML; document.head.appendChild( css ); this.value = 'OK, someCSS is included !'; this.disabled='disabled'; °°"}} {div {@ id="red"}Am I red ?} {div {@ id="green"}Am I green ?} {div {@ id="blue"}Am I blue ?} _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 !