Adding shockwave movies to a web page Web Designing

Like Flash, Director Shockwave files are added to an HTML document with the <embed> or <object> tags. Internet Explorer for Windows uses the <object> tag, which enables them to automatically download the ActiveX controls for playing Shockwave media. Netscape Navigator for Windows and all Mac browsers recognize the <embed> tag. To code your page so it is accessible to the maximum number of users, use a combination of the<embed> and <object> tags.

The easiest way to place a Shockwave movie in an HTML document is to rely on Director's Publish feature to generate the code for you. The following sample code shows the minimal code for placing the .dcr file on the page and redirecting the browser to missing plug-ins or ActiveX controls

<OBJECT CLASSID="clsid:166B1BCA-3F9C-11CF-8075-444553540000"><PARAM NAME=src VALUE="mymovie.dcr"><EMBED SRC="$MO" WIDTH=$WI HEIGHT=$HE TYPE="application/x-director"></EMBED></OBJECT>

The width and height values are mandatory and specify the dimensions of the movie in pixels. Note that the values for classid, codebase,and pluginspage must be copied exactly as shown above in order to workcorrectly.

Within the Publish Settings dialog box, there are a number attributes and parameters settings for controlling the display of control buttons with the movie, how the movie scales in the browser, and dozens of other functions.



Face Book Twitter Google Plus Instagram Youtube Linkedin Myspace Pinterest Soundcloud Wikipedia

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Web Designing Topics