Rich-text Reply

Editing button color when hover

santiagocura 06-06-16

Editing button color when hover

Hi guys, is there an easy way to edit the color of a button when hovering? Thanks! 

CouchPsycho 06-06-16
 

Re: Editing button color when hover

Easiest way is to put it in the editor window. Let's assume you button has the class "myGreatButton" and the background color shall be #ffcc00 on hover:

 

 

jQuery(".myGreatButton").hover(
   function()
   {
      jQuery(this).css("background-color","#ffcc00")
   }
);

 




"the essence of the creative act is to see the familiar as strange." (anonymous)