<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SparkWeb</title>
<script src="AC_OETags.js" type="text/javascript"></script>
<style>
body { margin: 0px; overflow:hidden }
</style>
<script type="text/javascript">
var mw_flashMovieId = "SparkWeb"; // the id/name of your flash app's HTML DOM element
var mw_flashContainerId = "container"; // the id/name of the flash element's surrounding div element
</script>
<script type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
// -----------------------------------------------------------------------------
// -->
</script>
</head>
<script type="text/javascript">
function jive_sparkweb_getConfig()
{
return {
server: "mingguang-pc",
connectionType: "https",
bindPath: "/http-bind/"
port: "7443",
autoLogin: "false"
policyFileURL: "xmlsocket://mingguang-pc:5229"
};
}
</script>
<script type="text/javascript">
// Copyright 2007 www.flexcapacitor.com, www.drumbeatinsight.com
// Version 1.0.0
// global array of html elements
htmlControls = new Array();
var timer;
var titleStr;
var nicknameStr;
var bodyStr;
var flashPlayer;
// add HTML element to the page
function addChild(o) {
if (o.type=="division") {
addChildDivision(o);
}
else if (o.type=="iframe") {
addChildIFrame(o);
}
}
function detectFlashPlayer(){
try {
if(navigator.appName.indexOf("Microsoft") != -1){
flashPlayer = window.SparkWeb;
}
else {
flashPlayer = window.document.SparkWeb;
}
}
catch(e){
alert(e);
}
}
window.onblur = function() {
if(flashPlayer != null && flashPlayer.setFocused){
flashPlayer.setFocused(false);
}
};
window.onfocus = function() {
if(flashPlayer != null && flashPlayer.setFocused){
flashPlayer.setFocused(true);
}
};
function isReady(){
return true;
}
// add iframe to the page
function addChildIFrame(o) {
if (getElement(o.id)) {
// do nothing for now
}
var newElement = document.createElement("iframe");
newElement.id = o.id;
newElement.name = o.name;
newElement.movieId = o.movieId;
newElement.width = o.width;
newElement.height = o.height;
newElement.frameBorder = o.frameborder;
newElement.style.position = o.position;
setSize(newElement,o.width,o.height);
moveElementTo(newElement,o.x,o.y);
//newElement.style.backgroundColor = "transparent";
// always 0px - do not add a border to the iframe itself
// add a child div and add a border to that or add border in mxml
newElement.style.border = o.border;
newElement.src = o.source;
// use innerHTML or DOM element creation methods to put content into body
document.body.appendChild(newElement);
newElement.onload = new function() {
// set a flag so the application knows the page is loaded
// looking for a reliable method that works cross browser
}
}
// add division to the page
function addChildDivision(o) {
var newElement = document.createElement("div");
newElement.id = o.id;
newElement.name = o.name;
newElement.movieId = o.movieId;
newElement.style.position = o.position;
setSize(newElement,o.width,o.height);
moveElementTo(newElement,o.x,o.y);
newElement.style.backgroundColor = "#" + o.backgroundColor;
newElement.style.padding = "0px";
newElement.style.margin = "0px";
// always 0px - do not add a border to the container div tag
// add a border in mxml or add a child div tag in the htmlText property and add a border to that
newElement.style.border = o.border;
newElement.innerHTML = o.htmlText;
document.body.appendChild(newElement);
setScrollPolicyById(o.id, o.htmlScrollPolicy);
addToGlobalArray(newElement, o.type);
}
// add to associative array
function addToGlobalArray(el, elementType) {
var newElement = new Object();
newElement.element = el;
newElement.id = el.id;
newElement.loaded = false;
newElement.type = elementType;
htmlControls[el.id] = newElement;
}
// gets the element by name
function getElement(id) {
if (htmlControls[id]) {
return htmlControls[id].element;
}
return document.getElementById(id);
}
function appendMessage(id, message){
try {
var f = getElement(id);
var p = f.contentWindow.document;
window[id].appendMessage(message);
}
catch(err){
setTimeout('appendMessage("+id+", "+message+")', 3000);
}
}
function isReady(id){
try {
var f = getElement(id);
var p = f.contentWindow.document;
return window[id].isReady();
}
catch(err){
}
return false;
}
function changeTitle(title){
window.document.title = title;
clearTimeout(timer);
}
function alertTitle(title, username){
clearTimeout(timer);
window.document.title = title;
titleStr = title;
nicknameStr = username;
timer = setTimeout("showNickname()", 1000);
}
function showNickname(){
window.document.title = nicknameStr;
timer = setTimeout("showTitle()", 1000);
}
function showTitle(){
window.document.title = titleStr;
timer = setTimeout("showNickname()", 1000);
}
function showBody(){
window.document.title = bodyStr;
timer = setTimeout("showTitle()", 1000);
}
function refreshPage(){
window.location.reload( false );
}
// cannot get height of pages loaded from different domains
// ie, page is hosted at www.yoursite.com and you load www.google.com will fail with return value of -1
// works in ff and ie. not tested in mac browsers -
function getElementHeight(id){
var el = getElement(id);
moz = (document.getElementById && !document.all);
if (el){
// check the height value
try {
/*** return div height ***/
if (el.nodeName.toLowerCase()=="div") {
var scrollHeight = el.scrollHeight;
var divHeight = el.style.height;
divHeight = (scrollHeight > parseInt(divHeight)) ? scrollHeight : divHeight;
return divHeight;
}
/*** return iframe height ***/
//moz
if (moz) {
return el.contentDocument.body.scrollHeight;
}
else if (el.Document) {
return el.Document.body.scrollHeight;
}
}
catch(e)
{
//An error is raised if the IFrame domain != its container's domain
//alert('Error: ' + e.number + '; ' + e.description+'\nPossibly - Cannot access because page domain does not equal container domain');
return -1;
}
}
}
// get property value
function getElementValue(id, elProperty){
// if periods are in the name assume absolute path
// otherwise assume element id
if (id.indexOf('.')!=-1) {
var newArr = id.split('.');
var elValue = "";
try {
el = window;
for (var i=0;i < newArr.length;i++) {
el = el[newArr[i]];
}
return el;
}
catch (e) {
//alert("Whoooops!! Cant find " + elId);
// should return null or undefined here
return -1;
}
}
else {
// try and get property value
try {
var el = getElement(id);
var elValue = el[elProperty];
return elValue;
}
catch(e) {
//alert("Error: Can't find " + elId + "." + elProperty);
// should return null or undefined here
return -1;
}
}
}
// get HTML content
function getHTML(id, elementType) {
var el = getElement(id);
if (el!=null) {
if (elementType =="division
sparkweb客户端
4星 · 超过85%的资源 需积分: 10 8 浏览量
2012-11-29
12:36:05
上传
评论
收藏 630KB RAR 举报
ming_02
- 粉丝: 0
- 资源: 17
最新资源
- 沈丘盛世龙门图纸符合规范化
- HM3400-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 基于python+streamlit联邦学习进行高校学生成绩预测研究python源码+项目说明+模型+数据.zip
- HM3400D-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- HM3400B-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- spring-boot示例
- 搜集火星资源.py
- JAR应用启动停止脚本化解决方案.zip
- 配合eclipse svn插件subclipse-4.3.4版本的javahl
- Bash脚本教程:如何优雅地停止JAR服务.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈