• 网络学院
  • IT资讯
  • 操作系统
  • 网络技术
  • 软件应用
  • 办公软件
  • 编程技术
  • 网站架设
  • 数据库类
  • 平面设计
  • 多媒体类
  • 游戏资讯
  • 教学论文
  • 认证考试
DHTML打造PictureSpelling
  站点:
  • 首 页
  • 最新软件
  • 文章教程
  • 国内软件
  • 国外软件
  • 绿色软件
  • 源码下载
  • 字体下载
DHTML打造PictureSpelling
软件发布 DHTML打造PictureSpelling
网络软件 系统工具 应用软件 联络聊天 图形图像 多媒体类 行业软件 游戏娱乐 编程开发 安全相关 教育教学 数码软件 绿软下载
热门软件: QQ 瑞星 pplive e话通 木马克星 千千静听 office2000 五笔字根 Photoshop 视频分割
返回文章教程首页 >> 网站架设 >> HTML/CSS >> DHTML打造PictureSpelling

DHTML打造PictureSpelling

添加时间: 2005-6-9 4:59:27  作者: 网络收集  阅读次数:73   来源: http://d9soft.com

             firstChild.src = Pic_list[Pic_cur].pic;
     firstChild.style.pixelLeft = - j * the_width;
     firstChild.style.pixelTop  = - i * the_height;
     Pic_clip_all[i][j].flip_idx = 0;
     if(flip.checked) {
      var rnd = GetRndNum(0,7);
      if(rnd<4) {
       style.filter=Flip_list[rnd];
       Pic_clip_all[i][j].flip_idx = rnd;
      }
     }
    } else {
     onmousedown = function(e){
        if(e.target.parentNode.snap=='yes')return;
        e.target.parentNode.style.zIndex = Zidx++;
        Layer_cur = e.target.parentNode;
        if(Layer_cur.snap=="yes") return;
        pX=e.clientX-Layer_cur.offsetLeft;
        pY=e.clientY-Layer_cur.offsetTop;
         };
    }
   }
   document.body.appendChild(Pic_clip_all[i][j]);
   if(ns) {
    with(Pic_clip_all[i][j].firstChild) {
     src  = Pic_list[Pic_cur].pic;
     style.left = - j * the_width;
     style.top = - i * the_height;
     style.position = "relative";
    }
   }
  }
 }
 document.getElementById("Board").innerHTML = "";
 BuildTbl(document.getElementById("Board"));
 return;
}
function BuildTbl(obj) {
 var the_Tbl = document.createElement("table");
 the_Tbl.id  = "Spl_Board";
 the_Tbl.border = 1;
 the_Tbl.style.cssText = "padding:0px; border-collapse:collapse;background-color:#000000";
 if(document.getElementById("zoom").checked) {
  the_Tbl.style.width  = Math.floor(Zwidth *(Zrate>1?1:Zrate));
  the_Tbl.style.height = Math.floor(Zheight/(Zrate>1?Zrate:1));
 } else {
  the_Tbl.style.width  = Pic_list[Pic_cur].width;
  the_Tbl.style.height = Pic_list[Pic_cur].height;
 }
 for(var i=0; i<Clips; i++) {
  var the_row = the_Tbl.insertRow(i);
  for(var j=0; j<Clips; j++) {
   var the_cell = the_row.insertCell(j);
   the_cell.style.width = the_width;
   the_cell.style.height = the_height;
   the_cell.mark  = "clip_" + i + "_" + j;
  }
 }
 obj.appendChild(the_Tbl);
 return;
}
function PicAdd(the_pic, pic_width, pic_height) {
 the_pic = the_pic.replace(/\\/g,"/");
 if(!ie) the_pic = "file:///" + the_pic;
 Pic_list[n] = new PicItem(the_pic, pic_width, pic_height);
 var the_Sel = document.getElementById("sel").lastChild;
 the_Sel.options[the_Sel.options.length] = new Option(Pic_list[n].pic.replace(/^(.*)?\/([^\/]*)$/,"$2"));
 the_Sel.selectedIndex = Pic_cur = n++;
 PicChg();
}
function PicChg() {
 var the_img = "<img ";
 the_img += "src='"+Pic_list[Pic_cur].pic+"' ";
 Zrate  = (Pic_list[Pic_cur].width/Pic_list[Pic_cur].height) / (4/3);
 if( Zrate > 1 ) {
  the_img += "width='100%' ";
 } else {
  the_img += "height='100%' ";
 }
 the_img += "/>";
 document.getElementById("show").innerHTML = the_img;
}
function PicSel(obj) {
 var the_Sel = document.createElement("select");
 the_Sel.id  = "Pic_Sel";
 for(var i=0; i<n; i++) {
  the_Sel.options[i] = new Option(Pic_list[i].pic.replace(/^(.*)?\/([^\/]*)$/,"$2"));
 }
 the_Sel.onchange = new Function("Pic_cur=this.selectedIndex;PicChg()");
 obj.appendChild(the_Sel);
 return;
}
function ModeSel(obj) {
 var the_Sel = document.createElement("select");
 the_Sel.id  = "Mode_Sel";
 for(var i=3; i<=6; i++) {
  the_Sel.options[i-3] = new Option(i + " * " +i);
 }
 the_Sel.onchange = new Function("Clips=this.selectedIndex+3");
 obj.appendChild(the_Sel);
 return;
}
function get_Pos(the_obj){
 the_top  = the_obj.offsetTop - document.body.scrollTop;
 the_left = the_obj.offsetLeft - document.body.scrollLeft;
 the_obj  = the_obj.offsetParent;
 while(the_obj){
  the_top  += the_obj.offsetTop;
  the_left += the_obj.offsetLeft;
  the_obj   = the_obj.offsetParent;

DHTML打造PictureSpelling(2) 第 [1] [2] [3] [4]  下一页

 

上下文章:

 

上一篇文章: 事件触发列表与解说 下一篇文章: 鼠标实现图片的渐有渐无

相关文章:

  • 用Photoshop打造性感美女素描线稿
  • PS教程:打造都市颓废风格海报
  • 据国外媒体报道!微软全力打造Windows 7 蓄势待发
  • 占用0%资源 HOST文件打造迷你
  • Photoshop打造古典风格的MM肖像画

相关软件:

  • DHTML Menu Builder V4.20.015
  • ASP与DHTML资料集锦(WDL)

 

快速导航

  • 网络学院
  • 精品汇聚
  • 字体下载
  • 教程下载
  • ASP源码
  • PHP源码
  • Net源码
  • JSP 源码

网站架设分类导航

  • DreamWeaver
  • HTML/CSS
  • Flash
  • Firework
  • FrontPage
  • 建站指南

本类经典文章推荐

  • 用CSS控制IE下中英文字体显示对齐
  • 总结:CSS在IE与Firefox下的兼容性
  • 经典:CSS应用常见问题大总结
  • 网站设计的标准时代
  • 用层模拟下拉列表框
  • 苏沈小雨样式表中文手册系列
  • 用CSS控制网页总体风格
  • WEB界面设计五种特征
  • 深入透析样式表滤镜(上)
  • HTML的基本元素

HTML/CSS阅读排行

  • 用层模拟下拉列表框
  • 突破网页文字无法复制局限
  • 流程图软件Visio作“高难度”网页
  • 图片模糊转清晰
  • 苏沈小雨样式表中文手册系列
  • WEB界面设计五种特征
  • 用CSS控制网页总体风格
  • 制作精美圆角表格两种方法
  • 网页制作小工具大全(中)
  • CSS属性列表

网站架设阅读总排行

  • 用层模拟下拉列表框
  • 教你如何用Dreamweaver制作电子相...
  • 如何设计首页???(解答)
  • 突破网页文字无法复制局限
  • 用Dreamweaver插件制作动态下拉菜...
  • Dreamweaver基础技巧-布局阶段
  • 动态QQ表情DIY Fireworks轻松搞定
  • 流程图软件Visio作“高难度”网页
  • 站点-网页布局设计基础
  • 网页制作隐藏对象巧利用

广告位置

字母检索 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 回到顶部

关于我们 | 版权声明 | 免责条款 | 广告联系 | 软件发布 | 下载帮助 | 下载排行 | 网站地图 | 特别鸣谢 | 友情连接

copyright; 2005-2008 D9soft.com 第九软件网 版权所有