# Changing background image of another object

**URL:** https://forum.kirupa.com/t/changing-background-image-of-another-object/145273
**Category:** Uncategorized
**Created:** [April 21, 2005, 8:42am UTC](https://forum.kirupa.com/t/changing-background-image-of-another-object/145273 "2005-04-21T08:42:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ShulChi](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@ShulChi](https://forum.kirupa.com/u/ShulChi)
#### Post date: [April 21, 2005, 8:42am UTC](https://forum.kirupa.com/t/changing-background-image-of-another-object/145273/1 "2005-04-21T08:42:52Z")

</div>

hey guys,  
i’m trying to change the the background image of a table using CSS classes and onMouseOver command.

i figured out how to change the image if i move the mouse on that image:

```auto
onMouseOver="this.className='table1_news'"

```

now i need to know ehat to write instead of this so that when i move the mouse over the button that it changes the classname of the table. Something like:

```auto
onMouseOver="Table1.className='table1_news'"

```

just that this one doesn’t work :fight: I got the ID of the table set to Table1. Do i need to do anything else?

help me please
