javascript - How to change cursor style when hovering the Google Plus One button -


I want to change the cursor style when users press the Google "+1" button. I tried to use the div tag and tried to add the style attribute, but it is not working.

  & lt; Div class = "g-plosone" data-size = "tall" style = "cursor: wait" & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; (Function () {var po = document.createElement ('script'); po.type = 'text / javascript'; po.async = true; po.src = 'https://apis.google.com/js/ Plusone.js'; var s = document.getElementsByTagName ('script') [0]; s.parentNode.insertBefore (po, s);}); & Lt; / Script & gt;   

I think we have to add something in their JS code.

+1 has a button with these sections: class = "esw eswd" , and when hovered, this: class = "esw eswd eswh" You can get this element with jQuery and control it: For example:

  // with jQuery: $ ("button.esw.eswd"). Each (function () {$ (this) .hover (function () {// Your mouseover code is here: $ (this). AddClass ("some-square");}, function () {// Your mouseout code Here is: $ (this) .removeClass ("some -counter");});}); /////////////// // with CSS: button.esw.eswd {// mouseout style here} button.Save.Sewi.ESHH {// Mouseover style here cursor: wait Do; }    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -