Closed (fixed)
Project:
BUEditor
Version:
5.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2008 at 19:24 UTC
Updated:
2 Aug 2010 at 18:57 UTC
I have built a custom button that I am using to make long lists of items show up in a scrollable css div. I'd like to be able to alternate the background colors of these items via css.
What I have is:
js: eDefSelProcessLines('<div id="scrolling_items">\n', ' <span>', '</span>', '\n</div>');
Which transforms this:
Item 1
Item 2
Item 3
Into this:
<div id="scrolling_items">
<span>Item 1</span>
<span>Item 2</span>
<span>Item 3</span>
</div>
What I would like is output like this:
<div id="scrolling_items">
<span class="odd_row">Item 1</span>
<span class="even_row">Item 2</span>
<span class="odd_row">Item 3</span>
</div>
But everything I have tried isn't working... anyone have a suggestion?
Comments
Comment #1
ufku commentedTry this:
Unlike eDefSelProcessLines, this wont restore the lines on a second click.
Comment #2
ufku commented