Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).find('.pccenter').mouseenter(function(){
- if (loading != true) {
- $(this).fadeTo(1000, 1);
- $(this).parent().children('.shinepc').fadeTo(2000, 0.4);
- }
- });
- var position ="";
- var shinepos = "";
- $('.pccenter').mouseover(function(){
- position = $(document).find('.pccenter').attr('id');
- shinepos = $(document).find('.shinepc').attr('id');
- console.log(shinepos);
- console.log(position);
- if (loading != true) {
- $('#' + position).fadeTo(1000, 1);
- $('#' + shinepos).fadeTo(2000, 0.4);
- }
- });
- $('.pccenter').mouseleave(function(){
- position = $(document).find('.pccenter').attr('id');
- shinepos = $(document).find('.shinepc').attr('id');
- if (loading != true) {
- $('#' + position).fadeTo(1000, 0.6);
- $('#' + shinepos).fadeTo(3000, 0.2);
- }
- });
- <div class="pcmidr" id="pcmidr"><div class="shinepcmidr" id="shinepcmidr"></div></div>
- <div class="pccenter" id="pccenter"><div class="shinepc" id="shinepc"></div></div>
- $(document).find('.pccenter').mouseleave(function(){
- if (loading != true) {
- $(this).fadeTo(1000, 0.6);
- $(this).parent().children('.shinepc').fadeTo(3000, 0.2);
- }
- });
- $(document).find('.pccenter').mouseover(function(){
- if (loading != true) {
- $(this).fadeTo(1000, 1);
- $(this).parent().children('.shinepc').fadeTo(2000, 0.4);
- }
- });
- $(document).find('.pccenter').mouseleave(function(){
- if (loading != true) {
- $(this).fadeTo(1000, 0.6);
- $(this).parent().children('.shinepc').fadeTo(3000, 0.2);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement