The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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:

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 : 61
Reputation : 2
Language : Spanish / English

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 : 15061
Reputation : 1690
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

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