OUI

The Wireless FAQ

7.21 How is the WML Extension localsrc attribute used?

The Openwave extended DTD allows for <img> elements to be nested within <option> and <do> elements. This instructs the browser to display the image within the menu item or action (soft key) label, respectively.

Note that UP.Browser also supports the localsrc attribute, which allows developers to display any of a number of built-in browser icon images.

Example:

  <card>
    <do type="accept">
      <go href="#c2"/>
      <img localsrc="righthand" alt="next" src=""/>
    </do>
    <p>
      Icon menu
      <select>
        <option>
          <img localsrc="house" alt="" src=""/> Home
        </option>
        <option>
          <img localsrc="videocam" alt="" src=""/> Video
        </option>
      </select>
    </p>
  </card>
[ Main ]   [ 07 - Making it look fancy ]