There are two places in the script where the rainbow effect is applied to anchor links, depending upon the browser being used. Two slightly different methods are used to determine if the object is an anchor link. The part you would want to alter is here (for one type browser):
Code:
if (obj.tagName == 'A' && obj.href != '') {
and here for the other type:
Code:
if (obj.nodeName == 'A' && obj.href != '') {
One way to go would be to also check for a class name to either include or exclude (here we exclude):
Code:
if (obj.tagName == 'A' && obj.href != '' && obj.className!='norainbow') {
and:
Code:
if (obj.nodeName == 'A' && obj.href != '' && obj.className!='norainbow') {
Now any link like so:
HTML Code:
<a class="norainbow" href="page.htm">Page</a>
won't be rainbow. If you do it like so (to include the class name as a requirement):
Code:
if (obj.tagName == 'A' && obj.href != '' && obj.className=='rainbow') {
and:
Code:
if (obj.nodeName == 'A' && obj.href != '' && obj.className=='rainbow') {
Then only links like so:
HTML Code:
<a class="rainbow" href="page.htm">Page</a>
will get the rainbow.
Bookmarks