I'm using this hack for a very long time!
Is it posible to change attributes ID with CLASSES?
I saw that the code above its calling an ID, I would like to switch to "class" in order to:
Code:
<span id="forumtitle_ajax_$forum[forumid]">$forum[title]</span>
can be:
Code:
<span class="forumtitle_ajax_$forum[forumid]">$forum[title]</span>
I'd had a look inside the javascript and observed this:
Code:
if (spans[s].id && spans[s].id.substr(0, 16) == 'forumtitle_ajax_')
{
this.spans[spans[s].id.replace('forumtitle_ajax_', '')] = spans[s];
this.seek_parent(spans[s], 'td').ondblclick = vB_AJAX_Forumlist.forum_doubleclick;
}
How can I change from .id to .class?? Is it posible? I'm not a javascript expert so I dont know much about it.
Any help, will be appreciated.
Thanks.