webosアプリケーションに画像を追加し、クリックイベントを追加したい。また、アプリケーションに背景画像を入れることができません。このコードを入れて、Basic.cssファイルに背景画像を設定します
body.palm-default {
background: url('../images/comman_bg.png') top left no-repeat;
z-index: -1;
position: fixed;
top: 0px;
left: 0px;
width: 320px;
height: 480px;
}
/* "splash" below is the scene name. Replace it with your scene name to get it to have a custom background */
#mojo-scene-splash-scene-scroller {
background: url('../images/splash-screenshot-default.png') top left no-repeat;
}
誰かが画像を設定するためのコードを持っていて、画像のイベントをクリックしてから返信する場合。