---
title: Imagen por botón
slug: imagen-por-boton
description: Learn how to define a GIF image URL for a chat button with this handy code fragment. Discover how animated buttons can enhance your website's user experience. Place the provided JavaScript code before the button script for seamless integration. Check out 
docTags: 
createdAt: 2023-08-14T00:27:57.412Z
---

Este fragmento de código proporciona una forma de definir la URL de una imagen para el botón de chat. Es importante mencionar que la imagen puede estar en formato GIF, lo que permite tener botones animados.

Solo hay que colocar el siguiente código javascript antes del script del botón.

```javascript
window.AC_widget = {
  image_url: "https://1.bp.blogspot.com/-8O2oxCkkCJk/X8g4pcOT6zI/AAAAAAAAAPw/lXNr5aypEIgDobwa0B_31bZvhMGdwfE4wCLcBGAsYHQ/s1667/support.gif",
  image_max_width: "20%",
  image_max_height: "120px"
}
```

# Código de ejemplo

::codepen{url="https://codepen.io/asisteclick/embed/eYRXWod"}

