image.html revision f8a4451ab76c7cf265accab801c3514e64ed2742
326N/A<!DOCTYPE html>
326N/A<html>
1276N/A <head>
326N/A <script src='/build/yui/yui-min.js'></script>
1549N/A
326N/A <script>
326N/A YUI({
919N/A base: '/build/',
919N/A debug: true,
919N/A combo: false,
919N/A filter: 'raw'
919N/A }).use('button', function(Y){
919N/A new Y.Button({
919N/A srcNode: '#image-button',
919N/A type: 'toggle'
919N/A })
919N/A });
919N/A </script>
919N/A
919N/A <style>
919N/A .yui3-button{
919N/A padding:20px;
919N/A }
919N/A
326N/A .yui3-button-selected {
326N/A background-color:#F2F194;
326N/A color:white;
326N/A }
493N/A </style>
326N/A </head>
970N/A
970N/A <body>
970N/A
970N/A <h1>Button Example: Image</h1>
326N/A
1549N/A <input type='image' id='image-button' value='asd' src="http://yuilibrary.com/img/yui-logo.png"></input>
326N/A
911N/A </body>
1549N/A</html>