Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/08/2018, 07:42
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Utilizar variables en jQuery

Simplemente duplica la funcion de esta manera:

Código Javascript:
Ver original
  1. $('div#areas #programacion').mouseover(function(){
  2.             $('#contenidos li').not('.prog').css({"opacity":"0.2"});
  3.     })
  4.     .mouseout (function(){
  5.             $('#contenidos li').css({"opacity":"1"});
  6.     })
  7.     $('div#areas #sistemas').mouseover(function(){
  8.             $('#contenidos li').not('.sist').css({"opacity":"0.2"});
  9.     })
  10.     .mouseout (function(){
  11.             $('#contenidos li').css({"opacity":"1"});
  12.     })
  13.     $('div#areas #dweb').mouseover(function(){
  14.             $('#contenidos li').not('.web').css({"opacity":"0.2"});
  15.     })
  16.     .mouseout (function(){
  17.             $('#contenidos li').css({"opacity":"1"});
  18.     })
  19.     $('div#areas #software').mouseover(function(){
  20.             $('#contenidos li').not('.soft').css({"opacity":"0.2"});
  21.     })
  22.     .mouseout (function(){
  23.             $('#contenidos li').css({"opacity":"1"});
  24.     })

Ver Muestra
__________________
[email protected]
HITCEL