Thanks for the suggestions, but they didn't work.
I removed the Html element, but when I created a new imagerotator it didn't fully loaded and was not displayed , I inspected the element and the div "id="wr360container_webrotateproduct" was created with the class "container container_zoomoff" and the rotator was not displayed.
The same happened using api.reload, the second one was not displayed and the class was "container container_zoomoff".
I called rotator.getAPI() and used the delete function, but it was not deleted before it's fully loaded.
Is there any way I can using api.delete() before it completes the loading?
When I try to use api.delete() before it finishes loading, the error is apply:
"Uncaught TypeError: Cannot read property 'qG' of null
at WR360.ImageRotator.mU (eval at <anonymous> (imagerotator.js:4), <anonymous>:1:102627)
at WR360.ImageRotator.delete (eval at <anonymous> (imagerotator.js:4), <anonymous>:1:75151)
at Object.success (catalog-script.js?v=xCIptQEx7Q4j-m1PvesWx_JHDjZWxApsKY0sGgPdeIU:170)
at c (vendors.min.js:2)
at Object.fireWith [as resolveWith] (vendors.min.js:2)
at l (vendors.min.js:2)
at XMLHttpRequest.<anonymous> (vendors.min.js:2)"
When I tried to reloaded, using the getAPI() before it finishes loading, I got this error:
"Uncaught TypeError: Cannot read property 'length' of null
at WR360.bN.qG (eval at <anonymous> (imagerotator.js:4), <anonymous>:1:56578)
at WR360.ImageRotator.mU (eval at <anonymous> (imagerotator.js:4), <anonymous>:1:102627)
at WR360.ImageRotator.reload (eval at <anonymous> (imagerotator.js:4), <anonymous>:1:74435)
at WR360.API.reload (eval at <anonymous> (imagerotator.js:4), <anonymous>:1:144675)
at Object.success (catalog-script.js?v=o12u9HvF31FMwEKabpsHAlWs8R4ITOqPSsi4uYCu14Q:154)
at c (vendors.min.js:2)
at Object.fireWith [as resolveWith] (vendors.min.js:2)
at l (vendors.min.js:2)
at XMLHttpRequest.<anonymous> (vendors.min.js:2)"
The page has buttons that when selected, the selected button's rotators should be displayed, so I need to close one and display another rotator.
Thanks again!