本文整理汇总了PHP中openDocument函数的典型用法代码示例。如果您正苦于以下问题:PHP openDocument函数的具体用法?PHP openDocument怎么用?PHP openDocument使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了openDocument函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sendContentType
<?php
$ROOTDIR = '..';
require "{$ROOTDIR}/base.php";
sendContentType();
openDocument();
?>
<script type="text/javascript">
//<![CDATA[
var playing = false;
var testTimeout = false;
window.onload = function() {
menuInit();
initVideo();
registerKeyEventListener();
initApp();
setInstr('Please run all steps in the displayed order. Navigate to the test using up/down, then press OK to start the test. For some tests, you may need to follow some instructions.');
showVidState();
};
function handleKeyCode(kc) {
if (kc==VK_UP) {
menuSelect(selected-1);
return true;
} else if (kc==VK_DOWN) {
menuSelect(selected+1);
return true;
} else if (kc==VK_ENTER) {
var liid = opts[selected].getAttribute('name');
if (liid=='exit') {
document.location.href = '../index.php';
示例2: dirname
<?php
$ROOTDIR = '..';
require "{$ROOTDIR}/base.php";
$url = 'http://' . $_SERVER['SERVER_NAME'] . dirname($_SERVER['PHP_SELF']) . '/stream.php/test.aac';
sendContentType();
openDocument('MIT-xperts HBBTV testsuite', 1, '');
?>
<script type="text/javascript">
//<![CDATA[
var req = false;
window.onload = function() {
menuInit();
registerKeyEventListener();
initApp();
setInstr('Try to run play multiple times to play back memory cached audio clip. At least after the first playback, later playbacks should (maybe) occur instantly.');
};
function handleKeyCode(kc) {
if (kc==VK_UP) {
menuSelect(selected-1);
return true;
} else if (kc==VK_DOWN) {
menuSelect(selected+1);
return true;
} else if (kc==VK_ENTER) {
var liid = opts[selected].getAttribute('name');
if (liid=='exit') {
document.location.href = '../index.php';
} else {
runStep(liid);