⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flashvml2_0.htm

📁 === === === === JavaScript经典源代码收集
💻 HTM
📖 第 1 页 / 共 5 页
字号:
编程辅助键入工具:<input type=button class=bon3 value=文件路径 onclick="thefile1.click();if(document.all.thefile1.value!='')shijiantxt.value+='file:///'+document.all.thefile1.value.replace(/\\/g,'/')" style='width:70'><input type='file' id='thefile1' style='display:none'> <input style='border:1 solid black;width:54;height:20;' value='颜色代码' id=yansedaima onmousedown='rndcolor(this.id)'><br><textarea id='shijiantxt' style='width:300;height:100'></textarea><br>简易程序:<select id='jianyichengxu' style='width:170'><Optgroup label='网页控制类-通用' style='color:red'><Option value="document.bgColor='#FF0000'">网页背景色改变<Option value="document.body.background='图像路径'">网页背景图改变<option value="document.title='新的网页标题'">网页标题改变<option value="window.status='状态栏文字'">状态栏文字改变<Option value="bgsound1.src='音乐文件地址'">播放音乐文件<option value="window.open('http://www.lshdic.com')">弹出网页窗口<option value="location.href='http://www.lshdic.com'">转到目标网页<option value="location.href='mailto:abc@abc.com'">发送电子邮件<option value="alert('消息内容')">消息对话框<option value="confirm('两种选择')">选择对话框<option value="prompt('请输入密码')">输入对话框<option value="document.body.style.behavior='url(#default#homepage)';document.body.setHomePage(location.href)">设为首页功能<option value="external.AddFavorite(location.href,document.title)">加入收藏夹功能<option value="location.href='view-source:'+location.href">查看源文件功能<option value="opener=null;window.close()">关闭窗口</Optgroup><Optgroup label='外观控制类-基本通用' style='color:green'><Option selected=true value="strokeweight='5'">边框粗度改变<Option value="strokecolor='#FF0000'">边框颜色改变<Option value="stroked='false'">隐藏边框<Option value="stroked='true'">显示边框<Option value="fillcolor='#FF0000'">背景颜色改变<Option value="filled='f'">背景空心<Option value="filled='t'">取消背景空心<Option value="Rotation='80'">旋转角度设定<Option value="shadow.color='black';%%%.shadow.offset='3pt,3pt';%%%.shadow.on='t'">增加阴影效果<Option value="shadow.on='f'">取消阴影效果<Option value="extrusion.on='t';%%%.extrusion.foredepth='0';%%%.extrusion.backdepth='20pt';%%%.extrusion.color='#FFFFFF';%%%.extrusion.rotationangle='0,0'">增加立体效果<Option value="extrusion.on='f'">取消立体效果<Option value="fill.color='blue';%%%.fill.type='gradient'">背景渐变颜色填充1<Option value="fill.color='blue';%%%.fill.type='gradientradial'">背景渐变颜色填充2</Optgroup><Optgroup label='Css外观控制类-通用' style='color:blue'><Option value="style.display='none'">隐藏<Option value="style.display=''">取消隐藏<Option value="style.left='300'">定位左右位置<Option value="style.top='300'">定位上下位置<Option value="style.zIndex='4'">定位三维高度<Option value="style.width='300'">宽度设定<Option value="style.height='300'">高度设定<Option value="style.filter='alpha(opacity=50,style=0)'">透明度设定<option value="style.filter='fliph'">左右反转<Option value="style.filter='flipv'">上下反转<Option value="style.clip='rect(0 '+%%%.offsetWidth+' '+%%%.offsetHeight+' 0)';clipoldobj=null">恢复流线裁剪效果</Optgroup><Optgroup label='流线动画程序-逐渐类' style='color:purple'><Option value="style.left=parseInt(%%%.style.left)-2">逐渐向左移动<Option value="style.left=parseInt(%%%.style.left)+2">逐渐向右移动<Option value="style.top=parseInt(%%%.style.top)-2">逐渐向上移动<Option value="style.top=parseInt(%%%.style.top)+2">逐渐向下移动<Option value="style.width=parseInt(%%%.style.width)+2">逐渐宽度增加<Option value="style.width=parseInt(%%%.style.width)-2">逐渐宽度减少<Option value="style.height=parseInt(%%%.style.height)+2">逐渐高度增加<Option value="style.height=parseInt(%%%.style.height)-2">逐渐高度减少<Option value="Rotation+=2">逐渐向右旋转<Option value="Rotation-=2">逐渐向左旋转<Option value="strokeweight+=1">逐渐边框粗度增加<Option value="strokeweight-=1">逐渐边框粗度减少</Optgroup><Optgroup label='流线动画程序-重复类' style='color:purple'><Option value="style.display=='none'?%%%.style.display='':%%%.style.display='none'">重复隐藏/显示图型<Option value="stroked==false?%%%.stroked=true:%%%.stroked=false">重复隐藏/显示边框<Option value="style.zIndex==50000?%%%.style.zIndex=-10000:%%%.style.zIndex=50000">重复覆盖/被物件覆盖<Option value="strokecolor=='red'?%%%.strokecolor='blue':%%%.strokecolor='red'">重复边框颜色交替<Option value="fillcolor=='red'?%%%.fillcolor='blue':%%%.fillcolor='red'">重复背景颜色交替</Optgroup><Optgroup label='流线动画程序-随机类' style='color:purple'><Option value="strokecolor='rgb('+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+')'">边框颜色随机变化<Option value="fillcolor='rgb('+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+','+Math.round(Math.random()*255)+')'">背景颜色随机变化<Option value="style.left=Math.round(Math.random()*document.body.offsetWidth-100);%%%.style.top=Math.round(Math.random()*document.body.offsetHeight-100)">图型位置随机移动<Option value="style.width=Math.round(Math.random()*300);%%%.style.height=Math.round(Math.random()*300)">图型大小随机改变<Option value="Rotation=Math.round(Math.random()*360)">图型随机旋转</Optgroup><Optgroup label='流线动画程序-滤镜类' style='color:purple'><Option value="style.filter='alpha(opacity=100,style=0)';%%%.filters[0].opacity-=2">透明度逐渐减少<Option value="style.filter='alpha(opacity=30,style=0)';%%%.filters[0].opacity+=2">透明度逐渐增加<Option value="style.filter='wave(add=0,freq=4,lightstrength=5,phase=5,strength=0)';%%%.filters[0].strength+=1">波浪效果增强<Option value="style.filter='wave(add=0,freq=4,lightstrength=5,phase=5,strength=80)';%%%.filters[0].strength-=1">波浪效果减弱<Option value="style.filter='blur(add=0,direction=100,strength=0)';%%%.filters[0].strength+=1">模糊效果增强<Option value="style.filter='blur(add=0,direction=100,strength=60)';%%%.filters[0].strength-=1">模糊效果减弱<Option value="style.filter='glow(color=#e8e965,strength=0)';%%%.filters[0].strength+=1">光辉效果增强<Option value="style.filter='glow(color=#e8e965,strength=60)';%%%.filters[0].strength-=1">光辉效果减弱<Optgroup label='流线动画程序-特技类' style='color:purple'><Option value="fill.color='blue';%%%.fill.type='gradient';%%%.fill.angle-=2">背景右向渐变特技<Option value="fill.color='blue';%%%.fill.type='gradient';%%%.fill.angle+=2">背景左向渐变特技<Option value="dizhen=true;dizhen(%%%,10)">图型地震(单线程)<Option value="dizhen=true;dizhen(window,20)">窗口地震(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,true,false,false)">右裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,false,false,true)">左裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,false,false,false)">上裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,false,true,false)">下裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,true,false,true)">左右裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,false,true,false)">上下裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,false,false,true)">左上裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,false,true,true)">左下裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,true,false,false)">右上裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,true,true,false)">右下裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,true,false,true)">左右上裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,false,true,true,true)">左右下裁剪(单线程)<Option value="caijian1=true;clipcool(%%%,1,true,true,true,true)">四边裁剪(单线程)</Optgroup></select><input type=button class=bon3 value=增加该效果 onclick='var tempops=jianyichengxu.options[jianyichengxu.selectedIndex];if(tempops.parentElement.style.color=="red"){shijiantxt.focus();document.selection.createRange().text=(tempops.value+";");}else{shijiantxt.focus();document.selection.createRange().text=(objorthis+"."+tempops.value.replace(/%%%/g,objorthis)+";");}' style='width:75'><br>可用属性:<select id='shijianallobj1' style='width:170'></select><input type=button class=bon3 value=更改该属性 onclick='shijiantxt.focus();document.selection.createRange().text=(objorthis+"."+shijianallobj1.options[shijianallobj1.selectedIndex].text+"=&#39;&#39;;")' style='width:75'><br><select id='shijianallobj2'></select><input type=button class=bon3 value=更改该属性 onclick='shijiantxt.focus();document.selection.createRange().text=(objorthis+"."+shijianallobj2.options[shijianallobj2.selectedIndex].text+"=&#39;&#39;;")' style='width:75'><br><center><input type='button' value='修改' class="bon3" onclick="shijianfun();shijianobj=null;shijiantxt.value='';"><input type=button class=bon3 value=取消 onclick='shijiantxt.value="";shijian1.style.display="none"'></span><span class=keshi style="display:none;left:expression(document.body.offsetWidth/2-(this.offsetWidth/2));top:expression(document.body.offsetHeight/2-(this.offsetHeight/2));z-index:30000;display:none" id='yuandaima'>   <!--所有原代码--><textarea id='txt3' style='width:550;height:270'></textarea><br><textarea readonly='true' id='txt3_top' style='width:550;height:130;color:gray'></textarea><br><center><b>共<font id=zishu1 color=red>0</font>字,主要代码<font id=zishu1 color=red>0</font>字,头部附加<font id=zishu1 color=red>0</font>字</b><input type='button' value='复制全部' class="bon3" onclick="window.clipboardData.setData('text',txt3_top.value+txt3.value+'</BODY>\n</HTML>');alert('已将数据复制到系统剪切板')" style=width:60> <input style=width:60 type='button' value='更新修改' class="bon3" onclick="div1.innerHTML=txt3.value.replace(/ onmouse/g,' temp_onmouse').replace(/ onkey/g,' temp_onkey').replace(/ (onclick|ondblclick)/g,' temp_$1');yuandaima.style.display='none'"> <input style=width:60 type='button' value='取消' class="bon3" onclick="yuandaima.style.display='none'"> </span><span class=keshi style="display:none;text-align:left" id='jiaoben'>   <!--我的脚本仓库-->&lt;script id="myscript" language="javascript"&gt;<br><textarea id='jiaobentxt' style='width:350;height:250'></textarea><br>function window.onload(){<br><textarea id='jiaoben_load' style='width:350;height:100'></textarea><br>}&lt;/script&gt;<br><input type='button' value='修改' class="bon3" onclick="wodejiaoben=jiaobentxt.value;onloadjiaobenstr=jiaoben_load.value;jiaoben.style.display='none'"> <input type='button' value='取消' class="bon3" onclick="jiaoben.style.display='none'"></span><span style='position:absolute;z-index:40000;display:none' id='menu1'>    <!--弹出菜单1--><input type=button class=bon3 value=置前 onclick='zz+=1;thisobj.style.zIndex=zz;menu1.style.display="none"'><br><input type=button class=bon3 value=置后 onclick='zz2-=1;thisobj.style.zIndex=zz2;menu1.style.display="none"'><br><input type=button class=bon3 value=复制 onclick='div1.innerHTML+=thisobj.outerHTML;if(div1.lastChild.id!=""){nextid++;div1.lastChild.id=open_var+nextid};if(fuzhitixing==false){alert("复制完成,请使用选移功能拖动");fuzhitixing=true};menu1.style.display="none";for(i=0;i<huabi.length;i++)if(huabi[i].className!="bon2")huabi[i].className="bon2";huabi[19].className="bon1";div1.style.cursor="hand"' id=fuzhi><br><input type=button class=bon3 value=删除 onclick='thisobj.outerHTML="";menu1.style.display="none"' id=shanchu style='border-bottom:3 solid maroon'><br><input type=button class=bon3 value=裁剪 onclick='if(thisobj.style.clip!=""){if(confirm("这将取消目标现有的裁剪效果然后才可裁剪,你确定么?"))thisobj.style.clip="rect(0 "+thisobj.offsetWidth+" "+thisobj.offsetHeight+" 0)";else return false}caijian.style.left=thisobj.offsetLeft-caijianjuli;caijian.style.top=thisobj.offsetTop-caijianjuli;caijian.style.width=thisobj.offsetWidth+(caijianjuli*2);caijian.style.height=thisobj.offsetHeight+(caijianjuli*2);caijian.style.display="";menu1.style.display="none"' onmousemove='showhelp("裁剪目标图型的上、右、下、左边缘")'><br><input type=button class=bon3 value=放大 onclick='fangda(thisobj);menu1.style.display="none"' onmousemove='showhelp("放大单个图型对象,对线条类图型无效")'><br><input type=button class=bon3 value=缩小 onclick='suoxiao(thisobj);menu1.style.display="none"' onmousemove='showhelp("缩小单个图型对象,对线条类图型无效")' style='border-bottom:3 solid maroon'><br><input type=button class=bon3 value=取消 onclick='menu1.style.display="none"' style='color:black;font-weight:bold'></span><span style='position:absolute;z-index:40000;display:none' id='menu2'>    <!--弹出菜单2--><input type=button class=bon3 value=网格 onclick='wangge();menu2.style.display="none"'><br><input type=button class=bon3 value=取消 onclick='menu2.style.display="none"' style='color:black;font-weight:bold'></span><TABLE cellspacing=0 cellpadding=0 align=center style='position:absolute;left:3;top:20;z-index:2999' onmousedown='if(event.srcElement.tagName=="CENTER"&&event.button==1){moveok=1;setCapture();xx=event.x-this.offsetLeft;yy=event.y-this.offsetTop;}' onmousemove="if(moveok==1){this.style.left=event.x-xx;this.style.top=event.y-yy;}" onmouseup='moveok=0;releaseCapture();if(parseInt(this.style.top)<-10){alert("工具栏高度不能低于页面最顶部");this.style.top=20}if(event.srcElement.tagName=="CENTER"&&event.button==2){this.style.zIndex==2999?this.style.zIndex=6000:this.style.zIndex=2999;}' id=gongjulan3><tr><Td style='padding:3;'><center id=cen>编程工具(4) <input type=button class=bon2 value=× style='width:20;height:15' onmousemove='showhelp("关闭不是必要的[编程\\动画]创作工具栏,进行FYWVml3.0时代基本的静态图像绘制作业")' onclick="gongjulan3.style.display='none';xianshigongju.style.display=''"></td></tr><Tr><td><input type=button class=bon3 value=下载LD2005 style='width:105' onmousemove='showhelp("下载由FYW原创的编程利器《网络程序员伴侣(Lshdic)2005》软件<br>在本地专业的配合flashvml2.0开发复杂的游戏、动画程序")' onclick="window.open('http://www.google.com/search?hl=zh-CN&q=%E7%BD%91%E7%BB%9C%E7%A8%8B%E5%BA%8F%E5%91%98%E4%BC%B4%E4%BE%A3%28Lshdic%292005&btnG=Google%E6%90%9C%E7%B4%A2&lr=')"></td></tr><Tr><td><input type=button class=bon3 value=我的脚本仓库 style='width:105' onmousemove='showhelp("在这个[我的Script脚本仓库]里,你可以自行编写编程所需的函数、变量<br>以便于此后进行事件编程、动画创作时动态调用")' onclick="jiaoben.style.left=event.x+100;jiaoben.style.top=event.y;jiaobentxt.value=wodejiaoben;jiaoben_load.value=onloadjiaobenstr;jiaoben.style.display==''?jiaoben.style.display='none':jiaoben.style.display=''"></td></tr><Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("查看及修改指定图型用以编程的ID属性")'>定义ID标识</td></tr><Tr><td><label for='yesaddnextid' onmousemove='showhelp("当复选框打勾时,每绘制一个新图型回自动为该图型增加一个随机ID方便编写程序")' value='绘图时自动添加'>绘图时自动添加</label><input type='checkbox' checked id='yesaddnextid' onmousemove='showhelp("当复选框打勾时,每绘制一个新图型会自动为该图型增加一个随机ID方便编写程序")' value='绘图时自动添加'></td></tr><Tr><td><label for='pingbicuowu' onmousemove='showhelp("当复选框打勾时,会防止你的事件、动画程序在运行出错时弹出错误提示")' value='运行时屏蔽错误'>运行时屏蔽错误</label><input type='checkbox' checked id='pingbicuowu' onmousemove='showhelp("当复选框打勾时,会防止你的事件、动画程序在运行出错时弹出错误提示")' value='运行时屏蔽错误'></td></tr><tr><Td style='padding:3;'><center id=cen>事件编程(5)</td></tr><Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onclick")'>左键单击时</td></tr><Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("ondblclick")'>双击左键时</td></tr><Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onmousedown")'>鼠标按下时</td></tr><Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onmouseup")'>鼠标弹起时</td></tr><Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onmouseover")'>鼠标靠近时</td></tr><Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onmouseout")'>鼠标离开时</td></tr><Tr><td><button class=bon2 id=huabi style='width:105' onmousemove='showhelp("onmousemove")'>鼠标移动时</td></tr><tr><Td style='padding:3;'><center id=cen>动画创作(6)</td></tr><Tr><td><select id=allid onmouseover='getallid()' onchange='objorthis=this.options[this.selectedIndex].text;biaoshifun(objorthis);' onmouseup="if(event.button==2&&this.options.length!=1){if(confirm('你想把画板内图型的所有ID标识清除?')){for(i=this.options.length;i>1;i--){document.all(this.options[i-1].text).id='';this.remove(i);}}}" style='width:105' size=5><option selected>可用的对象ID</select></td></tr><Tr><td><select id='miaozhong' style='width:105' onchange='fenzhong.selectedIndex=0'><option>秒钟动作<script>tempstr1="";for(i=1;i<600;i++){if(i%60!=0)tempstr1+=("<option>"+i);}document.write(tempstr1)</script></select></td></tr><Tr><td><select id='fenzhong' style='width:105' onchange='miaozhong.selectedIndex=0'><option>分钟动作<script>tempstr1="";for(i=1;i<201;i++){tempstr1+=("<option>"+i);}document.write(tempstr1)</script></select></td></tr><Tr><td align='center'><label for='xunhuan1'>结束时循环播放</label><input type='checkbox' checked id='xunhuan1'></td></tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -