franky, You're right. If the example is used once, there really is no benefit to using the script over just using markup. However, if you're applying the corners to multiple elements, well, now you're talkin'. (The script could easily be modified to work by class name, multiple elements, etc...)
# of lines of script, one element: 12 # of lines of markup, one element: 4 # of lines of script, 10 elements: 12 # of lines of markup, 10 elements: 40 As for no javascript = no corners, the corners are superfluous anyway. It won't hurt the site's usability, which is a key factor in unobtrusive javascript use. On Dec 28, 2006, at 11:56 AM, francky wrote: > So this script is working as a method to put the <span>'s in the html, > with an alternative css way for getting some smaller corner images on > the right places (for painted borders some extra's are needed). > > * Comparing: the script is about 12 lines of code, and adding the > span's directly in the html is 4 lines of code. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/