How to call the jquery plug-in twice on the same page so that it is not affected?

the length of the first one is relatively long, and the later border is all affected. How to solve it?

The

code is on codepen. ~
Thank you
https://codepen.io/lowbattery.

.
Oct.09,2021

32 lines are changed to:

  

did you write this plug-in? Is $active a global variable?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c2d2-2c2d5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c2d2-2c2d5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?