<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>flow</title>
<style type="text/css">
.div1{font-size:10pt}
.div2{font-size:10pt;cursor:hand}
html,body{height: 100%;padding:0 4 4 0;margin:0;}
</style>
<script language=javascript src=/psub.js></script>
<script language="javascript">
function getUrl(type)
{
var localname = "", pagename = "";
if (document.getElementById("localname") != undefined)
{
localname = document.getElementById("localname").value;
}
var url = location.href;
var re = /.*\/((.+?)\..+)/;
var m = re.exec(url);
var re1, t;
if (localname == "")
{
localname = m[2];
}
if (type == "ram" || localname == "debug")
{
t = new Date().getTime();
var restr = "\\w+\\d{" + (t.toString().length - 1) + "," + (t.toString().length + 1) + "}$";
re1 = new RegExp(restr);
if (!re1.test(localname))
{
localname += t;
}
document.getElementById("localname").value = localname;
}
var title = document.title;
if (title == "")
{
pagename = m[1];
title = pagename;
}
return localname + ";" + title;
}
window.onerror1 = function (sMsg,sUrl,sLine){
var str = "JavaScript脚本错误:\n";
str+="Error: " + sMsg + "\n";
str+="Line: " + sLine + "\n";
str+="URL: " + sUrl;
out.print(str);
return true;
}
var isDown = false;
var mouse0 = new Object();
function mouseover(obj)
{
obj.className = "div2"
}
function mouseout(obj)
{
obj.className = "div1"
}
function mousedown(obj)
{
isDown = true;
mouse0.mouseX0 = parseInt(event.clientX);
mouse0.mouseY0 = parseInt(event.clientY);
flashdiv.flashWidth0 = parseInt(flash.style.width);
//alert(flash.style.width);
flashdiv.flashHeight0 = parseInt(flash.style.height);
obj.setCapture();
}
function mousemove(obj)
{
if (!isDown)
{
return;
}
var offsetX = 0, offsetY = 0;
offsetX = parseInt(event.clientX) - mouse0.mouseX0;
offsetY = parseInt(event.clientY) - mouse0.mouseY0;
if (flashdiv.flashWidth0 + offsetX > 100) {
switch (obj.id) {
case "ccenter" :
break;
case "cleft" :
default :
changeSize.style.left = flashdiv.flashWidth0 + offsetX;
cleft.style.left = flashdiv.flashWidth0 + offsetX;
ccenter.style.left = (flashdiv.flashWidth0 + offsetX) / 2 - 2;
flash.style.width = flashdiv.flashWidth0 + offsetX;
flashdiv.style.width = flashdiv.flashWidth0 + offsetX;
}
changed = true;
}
if ( flashdiv.flashHeight0 + offsetY > 100) {
switch (obj.id) {
case "cleft" :
break;
case "ccenter" :
default :
changeSize.style.top = flashdiv.flashHeight0 + offsetY;
cleft.style.top = (flashdiv.flashHeight0 + offsetY) / 2 - 2;
ccenter.style.top = flashdiv.flashHeight0 + offsetY;
flash.style.height = flashdiv.flashHeight0 + offsetY;
flashdiv.style.height = flashdiv.flashHeight0 + offsetY;
}
changed = true;
}
}
function mouseup(obj)
{
isDown = false;
obj.releaseCapture();
}
function jiancha() {
if (changed) {
return "流程图已修改,放弃保存吗?";
}
}
function mouseclick(obj)
{
obj.className = "div2"
}
AC_FL_RunContent = 0;
var debugLevel = "info";
var flash = null;
function setStageSize(w, h) {
return;
if (h == undefined) {
h = 400;
}
if (w == undefined) {
w = 550;
}
flash.style.width = w;
flash.style.height = h;
changeSize.style.top = h;
changeSize.style.left = w;
cleft.style.top = h / 2 - 2;
cleft.style.left = w;
ccenter.style.top = h;
ccenter.style.left = w / 2 - 2;
if (w > document.body.offsetWidth || h > document.body.offsetHeight) {
document.body.scroll = "yes";
}
}
var changeSize = null;
var flashdiv = null;
var changed = false;
window.onload = function(){
changeSize = document.getElementById("changeSize0");
flashdiv = document.getElementById("flashdiv0");
flash = document.getElementById("flow");
flash.style.width = document.body.offsetWidth;
flash.style.height = document.body.offsetHeight;
};
window.onunload = function(){
//if ( prop != null && !prop.closed )
{
// prop.close();
// prop = null;
}
flash = null;
};
</script>
<script src="../AC_RunActiveContent.js" language="javascript"></script>
<script language=javascript src=/psub.js></script>
</head>
<body bgcolor="#ffffff" onbeforeunload="return jiancha();" scroll="no">
<div id="flashdiv0" style="border:solid 0 #aaaaaa;float:left;"><script language="javascript">
if (AC_FL_RunContent == 0) {
alert("此页需要 AC_RunActiveContent.js");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '550',
'height', '400',
'src', 'flow',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'Opaque',
'devicefont', 'false',
'id', 'flow',
'bgcolor', '#ffffff',
'name', 'flow',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', '../flow',
'salign', ''
); //end AC code
}
</script></div><div id="cleft" style="width:4px;height:4px;background-color:#000080;position:absolute;top:198px;left:550;overflow:hidden;cursor:w-resize;"
onmousedown="mousedown(this);" onmouseup="mouseup(this);" onmousemove="mousemove(this);"></div><div id="ccenter" style="width:4px;height:4px;background-color:#000080;position:absolute;top:400px;left:273;overflow:hidden;cursor:s-resize;"
onmousedown="mousedown(this);" onmouseup="mouseup(this);" onmousemove="mousemove(this);"></div><div id="changeSize0" style="width:4px;height:4px;background-color:#000080;position:absolute;top:400px;left:550;overflow:hidden;cursor:se-resize;"
onmousedown="mousedown(this);" onmouseup="mouseup(this);" onmousemove="mousemove(this);"></div>
<SCRIPT LANGUAGE="JavaScript">
<!--
var prop = null;
var time0 = 0;
var propInfo = "";
var curObj = "";
function flow::FSCommand(command, args)
{
command = command.toLowerCase();
//alert(command+"==="+args)
switch (command)
{
case "alert":
alert(args);
break;
case "status":
top.status = args;
break;
case "eval":
try {
eval(args);
} catch (e) {
}
break;
case "init":
document.getElementById("flow").execFunction("init");
break;
case "delete":
//parent.deleteEle();
flash.setDrawActionType("delete")
break;
case "addnodeafter":
changed = true;
parent.mouseclick();
//parent.addNodeAfter(args);
break;
case "addlineafter":
flash.sendDebug(args);
if (args.indexOf("错误") >= 0) {
return;
}
changed = true;
parent.mouseclick();
//parent.addLineAfter(args);
break;
case "deleteafter":
changed = true;
//parent.deleteAfter(args);
break;
case "node": //双击节点
parent.document.getElementById("nodeProp").src = "/TableAction.asp?Action=EditFlowActionProp&FlowDataID=" + args;
//NewHref("/TableAction.asp?Action=EditFlowActionProp&FlowDataID=" + (parseInt(args) + 1),
// "menubar=0,toolbar=0,location=0,status=0,width=640,height=480,scrollbars=0,resizable=0");
break;
case "line": //双击节点
parent.document.getElementById("nodeProp").src = "/TableAction.asp?Action=FlowCondition_form&FlowID=" + parent.flow_id + "&FlowDataID=" + args;
//window.open("line_prop.asp?flow_id=" + parent.flow_id + "&orderby=" + args, "_blank", "width=500,height=350,resizable=yes");
//NewHref("FlowLineProp.asp?FlowID=" + parent.flow_id + "&FlowDataID=" + (parseInt(args) + 1),
// "menubar=0,toolbar=0,location=0,status=0,width=300,height=220,scrollbars=0,resizable=0");
break;
case "loader": //作廢
parent.continueLoader();
break;
case "parent.reload":
parent.location.reloa
没有合适的资源?快使用搜索试试~ 我知道了~
flash画流程图 V1.3 预览版,支持web页面上运用flash技术画流程图
共54个文件
gif:42个
jpg:5个
swf:1个
4星 · 超过85%的资源 需积分: 33 469 下载量 62 浏览量
2010-06-16
11:31:00
上传
评论
收藏 112KB RAR 举报
温馨提示
支持web页面上运用flash技术画流程图,通过flash与javascript交互实现对流程图的控制。需要部署到web服务器,使用方法参照graph1.htm。 欢迎反馈意见,将在下一版本中修正
资源推荐
资源详情
资源评论
收起资源包目录
流程图.rar (54个子文件)
test
flow.html 10KB
AC_RunActiveContent.js 8KB
flow.html.bak 11KB
graph1.htm 28KB
images
print.jpg 844B
error.gif 2KB
image36.gif 320B
image24.gif 303B
fenge.gif 62B
tuoyuan.gif 59B
image9.gif 129B
image11.png 473B
image20.gif 325B
image45.gif 591B
plus.gif 85B
exit.gif 63B
image3.gif 362B
dragbg.jpg 641B
image2.gif 128B
image34.gif 304B
image51.gif 609B
image30.gif 613B
Property.gif 171B
image8.gif 379B
image10.gif 170B
image64.gif 127B
fang.gif 65B
flow_bg0.jpg 2KB
image62.gif 613B
image28.gif 365B
prof_acc.gif 101B
image14.gif 73B
image26.gif 80B
lingjuxing.gif 60B
image37.gif 229B
image59.gif 94B
Thumbs.db 62KB
flow_bg1.jpg 3KB
image65.gif 124B
image17.gif 369B
daochu.gif 547B
image63.gif 123B
dragbg.gif 63B
bg.jpg 2KB
image66.gif 125B
image41.gif 175B
switch.gif 1KB
lingxing.gif 64B
image15.gif 222B
image27.gif 604B
image55.gif 98B
daoru.gif 549B
image60.gif 598B
flow.swf 53KB
共 54 条
- 1
jnssvh
- 粉丝: 1
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页