作者共發了2篇帖子。
【备份】insertBiaoqing.js
1樓 巨大八爪鱼 2010-9-21 21:25

var bqn=Array();
bqn[0]="Kiss,Love,Yeah,啊!,背扭,顶,抖胸,88,汗,瞌睡,鲁拉,拍砖,揉脸,生日快乐,大笑,瀑布汗~,惊讶,臭美,傻笑,抛媚眼,发怒,打酱油,俯卧撑,气愤,囧,吻,怒,胜利,HI,KISS,不说,不要,扯花,大心,顶,大惊,飞吻,鬼脸,害羞,口水,狂哭,来,发财了,吃西瓜,套牢,害羞,庆祝,我来了,敲打,晕了,胜利,臭美,被打了,贪吃,迎接,酷,,,,,,,,,,,,,,,开心,偷笑,大哭,滴汗,叹气,超赞,囧囧,飞吻,天使,撒花,生气,被砸,吓傻,随意吐";
bqn[1]="Kiss,Love,Yeah,啊!,背扭,顶,抖胸,88,汗,瞌睡,鲁拉,拍砖,揉脸,生日快乐,摊手,睡觉,瘫坐,无聊,星星闪,旋转,也不行,郁闷,正Music,抓墙,撞墙至死,歪头,戳眼,飘过,互相拍砖,砍死你,扔桌子,少林寺,什么?,转头,我爱牛奶,我踢,摇晃,晕厥,在笼子里,震荡";
bqn[2]="大笑,瀑布汗~,惊讶,臭美,傻笑,抛媚眼,发怒,打酱油,俯卧撑,气愤,囧,吻,怒,胜利,委屈,受伤,说啥呢?,闭嘴,不,逗你玩儿,飞吻,眩晕,魔法,我来了,睡了,我打,闭嘴,打,打晕了,刷牙,爆揍,炸弹,倒立,刮胡子,邪恶的笑,不要不要,爱恋中,放大仔细看,偷窥,超高兴,晕,松口气,我跑,享受,修养,哭,汗,啊~,热烈欢迎,打酱油,俯卧撑,囧";
bqn[3]="HI,KISS,不说,不要,扯花,大心,顶,大惊,飞吻,鬼脸,害羞,口水,狂哭,来,泪眼,流泪,生气,吐舌,喜欢,旋转,再见,抓狂,汗,鄙视,拜,吐血,嘘,打人,蹦跳,变脸,扯肉,吃To,吃花,吹泡泡糖,大变身,飞天舞,回眸,可怜,猛抽,泡泡,苹果,亲,,骚舞,烧香,睡,套娃娃,捅捅,舞倒,西红柿,爱慕,摇,摇摆,杂耍,招财,被殴,被球闷,大惊,理想,殴打,呕吐,碎,吐痰";
bqn[4]="发财了,吃西瓜,套牢,害羞,庆祝,我来了,敲打,晕了,胜利,臭美,被打了,贪吃,迎接,酷,顶,幸运,爱心,躲,送花,选择";
bqn[5]=",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,";
bqn[6]="男兜,女兜,开心,乖乖,偷笑,大笑,抽泣,大哭,无奈,滴汗,叹气,狂晕,委屈,超赞,囧囧,疑问,飞吻,天使,撒花,生气,被砸,口水,泪奔,吓傻,吐舌头,点头,随意吐,旋转,困困,鄙视,狂顶,篮球,再见,欢迎光临,恭喜发财,稍等,我在线,恕不议价,库房有货,货在路上";
bqn[7]="微笑,撇嘴,色,发呆,得意,流泪,害羞,闭嘴,睡,大哭,尴尬,发怒,调皮,呲牙,惊讶,难过,酷,冷汗,抓狂,吐,偷笑,可爱,傲慢,白眼,饥饿,困,惊恐,流汗,憨笑,大兵,奋斗,咒骂,疑问,嘘...,晕,折磨,衰,骷髅,敲打,再见,擦汗,抠鼻,鼓掌,糗大了,坏笑,左哼哼,右哼哼,哈欠,鄙视,委屈,快哭了,阴险,亲亲,吓,可怜,菜刀,西瓜,啤酒,篮球,乒乓,咖啡,饭,猪头,玫瑰,凋谢,示爱,爱心,心碎,蛋糕,闪电,炸弹,刀,足球,瓢虫,便便,月亮,太阳,礼物,拥抱,强,弱,握手,胜利,抱拳,勾引,拳头,差劲,爱你,NO,OK,爱情,飞吻,跳跳,发抖,怄火,转圈,磕头,回头,跳绳,挥手,激动,街舞,献吻,左太极,右太极";


for (i=0;i<bqn.length;i++){
 bqn[i]=bqn[i].split(',');
}
var sx=7; //每排显示七个

var image_url=Array();
image_url[1]='../Images/Biaoqing/jx/j_00';
image_url[2]='../Images/Biaoqing/tsj/t_00';
image_url[3]='../Images/Biaoqing/ldw/w_00';
image_url[4]='../Images/Biaoqing/bobo/B_00';
image_url[5]='../Images/Biaoqing/babycat/C_00';
image_url[6]='../Images/Biaoqing/face/i_f';
image_url[7]='../Images/Biaoqing/youa/y_00';
image_url[8]='../Images/Biaoqing/qq/';

var image_url_small=Array();
image_url_small[1]='../Images/Biaoqing/jx/small/j_00';
image_url_small[2]='../Images/Biaoqing/tsj/small/t_00';
image_url_small[3]='../Images/Biaoqing/ldw/small/w_00';
image_url_small[4]='../Images/Biaoqing/bobo/small/B_00';

var image_smalld=Array();
image_smalld[1]='Images/Biaoqing/jx/small/j_00';
image_smalld[2]='Images/Biaoqing/tsj/small/t_00';
image_smalld[3]='Images/Biaoqing/ldw/small/w_00';
image_smalld[4]='Images/Biaoqing/bobo/small/B_00';

var image_urld=Array();
image_urld[1]='Images/Biaoqing/jx/j_00';
image_urld[2]='Images/Biaoqing/tsj/t_00';
image_urld[3]='Images/Biaoqing/ldw/w_00';
image_urld[4]='Images/Biaoqing/bobo/B_00';
image_urld[5]='Images/Biaoqing/babycat/C_00';
image_urld[6]='Images/Biaoqing/face/i_f';
image_urld[7]='Images/Biaoqing/youa/y_00';
image_urld[8]='Images/Biaoqing/qq/';

var image_url_default=Array();
image_url_default[1]='../Images/Biaoqing/jx/default/j_00';
image_url_default[2]='../Images/Biaoqing/tsj/default/t_00';
image_url_default[3]='../Images/Biaoqing/ldw/default/w_00';
image_url_default[4]='../Images/Biaoqing/bobo/default/B_00';
image_url_default[5]='../Images/Biaoqing/babycat/default/C_00';
image_url_default[6]='../Images/Biaoqing/face/i_f';
image_url_default[7]='../Images/Biaoqing/youa/default/y_00';
image_url_default[8]='../Images/Biaoqing/qq/default/';

function lable_update(jid){
 var id,sd,rd,sdd,alt;
 lable_open(jid);
 var str='<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#B8B3FF">';
 for (i=0;i<Math.ceil((bqn[jid-1].length)/sx);i++){
  str+='<tr bgcolor="#FFFFFF" align="center" valign="middle">';
  for (j=0;j<sx;j++){
   str+='<td height="31">';
   id=i*sx+j+1;
   sd=(jid==6)?'.gif':'.jpg';
   sd=(jid==8)?'.png':sd;
   sdd=(j<4)?2:1;
   alt=bqn[jid-1][id-1];
   if (alt!=undefined){
    str+='<img class="hand" src="';
    if (id<10) str+=image_url_default[jid]+'0'+id+sd
    else str+=image_url_default[jid]+id+sd;
    if (Math.ceil((bqn[jid-1].length)/sx)>6) rd=Array(43,38)
    else rd=Array(46,33);
    str+='" onload="if (this.height>'+rd[2]+') this.height='+rd[2]+';if (this.width>'+rd[1]+') this.width='+rd[1]+'" onmouseover="picture_show('+sdd+','+jid+','+id+')" onmouseout="picture_show(3,'+jid+','+id+')" title="'+alt+'" onclick="biaoqing_selected('+jid+','+id+')" />';
   }str+='</td>';
  }
  str+='</tr>';
 }
 str+='</table>';
 $_DOM('insertbiaoqing_base').innerHTML=str;
}
function lable_open(key){
 for (i=0;i<(image_url.length-1);i++){
  if (key-1==i){
   $_DOM('label'+(i+1)).className='insertbiaoqing_lableselected';
  }else{
   $_DOM('label'+(i+1)).className='insertbiaoqing_lable';
  }
 }
 if (key>4){
  $_DOM('radioed').style.color="#C0BFB5";
  $_DOM('radioed2').style.color="#C0BFB5";
  document.form1.radio[0].disabled=true;
  document.form1.radio[1].disabled=true;
 }else{
  $_DOM('radioed').style.color="#000000";
  $_DOM('radioed2').style.color="#000000";
  document.form1.radio[0].disabled=false;
  document.form1.radio[1].disabled=false;
 }
}
function picture_show(fx,fy,fz){
 var fw=(document.form1.radio[1].checked==true && fy<5)?image_url_small[fy]:image_url[fy];
 if (fz<10) fw+='0'+fz+'.gif'
 else fw+=fz+'.gif';
 $_DOM('biaoqing_showdiv').innerHTML='<img id="showingpicture" src="'+fw+'" />';
 if (fy==7){
  $_DOM('biaoqing_showdiv').style.width=120;
  $_DOM('biaoqing_showdiv').style.height=80;
 }else{
  var st=(document.form1.radio[1].checked==true && fy<5)?52:60;
  $_DOM('biaoqing_showdiv').style.width=st;
  $_DOM('biaoqing_showdiv').style.height=st;
 }
 if (fx==1){
  //右
  $_DOM('biaoqing_showdiv').className='biaoqing_showdiv';
  $_DOM('biaoqing_showdiv').style.display='';
 }else if (fx==2){
  //左
  $_DOM('biaoqing_showdiv').className='biaoqing_showdiv2';
  $_DOM('biaoqing_showdiv').style.display='';
 }else{
  $_DOM('biaoqing_showdiv').style.display='none';
 }
}
function biaoqing_selected(fy,fz){
 try{
  var fw=(document.form1.radio[1].checked==true && fy<5)?image_smalld[fy]:image_urld[fy];
  if (fz<10) fw+='0'+fz+'.gif'
  else fw+=fz+'.gif';
  fw='<img src="'+fw+'" onload="if (this.height>428) this.height=428;if (this.width>570) this.width=570" />';
  top.editor_insert(fw);
  top.$_DOM('editarea_base').focus();
  diag_close();
 }catch(e){
  alert('没有找到编辑框,不能插入');
 }
}

2樓 巨大八爪鱼 2010-9-21 21:25

回復帖子

  抱歉,本吧禁止發帖
內容:
用戶名: 您目前是匿名發表
 
 
©2010-2024 Arslanbar [手機版] [桌面版]
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。