Ich habe diese Zeilen "komplett mit dem Skript am Ende" in deine notebook.xml abgelegt:
(Bei mir funktioniert es einwandfrei)
<div y="next" w="100%" h="38">
<img src="notebook-bg.png" w="100%" />
<box x="24" y="5" w="1" h="1" bgcolor="#ffffff" /> <!-- init position -->
<if cond="albumView">
<button x="next" y="same" src="notebook-left.png" srcindex="0" target="albumView" />
</if>
<if cond="coverView">
<button x="next" y="same" src="notebook-left.png" srcindex="1" target="coverView" />
</if>
<if cond="listView">
<button x="next" y="same" src="notebook-left.png" srcindex="2" target="listView" />
</if>
<!-- Achtung Hier ist der Button für den Geteilten Bildchirm -->
<button target="layout:new" x="next" y="same" src="playlist-button.png" srcindex="0" />
<img src="notebook-line.png" x="next+35" y="same" w="2" h="25" />
<!-- Achtung Hier ist der Button für lieblingslieder -->
<button x="next+45" y="same" src="favorit.png" srcindex="0" onclick="Favorites();"/-->
<button x="next+10" y="same" src="favorit.png" srcindex="1" onclick="Rated();"/-->
<button x="next" y="same" src="favorit.png" srcindex="2" onclick="Genre();"/-->
<img src="notebook-line.png" x="next+20" y="same" w="2" h="25" />
<if cond="startVis">
<button x="next+30" y="same" src="notebook-left.png" srcindex="3" target="startVis" />
</if>
</div>
<script>
function Favorites()
{
program.musicSel = "Favorites";
program.setDisplayMsg('Favorites selected', 1000);
}
function Rated()
{
program.musicSel = "Rated";
program.setDisplayMsg('Rated selected', 1000);
}
function Genre()
{
program.musicSel = "Genre";
program.setDisplayMsg('Genre selected', 1000);
}
</script>Statistics: Posted by Werner — 28. Jan 08, 20:36
]]>