📄 z30-flash-0002.zul
字号:
<zk>
<window title="ZKTube - View Your Favorite Youtube Clips by ZK" style="width:600px" border="normal">
<zscript>
void reverseAutoPlay()
{
if(chk_auto.isChecked())
{
myYoutube.setAutoPlay(true);
}
else
{
myYoutube.setAutoPlay(false);
}
}
void reverseAutoLoop()
{
if(chk_loop.isChecked())
{
myYoutube.setLoop(true);
}
else
{
myYoutube.setLoop(false);
}
}
void zoom(Slider slider) {
int v = slider.getCurpos()/5;
myYoutube.setWidth(425+(v*3 + 10) + "px");
myYoutube.setHeight(350+(v*3 + 10) + "px");
}
void playClip()
{
myYoutube.setSrc("http://www.youtube.com/v/"+clipList.selectedItem.value);
}
</zscript>
<youtube onDrop="playClip(event.dragged)" src="http://www.youtube.com/v/t-L-0s-7-Z0" droppable="true" id="myYoutube" >
</youtube>
<separator bar="true"/>
<label value="scratch screen bigger:"></label>
<slider id="slider1" onScroll="zoom(slider1)" width="200px" mold="sphere"/>
<vbox>
<zscript>
String[] args = {"qGPp-WhgEXE","Bf5qZrFfQFg","B5mDCDAkOlQ"};
</zscript>
<checkbox id="chk_auto" onCheck="reverseAutoPlay()" label="Autoplay" />
<checkbox id="chk_loop" onCheck="reverseAutoLoop()" label="Loop(Single Clip)" />
<!-- <label forEach="${args}" draggable="truth" value="http://www.youtube.com/v/${each}" />-->
</vbox>
<separator bar="true"/>
<listbox onSelect="playClip()" id="clipList" >
<listitem label ="Mac Spoof: Upgrading" value ="t-L-0s-7-Z0" selected ="true" ></listitem>
<listitem label ="I'm Steve Jobs" value ="Bf5qZrFfQFg" ></listitem>
<listitem label ="WWDC Intro by PC Guy" value ="Uj-sQmyAn-U" ></listitem>
<listitem label ="Boeing 747 Transformer" value ="5kThJGtcVqU" ></listitem>
</listbox>
</window>
<window title="ZKFlash - Embed Your Flash into ZK" style="width:600px" border="normal">
<flash src="../SWF/cc.milestones.121503.swf" width="620" height="320" ></flash>
<label value="This Flash movie is licensed under a Creative Commons License."></label>
</window>
</zk>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -