19,670
edits
(adding sidebar modification code here so all can use it) |
(adding a separator option to ModifySidebar()) |
||
| Line 314: | Line 314: | ||
liNode.appendChild(aNode); | liNode.appendChild(aNode); | ||
liNode.className='plainlinks'; | liNode.className='plainlinks'; | ||
node.appendChild(liNode); | |||
} | |||
if (action == "sep") | |||
{ | |||
var node = document.getElementById(target) | |||
.getElementsByTagName('div')[0] | |||
.getElementsByTagName('ul')[0]; | |||
var liNode = document.createElement('li'); | |||
liNode.appendChild(document.createTextNode("-----")); | |||
liNode.setAttribute('background-color', '#b0c4de'); | |||
node.appendChild(liNode); | node.appendChild(liNode); | ||
} | } | ||