Current location - Plastic Surgery and Aesthetics Network - Wedding planning company - What should I do if I scroll the couplet code and close one and the other does not scroll?
What should I do if I scroll the couplet code and close one and the other does not scroll?
For your code, the easiest way to modify it is to set the.

If (closeB! =0){

collection[close b- 1]. object . style . display = ' none ';

Return;

}

This paragraph, moved to the end of the game, is,

follow obj . style . display =“”;

}

Behind, become

Function playback ()

{

if(screen . width & lt; =648 ) {

for(var I = 0; I < set. Length; i++) {

collection[I]. object . style . display = ' none ';

}

Return;

}

for(var I = 0; I < set. Length; i++) {

var followObj = collection[i]。 Object;

var follow obj _ x =(type of(collection[I])。 x)=='string '? Eval (set [i]). X): set [i]. x);

var follow obj _ y =(type of(collection[I].y)=='string '? Eval (set [i]). Y): Set [i]. y);

if(followObj.offsetLeft! =(document . body . scroll left+follow obj _ x)){

var dx =(document . body . scroll left+follow obj _ x-follow obj . offset left)* delta;

dx =(dx & gt; 0? 1:- 1)* math . ceil(math . ABS(dx));

follow obj . style . left = follow obj . offset left+dx;

}

if(followObj.offsetTop! =(document . body . scroll top+follow obj _ y)){

var dy =(document . body . scroll top+follow obj _ y-follow obj . offsettop)* delta;

dy =(dy & gt; 0? 1:- 1)* math . ceil(math . ABS(dy));

follow obj . style . top = follow obj . offsettop+dy;

}

follow obj . style . display =“”;

}

If (closeB! =0){

collection[close b- 1]. object . style . display = ' none ';

Return;

}

}

Function closeBanner(vNum)

{

closeB = vNum

Return;

}

var theFloaters = new floaters();