文档欣赏

<head>
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>豆丁API效果演示(自定义标题)</title>
<meta name="keywords" content="API 豆丁网(自定义keywords)" />
<meta content="豆丁网" name="description"/>
</head>

<body>
<br/><br/>
<div id="test1" style="width:600px;height:30px;margin:0 auto;">
............................原网页内容..........................</div>
<br/><br/>
<!--第一部分代码:嵌入到最终页面用于显示文档播放器的位置-->
<div id="playerDiv" style="width:600px;height:600px;margin:0 auto;"></div>


<br/><br/>
<div id="test2" style="width:600px;height:30px;margin:0 auto;">
............................原网页内容..........................</div>

<!--第二部分代码:嵌入到最终页面尾部,</body>上方,用于调用豆丁API应用程序脚本-->

<script type="text/javascript">
 var qs_userid = 1;        //这是你注册的API帐户ID,请勿改动
 var qs_url = "http://t.docin.com/2008.pdf";//定义可直接访问到文档的URL
 var qs_title="文档标题";         //文档标题定义
 var qs_desc="文档描述";           //文档简介或描述
 var qs_playerDiv="playerDiv";  //用于显示的div ID
</script>
<script type="text/javascript" src="http://www.docin.com/apps/quickswitch/auto.js"></script>
</body>
</html>
  
 

猜你喜欢

转载自nhy520.iteye.com/blog/581477
今日推荐