首页 | English | 繁体版
- 关于晨龙
- 新闻中心
- 产品中心
- 营销中心
- 生产中心
- 客户服务
- 人力资源
- 联系我们
/** 多表格样式的js,切换表格的同时变换标题样式。
传入表格id,表格id命名规则为table加两位数字,命名从01开始。
标题id命名规则为title加两位数字,并且和表格id最后两位对应。
样式命名规则为最后两位必须为数字。扩展在else if 语句里面增加。
表格最大数默认为10个,可以在页面覆盖全局变量tablenumber。
*/
var tablenumber=’10’;//表格最大数
var objtemp = ’’;
var obj = ’’;
var titleobj = ’’;
function titleselect(tablename){
var tableid=document.getElementById(tablename).id;//读取传入表格的id
tableidstr=tableid.replace(/(.+)(.{2})/,"$2");//取读取到的id的最后两位
var tableidtemp = Number(tableidstr);//转换成数字,在下面for循环里面使用
tablenumber = Number(tablenumber);//表格最大数,转换成数字,在下面for循环里面使用
for(i=1;i<=tablenumber;i++){
if(i<10){//小于十的id为table0加i(命名从01开始)
objtemp = ’table0’+i;
obj=document.getElementById(objtemp);//获得循环中当前表格的id,下面隐藏表格用
var noselecttitleid = ’title0’+i;
titleobj = document.getElementById(noselecttitleid);//获得循环中当前标题的id,下面变换标题样式用
var classname = document.getElementById(noselecttitleid).className;//获得循环中当前标题的id的样式,判断样式的类型
titlenamestr=classname.replace(/(.+)(.{2})/,"$2");//取样式的最后两位
var titlenametemp = Number(titlenamestr);//转换成数字
if(titlenametemp==57){//比较是否是三个字的类型
//如果是三个字的类型则把标题变换成没有选中的三个字的类型(不管当前是否选中,选中的在下面会变回来),以下同理
titleobj.className="noselect_57";
}else if(titlenametemp==70){
titleobj.className="noselect_70";
}else if(titlenametemp==83){
titleobj.className="noselect_83";
}
else if(titlenametemp==93){
titleobj.className="noselect_93";
}
}else{//大于十id为table加i
objtemp = ’table’+i;
obj=document.getElementById(objtemp);
noselecttitleid = ’title0’+i;
titleobj = document.getElementById(noselecttitleid);
classname = document.getElementById(noselecttitleid).className;
titlenamestr=classname.replace(/(.+)(.{2})/,"$2");
titlenametemp = Number(titlenamestr);
if(titlenametemp==57){
titleobj.className="noselect_57";
}else if(titlenametemp==70){
titleobj.className="noselect_70";
}else if(titlenametemp==83){
titleobj.className="noselect_83";
}
else if(titlenametemp==93){
titleobj.className="noselect_93";
}
}
//不是选中表格则隐藏
obj.style.display="none";
//通过传入id最后两位判断选中表格
if(i==tableidtemp){
obj=document.getElementById(tablename);//直接读取传入的id并显示对应表格
obj.style.display="";
//获取标题样式并判断标题类型然后把样式变成选中的样式
if(i<10){//小于十的id为title0加i(命名从01开始)
var selecttitleid = ’title0’+i;
titleobj = document.getElementById(selecttitleid);
classname = document.getElementById(selecttitleid).className;
titlenamestr=classname.replace(/(.+)(.{2})/,"$2");
titlenametemp = Number(titlenamestr);
if(titlenametemp==57){
titleobj.className="select_57";
}else if(titlenametemp==70){
titleobj.className="select_70";
}else if(titlenametemp==83){
titleobj.className="select_83";
}
else if(titlenametemp==93){
titleobj.className="select_93";
}
}else{//大于十id为title加i
selecttitleid = ’title’+i;
titleobj = document.getElementById(selecttitleid);
classname = document.getElementById(selecttitleid).className;
titlenamestr=classname.replace(/(.+)(.{2})/,"$2");
titlenametemp = Number(titlenamestr);
if(titlenametemp==57){
titleobj.className="select_57";
}else if(titlenametemp==70){
titleobj.className="select_70";
}else if(titlenametemp==83){
titleobj.className="select_83";
}
else if(titlenametemp==93){
titleobj.className="select_93";
}
}
}
}
}
晨龙锯床首页 > 产品中心 > 产品详情
/*********************************************
功能: 通用DIV切换函数
参数: divID --当前DIV的ID号;divName --要改变的这一组DIV的命名前缀;zDivCount --这一组DIV的个数-1
*********************************************/
function ChangeDiv(divId,divName,zDivCount)
{
for(i=0;i<=zDivCount;i++)
{
document.getElementById(divName+i).style.display="none";
}
document.getElementById(divName+divId).style.display="block";
}
|
产品名称: G4230-50 |
最大锯削范围(mm):φ300 方料500W×300H 切削线速度(m/min): 25/36/47/58/80 锯带规格(长x宽x厚)(mm):34×1.1×3860 工作夹紧方式:液压虎钳 综合切削精度(mm):±0.20 主电机功率(kw): 3(4P) 液压电机:0.75 冷却泵:0.075 主传动结构:蜗轮传动 锯条张紧方式:手动 送料方式:辅助锟道 工作台高度:620 外形尺寸(mm):1970×1320×1570
| | |
| | |