User:Jultrun121/global.js

// Menú desplegable var menuChat = ' ¡Bienvenido al chat! ▼  PortadaWiki ActividadReglasCrear artículo Recargar chat</a></li></ul>' $(function {	$('#ChatHeader .public.wordmark').prepend('<div class="chattopic" style="text-align: center; position: absolute; margin: 0pt auto; width: 100%; font-size: 15px; color: black;">'+menuChat+' ')	.find('a').attr('style','position:relative;text-decoration:underline;') }) $('#ChatHeader .public.wordmark div:not(:first-child)').remove var menu = $("ul.dropdown"); $(this.document).ready(function{	menu.mouseover(function{ displayOptions($(this).find("li")); });	menu.mouseout(function{ hideOptions($(this)); }); }) function displayOptions(e){ e.show; } function hideOptions(e){ e.find("li").hide; e.find("li.active").show; } // Crear comando /me document.getElementsByName('message')[0].onkeypress = function(e) { if (e.which == 32) { if (this.value == '/me') { this.value = '* '+wgUserName; }	} }