Commit be0f5959 authored by Cyril Mathé's avatar Cyril Mathé Committed by Jean-Baptiste Kempf

Mozilla & ActiveX: Update test.html

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3c4c5eb3
...@@ -210,6 +210,24 @@ Insert Slider widget ...@@ -210,6 +210,24 @@ Insert Slider widget
</TD> </TD>
</TR> </TR>
<TR> <TR>
<TD>Marquee:
<INPUT type=button value="Enable" onClick='getVLC("vlc").video.marquee.enable();'>
<INPUT type=button value="Disable" onClick='getVLC("vlc").video.marquee.disable();'>
<INPUT size=4 value="" id="marqueeIntValue">
<SELECT readonly onClick="doMarqueeOption(this.value,document.getElementById('marqueeIntValue').value);">
<OPTION value=1>Color</OPTION>
<OPTION value=2>Opacity</OPTION>
<OPTION value=3>Position</OPTION>
<OPTION value=4>Refresh</OPTION>
<OPTION value=5>Size</OPTION>
<OPTION value=6>Text</OPTION>
<OPTION value=7>Timeout</OPTION>
<OPTION value=8>X</OPTION>
<OPTION value=9>Y</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD> <TD>
<INPUT type=button id="telx" value="Teletext off" onClick='doToggleTeletext();'> <INPUT type=button id="telx" value="Teletext off" onClick='doToggleTeletext();'>
Teletext page: Teletext page:
...@@ -719,6 +737,33 @@ function onInputTrackerChange(inputTracker, value, pos) ...@@ -719,6 +737,33 @@ function onInputTrackerChange(inputTracker, value, pos)
} }
} }
function doMarqueeOption(option, value)
{
var vlc = getVLC("vlc");
val = parseInt(value);
if( vlc )
{
if (option == 1)
vlc.video.marquee.color(val);
if (option == 2)
vlc.video.marquee.opacity(val);
if (option == 3)
vlc.video.marquee.position(val);
if (option == 4)
vlc.video.marquee.refresh(val);
if (option == 5)
vlc.video.marquee.size(val);
if (option == 6)
vlc.video.marquee.text(value);
if (option == 7)
vlc.video.marquee.timeout(val);
if (option == 8)
vlc.video.marquee.x(val);
if (option == 9)
vlc.video.marquee.y(val);
}
}
//--> //-->
</SCRIPT> </SCRIPT>
</BODY> </BODY>
......
...@@ -210,6 +210,24 @@ Insert Slider widget ...@@ -210,6 +210,24 @@ Insert Slider widget
</TD> </TD>
</TR> </TR>
<TR> <TR>
<TD>Marquee:
<INPUT type=button value="Enable" onClick='getVLC("vlc").video.marquee.enable();'>
<INPUT type=button value="Disable" onClick='getVLC("vlc").video.marquee.disable();'>
<INPUT size=4 value="" id="marqueeIntValue">
<SELECT readonly onClick="doMarqueeOption(this.value,document.getElementById('marqueeIntValue').value);">
<OPTION value=1>Color</OPTION>
<OPTION value=2>Opacity</OPTION>
<OPTION value=3>Position</OPTION>
<OPTION value=4>Refresh</OPTION>
<OPTION value=5>Size</OPTION>
<OPTION value=6>Text</OPTION>
<OPTION value=7>Timeout</OPTION>
<OPTION value=8>X</OPTION>
<OPTION value=9>Y</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD> <TD>
<INPUT type=button id="telx" value="Teletext off" onClick='doToggleTeletext();'> <INPUT type=button id="telx" value="Teletext off" onClick='doToggleTeletext();'>
Teletext page: Teletext page:
...@@ -719,6 +737,33 @@ function onInputTrackerChange(inputTracker, value, pos) ...@@ -719,6 +737,33 @@ function onInputTrackerChange(inputTracker, value, pos)
} }
} }
function doMarqueeOption(option, value)
{
var vlc = getVLC("vlc");
val = parseInt(value);
if( vlc )
{
if (option == 1)
vlc.video.marquee.color(val);
if (option == 2)
vlc.video.marquee.opacity(val);
if (option == 3)
vlc.video.marquee.position(val);
if (option == 4)
vlc.video.marquee.refresh(val);
if (option == 5)
vlc.video.marquee.size(val);
if (option == 6)
vlc.video.marquee.text(value);
if (option == 7)
vlc.video.marquee.timeout(val);
if (option == 8)
vlc.video.marquee.x(val);
if (option == 9)
vlc.video.marquee.y(val);
}
}
//--> //-->
</SCRIPT> </SCRIPT>
</BODY> </BODY>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment