我正在尝试让重复按钮的代码工作。洗牌是有效的,但重复没有。任何帮助都会很棒!该按钮是主背景的一部分。 .wms文件如下。我正在为我的图片使用.png文件。不太确定我应该在这里添加什么。
<THEME>
<VIEW
clippingColor = "#780E85"
backgroundImage = "wmpSkin2.png"
titleBar = "False"
width="925"
height="502"
backgroundColor="none"
transparencycolor="#780E85"
scriptFile="skin.js"
onLoad="OnOpenStateChange();">
<player PlayState_onchage="OnOpenStateChange();"
OpenState_onchange="OnOpenStateChange();"
modeChange="OnOpenStateChange();"
>
</player>
<BUTTONGROUP
mappingImage = "wmpSkinMapping.png"
hoverImage = "wmpSkinHover2.png">
<!-- Control buttons -->
<PLAYELEMENT mappingColor = "#000080"
upToolTip = "Play" />
<PAUSEELEMENT mappingColor = "#0000FF"
upToolTip = "Pause" />
<STOPELEMENT mappingColor = "#FFFF00"
upToolTip = "Stop" />
<BUTTONELEMENT mappingColor = "#FF00FF"
upToolTip = "Next"
onClick="jscript:player.controls.next()"
cursor="system"
enable="wmpenabled.player.controls.next" />
<BUTTONELEMENT mappingColor = "#00FF00"
upToolTip = "Previous"
onClick="jscript:player.controls.previous()"
cursor="system"
enable="wmpenabled.player.controls.next" />
<!-- Minimize, Full Mode, Exit Buttons -->
<BUTTONELEMENT mappingColor = "#808000"
upToolTip = "Minimize"
onClick="view.minimize();" />
<BUTTONELEMENT mappingColor = "#FFA500"
upToolTip = "Return to Full Mode"
onClick="view.returnToMediaCenter();" />
<BUTTONELEMENT mappingColor = "#008000"
upToolTip = "Close"
onClick="JScript: view.close();" />
<!-- Shuffle and Repeat -->
<BUTTONELEMENT id="btnShuffle"
mappingColor="#008080"
upToolTip="Turn Shuffle On"
downToolTip="Turn Shuffle Off"
onClick="player.settings.setMode('shuffle',down);"
down="wmpprop:player.settings.getMode('shuffle')"
sticky="true"
>
</BUTTONELEMENT>
<BUTTONELEMENT id="btnRepeat"
mappingColor="#800080"
onclick="jscript:player.settings.setMode('loop',down);"
upTooltip="Enable Repeat"
downTooltip="Disable Repeat"
down="wmpprop:player.settings.getMode('loop')"
sticky="true">
</BUTTONELEMENT>
</BUTTONGROUP>
<seekSlider zindex="2"
left="230" top="141"
backgroundImage="sleekbar.png"
thumbImage="sleekbtn.png"
thumbHoverImage="sleekbtnHover.png"
transparencyColor="#780E85"
borderSize="5"
useForegroundProgress="false"
>
</seekSlider>
<text id="metadata"
left="240"
top="169"
width="275"
fontSize="6"
fontSmoothing="true"
fontFace="Arial"
foregroundColor="#003EAA"
scrollingDelay="50"
scrollingAmount="1"
justification="Center"
scrolling="true"
toolTip=""
passThrough="true"
fontStyle="normal">
</text>
<text id="metadata2"
left="240"
top="169"
width="275"
fontSize="6"
fontSmoothing="true"
fontFace="Arial"
foregroundColor="#003EAA"
scrollingDelay="50"
scrollingAmount="1"
justification="Center"
scrolling="true"
toolTip=""
passThrough="true"
fontStyle="normal">
</text>
</VIEW>
</THEME>