Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

433
Visualizações
how to solve it so that when you click the button the box will hover like loading?

Previously, I have added hover and transition styles to the box. Well, then I thought of trying to add a button which when clicked would be the same as on hover without hovering the pointer over the box.

enter image description here

about 4 years ago · Santiago Gelvez
1 Respostas
Responde à pergunta

0

Since there are no examples of your code, I will just give basic example.

You will need to create a function, something like this

 var element = document.getElementById("IdOfYourElement").style.color;
 function changeColor(){
  element = "blue"; // example 
 } 

And then, just call the function on your button, by adding

 onClick = "changeColor()" 
about 4 years ago · Santiago Gelvez Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda