example7_default_attributes - create new tags with default attributes (such as <good_li> and <bad_li>)



show FuncyTag html string output

show Javascript source code

To Notice: You can create new tags, beyond standard html tags (e.g. <p>, <div>, <li>, etc...) by declaring attributes within their css descriptions. For instance, in this example <good_li> and a <bad_li> tags are created which act exactly like an html <li> tag exact that one is green and the other is red. Those two tags are created with this javascript:
good_li = funcyTag( 'li', {cssColor:'green'} )
bad_li = funcyTag( 'li', {cssColor:'red'} );

next: example8_behavior_modification top: all js examples