WebSite X5Help Center

 
John W.
John W.
User

Applying duplicate custom css html and javascript on a page  en

Автор: John W.
Просмотрено 63, Подписчики 1, Размещенный 0  

I have a custom script for a Before and after image slider.

I have added the CSS (Expert Tab), HTML and JavaScript (HTML Code Tab) in the HTML Code Object.

The slider works fine, but when I copy the HTML Code Object to create another slider on the same page the first one continues to work fine, but second one will not work. What would be the best way to get both working together on the same page? I guess there is a conflict between them when on the same page?

Размещено
1 Ответы
Daniel W.
Daniel W.
User
Лучший пользователь месяца DEЛучший пользователь месяца EN

Function names may need to be different in the code, such as image and image2, so that the functions do not mix.

If that doesn't solve the problem, then maybe post the code here so that the experts can look for the error.

Читать больше
Размещено От Daniel W.