vForums Support > Programming & Coding :: Code Requests & Support :: > Text menu splitter text
Text menu splitter text - Posted By [.tR] ookie1 (ookie1) on 30th Aug 08 at 4:58am
With the text menus, is it possible to have a splliter, like a - ?
Re: Text menu splitter text - Posted By [.tR] ookie1 (ookie1) on 10th Sep 08 at 6:53am
Bump!
Re: Text menu splitter text - Posted By [.tR] ookie1 (ookie1) on 12th Sep 08 at 10:55pm
Bumpsies XD
Re: Text menu splitter text - Posted By Ross (admin) on 14th Sep 08 at 9:48pm
Are we talking about the buttons like "reply print notify" and "new thread new poll search"?
Re: Text menu splitter text - Posted By [.tR] ookie1 (ookie1) on 16th Sep 08 at 8:46am
Yeah.... that's them.
Re: Text menu splitter text - Posted By [.tR] ookie1 (ookie1) on 18th Sep 08 at 10:05am
Bumpises!
Re: Text menu splitter text - Posted By Marc (cr0w) on 18th Sep 08 at 9:18pm
I've got work shortly, but I'll probably get to this when I get home depending on how tired I am. If not tonight, tomorrow after school.
Re: Text menu splitter text - Posted By [.tR] ookie1 (ookie1) on 19th Sep 08 at 10:38am
Thanksies!
Re: Text menu splitter text - Posted By [.tR] ookie1 (ookie1) on 22nd Sep 08 at 10:19am
Bumpsies!
Re: Text menu splitter text - Posted By [.tR] ookie1 (ookie1) on 24th Sep 08 at 8:21am
Bump!
Re: Text menu splitter text - Posted By Ross (admin) on 24th Sep 08 at 9:40am
Give this a go in the global footer
<script type="text/javascript">
<!--
var img = get('img', TAG);
for(i=0; i<img.length; i++) {
if(img.item(i).alt.match(/(Reply|Printable View|Notif|New (Topic|Poll)|Search Board)/)) {
if(img.item(i).parentNode.nodeName.toLowerCase() == 'a' && img.item(i).parentNode.nextSibling) {
var splitter = document.createTextNode(' - ');
img.item(i).parentNode.parentNode.insertBefore(splitter, img.item(i).parentNode.nextSibling);
}
}
}
-->
</script>
Re: Text menu splitter text - Posted By [.tR] ookie1 (ookie1) on 25th Sep 08 at 1:56am
Nope, doesn't work.
Re: Text menu splitter text - Posted By [.tR] ookie1 (ookie1) on 26th Sep 08 at 11:08am
Bumpety!
Re: Text menu splitter text - Posted By Ross (admin) on 26th Sep 08 at 12:15pm
I guess "text menu" in the subject was supposed to be a give away that you're using text menus
<script type="text/javascript">
<!--
var td = get('td', TAG);
for(i=0; i<td.length; i++) {
if(td.item(i).className == 'title1') {
var a = get('a', TAG, td.item(i));
for(n=0; n<a.length; n++) {
if(a.item(n).innerHTML.match(/(Reply|Printable View|Notif|New (Topic|Poll)|Search Board)/) && a.item(n).nextSibling) {
var splitter = document.createTextNode(' - ');
a.item(n).parentNode.insertBefore(splitter, a.item(n).nextSibling);
}
}
}
}
-->
</script>
Re: Text menu splitter text - Posted By [.tR] ookie1 (ookie1) on 26th Sep 08 at 9:35pm
Thank you very much!