# Change border color from mouse entered/exit script

**URL:** <https://forum.inductiveautomation.com/t/change-border-color-from-mouse-entered-exit-script/57924>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [April 1, 2022, 12:24pm UTC](https://forum.inductiveautomation.com/t/change-border-color-from-mouse-entered-exit-script/57924 "2022-04-01T12:24:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urvish\_Mehta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/urvish_mehta/32/81912_2.png) [@Urvish\_Mehta](https://forum.inductiveautomation.com/u/Urvish_Mehta)\
**Post date:** [April 1, 2022, 12:24pm UTC](https://forum.inductiveautomation.com/t/change-border-color-from-mouse-entered-exit-script/57924/1 "2022-04-01T12:24:30Z")

</div>

Hello Everyone,  
I am trying to show that a container is clickable and to do so,I am thinking to change the border color when mouse enters there and goes back to normal when mouse exit. How do I do this? I found something about “toBorder” but that one is for binding. I tried same with scripting but did not work. Let me know how I can achieve this or even if you have better idea to show that container is clickable.

Thank you

---

<div class="post-metadata">

**Author:** ![leonardo.godoi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/leonardo.godoi/32/27178_2.png) [@leonardo.godoi](https://forum.inductiveautomation.com/u/leonardo.godoi)\
**Post date:** [April 1, 2022, 12:35pm UTC](https://forum.inductiveautomation.com/t/change-border-color-from-mouse-entered-exit-script/57924/2 "2022-04-01T12:35:16Z")

</div>

Not elegant but it should work:

1. Add a custom property to your container, i’ll call it “status” and set it to 0

2. Add one mouse entered script to change “status” to 1

3. Add one mouse exit script to change “status” back to 0

4. Use a style driven by your custom property “Status” to change the border

---

<div class="post-metadata">

**Author:** ![Urvish\_Mehta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/urvish_mehta/32/81912_2.png) [@Urvish\_Mehta](https://forum.inductiveautomation.com/u/Urvish_Mehta)\
**Post date:** [April 1, 2022, 12:40pm UTC](https://forum.inductiveautomation.com/t/change-border-color-from-mouse-entered-exit-script/57924/3 "2022-04-01T12:40:44Z")

</div>

Yes, It works. Learning small tricks. Thank you.
