Effect display:
Code Description:
The jquery special effect of the floating couplet ad code on the left and right sides can be turned off. It will only be displayed when the widescreen resolution is greater than 1024px. Because considering the display of couplet ads on a narrow screen, the user experience is really poor.
Click the close button to close the floating couplet ad code on your side individually.
var screen_w = screen.width; if(screen_w>1024){duilian.show();} in the js code is used by jquery to determine the browser resolution. You can modify the closeable floating couplet ads on the left and right sides. The browser resolution value required by the code. If you don’t want to make a judgment, you can delete these two sentences and add the css code.duilian{top:260px;position:absolute; width:102px; overflow:hidden; display:none;} display:none; deleting it will not judge the browser resolution.
Click below the floating couplet ad code on both sides to close the respective half of the couplet ad.
Part of the html code is as follows:
1 2 3 4 5 6 7 8 9 |
|
Part of the css code is as follows:
1 2 3 4 5 6 7 |
|
Some of the floating couplet ad codes on the left and right sides are as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
The code below is very simple to implement jquery couplet advertising code floating on both sides
Contents of this section:
Couplet advertising codes floating on both sides.
Example:
Couplet advertising code implemented by jquery
The sample code is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|