In the flash used in the control page javascript mediaplay
Related Tags:
Function VolDn ()
(/ / By the Music
Var ps = Player.settings;
If (ps.mute == true) (ps.mute = false; return;)
Else (
If (ps.volume <= 30) (ps.volume = 0;)
Else (ps.volume = ps.volume - 30;)
)
)
Function VolUp ()
(/ / Silencers
Var ps = Player.settings;
If (ps.mute == true) (ps.mute = false; return;)
Else (
If (ps.volume> = (100-30)) (ps.volume = 100;)
Else (ps.volume ps.volume = 30;)
)
)
Function playerPlay () (
Player.URL = "mms: / / 202.95.107.151/pggame">
)
Function playerStop () (
If (Player.status! = "Ready")
Player.controls.stop ();
Else return;
Mediaplay code)
<= Player CLASSID OBJECT id = "CLSID: 6BF52A52-394A-11d3-B153-00C04F79FAA6" type = "application / x-oleobject" Standby = "Loading .... Microsoft Windows Media Player"
Width = "0" Height = "0" style = "position: absolute; left: 0px; top: 0px;">
<PARAM NAME="URL" value="mms://202.95.107.151/pggame">
<PARAM NAME="rate" value="1">
<PARAM NAME="balance" value="0">
<PARAM NAME="currentPosition" value="0">
<PARAM NAME="defaultFrame" value="">
<PARAM NAME="playCount" value="1">
<PARAM NAME="autoStart" value="1">
<PARAM NAME="currentMarker" value="0">
<PARAM NAME="invokeURLs" value="-1">
<PARAM NAME="baseURL" value="">
<PARAM NAME="volume" value="100">
<PARAM NAME="mute" value="0">
<PARAM NAME="uiMode" value="full">
<PARAM NAME="stretchToFit" value="0">
<PARAM NAME="windowlessVideo" value="0">
<PARAM NAME="enabled" value="-1">
<PARAM NAME="enableContextMenu" value="0">
<PARAM NAME="fullScreen" value="0">
<PARAM NAME="SAMIStyle" value="">
<PARAM NAME="SAMILang" value="">
<PARAM NAME="SAMIFilename" value="">
<PARAM NAME="captioningID" value="">
</ OBJECT> -------------------
html code above with control buttons are no problem. Flash with simple commands control.
If
B1.onRelease = function () (
GetURL ( "javascript: VolUp ()");
)
Bt2.onRelease = function () (
GetURL ( "javascript: VolDn ()");
B3.onRelease = function () (
GetURL ( "javascript: playerPlay ()");
)
Bt4.onRelease = function () (
GetURL ( "javascript: playerStop ()"); -------------
Players can stop and use, but by a pitch with silencers, the player is stopped. Fail to see, the trouble to master the time to resolve, send high. How reality by acoustic noise reduction.
-------------------------------------------------- -------------
Use fscommand transfer orders not to use javascript. That is, in Flash,
B1.onRelease = function () (
Fscommand ( "VolUp");
)
In HTML, in your Javascript on the basis of the existing Add
Var isInternetExplorer = navigator.appName.indexOf ( "Microsoft")! = -1;
/ / Flash movie in the news all FSCommand
Function FlashControl_DoFSCommand (command, args) (
Var FlashControl = isInternetExplorer? Document.all.FlashControl: document.FlashControl;
/ / Code on here.
Eval (command) ();
)
/ / Link to Internet Explorer
If (navigator.appName & & navigator.appName.indexOf ( "Microsoft")! = -1 & & Navigator.userAgent.indexOf ( "Windows")! = -1 & & Navigator.userAgent.indexOf ( "Windows 3.1") == -- 1) (
Document.write (''<script language=\"VBscript\"\> \ n'');
Document.write (''On Error Resume Next \ n'');
Document.write (''Sub FlashControl_FSCommand (ByVal command, ByVal args) \ n'');
Document.write (''Call FlashControl_DoFSCommand (command, args) \ n'');
Document.write (''End Sub \ n'');
Document.write (''</ script \> \ n'');
) Above FlashControl for embedded in the HTML Flash Object id
-------------------------------------------------- -------------
Simply read, modified to help you. VBscript problems. Javascript help you out in the section of the code, so that the like.
Javascript in the proposed code to
/ / Link to Internet Explorer
If (navigator.appName & & navigator.appName.indexOf ( "Microsoft")! = -1 & & Navigator.userAgent.indexOf ( "Windows")! = -1 & & Navigator.userAgent.indexOf ( "Windows 3.1") == -- 1) (
Document.write (''<script language=\"VBscript\"\> \ n'');
Document.write (''On Error Resume Next \ n'');
Document.write (''Sub FlashControl_FSCommand (ByVal command, ByVal args) \ n'');
Document.write (''Call FlashControl_DoFSCommand (command, args) \ n'');
Document.write (''End Sub \ n'');
Document.write (''</ script \> \ n'');
)
For
<script Language="VBscript">
On Error Resume Next
Sub FlashControl_FSCommand (ByVal command, ByVal args)
Call FlashControl_DoFSCommand (command, args)
End Sub
</ Script>
Just spent, and try it, I have to give messages.
- Javascript entry (for CSS / JS / XSS beginners reference)
- Javascript and CSS will be written into a document
- Web layout display. Index posted CSS + javascript
- Call css javascript
- JavaScript dynamic CSS, rejuvenate technology
- Javascript + css achieve tab function
- CSS + javascript dialog box of colors
- [Javascript] [CSS] runtimeStyle and style, cssText
- Making use of JavaScript and CSS floating menu
- Absolute classic pulley news show (javascript + css)
- Css + javascript drop-down menu
- JavaScript build with the CSS + page tab
- Javascript - css Cascading Style Sheets
- HTML, JavaScript, css reference case
- CSS + JavaScript create cool Menu
- Several good php, css, the javascript IDE.
- Calling in the CSS JAVASCRIPT
- By Xslt / CSS / Xml / Javascript labeling
- In the CSS style exterior use JavaScript
- If I really like HTML, CSS and JavaScript again?
Dreamweaver MX 2004 Video Collection Guide (29)

Section 29 sets: meta-information labeling <meta> Curriculum objectives: master meta-information labeling <meta> Use Curriculum points: meta-information in the labeling <meta> HTML document <head> </ head> in the region, they record we...
In the course of CSS - expression

In the course of CSS - expression CSS recently compared the behavior of interest, although they could not meet the standards can only ie identification, but he did css to extend the capabilities of a lot. Below are extracted from the text on the Internet and exampl...
[To] achieve div drag simple JavaScript

Javascript elements drag'n'drop By shawl.qiu (compatible with IE, Opera, Firefox) Description: Drag the mouse click process -> (mouse movement -> mobile elements) Mouse button pops up -> elements stops moving For IE, ma...
Fireworks filled with seamless picture deal with another effect

In classic Forum (http://www.blueidea.com/bbs) to see a seamless use of the effect of the production background, I feel very good, special extract this tutorial, reference convenient reference. 1, a new length and width of 20 pixels, the background for transparent document. ...
Flash Analysis XML gibberish problems

There are two kinds of approaches can be resolved: 1, the attention of XML in the coding, this is a "<? Xml version =" 1.0 "encoding =" UTF-8 ">" after "encoding =" UTF-8 "," we should use the best "UTF - 8 "codi...