When doing video order programme, the author wants to seek the plug-in unit of a Dreamweaver 3 all the time, period of time was searched to was not found on the net, be forced oneself are written. After the course undertakes serious analysis to DW3 plug-in unit and Realplay player, the author made up one plug-in unit with Javascript, it is normal to after checking for many times, be used, sum up existing writings now, share with everybody.
Plug-in unit composition
Plug-in unit includes 3 shares, introduce as follows respectively:
Realplay.gif: Use Photoshop is made, size is 18 × 18 like element. This image is show in the object face plate of DW3;
Realplay.htm: Have join Dw3 and Javascript interface effect;
Realplay.js: Javascrtipt statement, basically be to come true to write Realplay boy or girl friend to the webpage.
Program code
Realplay.htm source program is as follows:
< Html >
< Head >
< Title > inserts Realplay < / Title >
< of > of < Script Src="realplay.js" / Script >
< / Head >
< Body >
< / Body >
< / Html >
Realplay.js source program is as follows:
Function ObjectTag() {
Var BDialogState = Dw.getShowDialogsOnInsert();
Var TheMovie = Dw.doURLEncoding(browseForFileURL());
If ((theMovie=='') &&&& BDialogState) {Return ''; }
If (! TheMovie) TheMovie = '.rm';
Embed Height=240 Name=aa ' + ' Style="BORDER-BOTTOM:& of < of > of Div Align="center" of < of > of Div Align="center" of Return ' <Nbsp;#2a8a21 3px Solid; BORDER-LEFT:&Nbsp;#2a8a21 3px Solid; BORDER-RIGHT:&Nbsp;#2a8a21 3px Solid; BORDER-TOP:&< of '+ ' of > of Embed Height=30 Type=audio/ X-pn-realaudio-plugin Width=320 Console="clip1" Reset="false " Autostart="false" Controls="controlpanel" of < of ' + ' / ' + ' of > of < Embed Height=30 Type=audio/ X-pn-realaudio-plugin Width=320 Console="clip1" Reset="false" Controls="statusbar" Autostart=true of ' + ' of > of Br of EMBED > <
The program above, the Configuration/objects/common that is put below DW3 installation catalog directly can be used.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment