04.02.2013 Views

Spry User Guide - Support - Adobe

Spry User Guide - Support - Adobe

Spry User Guide - Support - Adobe

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<br />

<br />

<br />

Behavior Attributes Example<br />

<br />

.myHoverClass { background-color: yellow; }<br />

<br />

<br />

<br />

var dsEmployees = new <strong>Spry</strong>.Data.XMLDataSet("../../data/employees-01.xml",<br />

"/employees/employee");<br />

<br />

<br />

<br />

<br />

<br />

{username}<br />

<br />

<br />

<br />

<br />

In the preceding example, whenever the mouse enters an li element, the "myHoverClass" class name is added to<br />

the element’s class attribute. It is automatically removed when the mouse exits the element.<br />

spry:select<br />

The spry:select attribute places a class name on an element when the mouse clicks the element.<br />

The value for the spry:select attribute is the name of the class to put on the element whenever the mouse clicks<br />

the element.<br />

SPRY<br />

<strong>User</strong> <strong>Guide</strong><br />

138

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!