Add a menu with tag
2 posters
Page 1 of 1
Add a menu with tag
Hello people
I want to edit the code that I am currently using, but now I want a menu to be added to the right that already contains the labels to use as the title.
I want to edit the code that I am currently using, but now I want a menu to be added to the right that already contains the labels to use as the title.
- Spoiler:
- Code:
var prefijos = {
init: function () {
var a = document.getElementsByTagName('a'),
len = a.length;
for (var i = 0; i < len; i++) {
var e = a[i].innerHTML;
if (/\[([^\[\]]+)\]/.test(e) && !/logout/.test(a[i].id)) {
var f = e.match(/\[(.*?)\]/)[1].toLowerCase().replace(/\W+/g, '-'),
g = e.match(/\[(.*?)\]/)[1].toLowerCase(),
k = e.replace(/\[.*?\]/, '<span class="prefijo ' + f + '">' + g + '</span>');
a[i].innerHTML = k;
e.match(/\[(.*?)\]/g).length > 0 ? prefijos.init() : '';
}
}
},
copyright: function () {
console.log('Por Chalo, para http://www.opensourcephpbb3.com');
},
};
$(function () {
prefijos.init()
});
Re: Add a menu with tag
hello
as we said before since your forum is in Spanish and you are already an active member there please contact the Spanish support forum for help also
Please do not open similar threads to multiple support forums.
|
https://asistencia.foroactivo.com/t155644-agregar-un-menu-con-las-etiquetas#914104
Topic locked
Topic moved to the garbage.
|
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum