Update content when H5 slides left or right

1. There is a data content ["axiaxiajiaoyuzhong"] content is dynamic [more than 5]
when a screen displays only one element in the array and changes the content when it slides on the screen. How should I write this? If you use rotation, do you have any good ideas about whether there will be a performance impact when there is a lot of content in the array?

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-1bec282-31ac0.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-1bec282-31ac0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?