Can't change background color with an Event

328 views
Skip to first unread message

aa...@reserbus.com

unread,
Oct 8, 2014, 3:53:51 PM10/8/14
to gwd...@googlegroups.com
I'm trying to change the background color of an element with Event, but doesn't work, I can change the other properties except the background color, why? Help.

Mariko Ogawa

unread,
Oct 10, 2014, 5:19:58 PM10/10/14
to gwd...@googlegroups.com
Hi,

Thanks for trying out GWD with events feature.

I am not quite sure how you are trying to change the background color of an element.
Are you using divs or other elements to change its background-color?

If using a div, and if I want to change the background-color by clicking the body for example,

I would do the following
- set div's ID name (yellow)
- Open the events dialog from Events panel(+ sign), set the event: document.body>Mouse:click>CSS:set styles>yellow
- Add background-color:red
- Save

When you preview this on a browser, clicking the body should change the div's background-color to red

If you think this is a bug, please send us your test file to gwd-s...@google.com 

Thanks,
Mariko Ogawa (GWD team)

Reply all
Reply to author
Forward
0 new messages