Texas Instruments TI-Nspire CX CAS TINSPIRE-CX-CAS Fascicule
Codes de produits
TINSPIRE-CX-CAS
486 Embedding Documents in Web Pages
Customizing an Embedded TI-Nspire™ Document Player
The following example shows the iframe code needed to embed a document
that will be stored on the Texas Instruments Activities Exchange or on the
education.ti.com website.
that will be stored on the Texas Instruments Activities Exchange or on the
education.ti.com website.
<iframe src="http://education.ti.com/go/nspireplayer? lock_toolbar=yes&
openDoc=no&nspirefile=http://education.ti.com/xchange/US/Math/AlgebraI/
11340/From_Expressions_to_Equations.tns" width="700" height="500"
scrolling="no" frameborder="0"></iframe>
—or—
<script type="text/javascript"
src="http://education.ti.com/html/nspireplayer/js/ticreateiframe.js"></script>
<script type="text/javascript">
tiDeployPlayer.tiCreateIframePlayer(
// IFRAME attributes.
{
src : 'http://education.ti.com/go/nspireplayer',
width : '360',
height : '290',
scrolling : 'no',
frameborder : '0'
},
<script type="text/javascript">
tiDeployPlayer.tiCreateIframePlayer(
// IFRAME attributes.
{
src : 'http://education.ti.com/go/nspireplayer',
width : '360',
height : '290',
scrolling : 'no',
frameborder : '0'
},
// TI-Nspire(tm) Document Player parameters.
{
nspirefile : 'http://education.ti.com/xchange/US/Math/AlgebraI/11340/ From_
{
nspirefile : 'http://education.ti.com/xchange/US/Math/AlgebraI/11340/ From_
Expressions_to_Equations.tns ',
lock_toolbar:'yes',
openDoc:'no'
}
);
</script>
lock_toolbar:'yes',
openDoc:'no'
}
);
</script>
Notice the parameters lock_toolbar=yes and openDoc=no. These settings
were used to customize the Document Player so that it launches with the
toolbar locked in the expanded (visible) state and with the Open icon hidden.
were used to customize the Document Player so that it launches with the
toolbar locked in the expanded (visible) state and with the Open icon hidden.