Add a menu with tag

2 posters

Go down

Add a menu with tag Empty Add a menu with tag

Post by LucianoMicle April 28th 2021, 5:43 am

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.

Spoiler:
Add a menu with tag Cats21

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()
});
LucianoMicle
LucianoMicle
Forumember

Posts : 25
Reputation : 1
Language : Spanish / English

View user profile http://lucianomicle.foroactivo.com/

Back to top Go down

Add a menu with tag Empty Re: Add a menu with tag

Post by skouliki April 28th 2021, 8:56 am


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.
Please read our forum rules: ESF General Rules

https://asistencia.foroactivo.com/t155644-agregar-un-menu-con-las-etiquetas#914104

Topic locked

Topic moved to the garbage.
Please read our forum rules: ESF General Rules
skouliki
skouliki
Manager
Manager

Female Posts : 11450
Reputation : 1431
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum