HTML and CSS Reference
In-Depth Information
Silverlight files have an .xap extension, which can be seen in the <param> tag with the
name=”source” attribute. In this example, the alternative content includes a linked image
that allows users who do not have the Silverlight plug-in to get it.
Silverlight has a robust set of parameters that can be used to customize the viewer's user experience.
Here's an overview of some of the most frequently used parameters:
: Controls whether the Silverlight application can open in a separate
window. Accepted values are true and false .
allowHtmlPopupWindow
: Determines whether the automatic zoom features available in Internet
Explorer 8 and above can be used. Accepted values are true and false .
enableAutoZoom
: Defines a path to the file initially displayed by a Silverlight plug-in.
splashScreenSource
: Sets the rendering mode for Silverlight playback. When set to false (the
default option), the Silverlight application is displayed in a window; when true , the applica-
tion plays without the window border.
windowless
Try iT
In this Try It you learn how to incorporate plug-in content into your web page.
Lesson requirements
You will need the tpa_lunarlanding.html file from the Lesson_23 folder, as well as a text editor
and web browser.
You can download the code and resources for this lesson from the topic's web
page at www.wrox.com .
step-by-step
1.
Open your text editor.
2.
From the Lesson_23 folder, open tpa_lunarlanding.html .
3.
Put your cursor after the <div id=”lunarVideo”> tag and press Enter (Return).
4.
Enter the following code:
<object width=”640” height=”385”>
<param name=”movie” value=” http://www.youtube.com/v/t-Sm4kTUGCc?fs=1&amp;
hl=en_US&amp;rel=0”></param>
<param name=”allowFullScreen” value=”true”></param>
<param name=”allowscriptaccess” value=”always”></param>
<embed src=” http://www.youtube.com/v/t-Sm4kTUGCc?fs=1&amp;hl =en_US&amp;
rel=0” type=”application/x-shockwave-flash” allowscriptaccess=”always”
Search WWH ::




Custom Search