[分享]把角色狀態做得更整齊

WOG設定安裝教學

版主: 涅魂, 簫哥

頭像
Kagami
 
文章: 256
註冊時間: 2005-07-01 2:38 pm
來自: HongKong    

[分享]把角色狀態做得更整齊

文章Kagami » 2005-09-20 5:05 pm

打開wog.js
事先說明..我有部份的文眼修改了..=0=
修改後的圖片:
http://hk.geocities.com/yeskagami/wog.GIF
找:
代碼: 選擇全部
function status_view()
.........
..........
.......
}


修改成:
代碼: 選擇全部
function status_view

(p_win,p_lost,i_img,p_name,p_sex,ch_name,p_s,p_lv,p_exp,p_nextexp,p_money,p_hp,p_hpmax,p_str,p_smart,p_agl,p_life,p_au,p_be,p

_at,p_mat,p_df,p_mdf,a_name,d_name,e_name,dd_name,c_name,item_name,p_url,p_homename,s_ch_name,win_num)
{
   var view_name=parent.wog_view;
   view_name.document.write(temp_table1);
   view_name.document.write('<tr><td colspan="20"  >WIN '+p_win+' / LOST '+p_lost+'&nbsp;&nbsp;&nbsp;')
        if((p_win+p_lost)==0 || p_win==0)
   {
      view_name.document.write('         獲勝率:0')
   }else
   {
      view_name.document.write('         獲勝率:'+Math.round((p_win/(p_win+p_lost))*100)+'%');
   }
        view_name.document.write('</td></tr>');
        view_name.document.write('<tr><td width=20%>英雄檔案</td><td colspan="4" width=80%><a href="'+p_url+'"

target="_blank">'+p_homename+'</a></td></tr>')
   view_name.document.write('<tr><td   rowspan="13" ><img src="'+img+i_img+'.gif" border="0" ><br>')
   var sex="";
   (p_sex=="1")?sex="男":sex="女";
   view_name.document.write('<td width=10%>名字</td><td width=30%>'+p_name+'</td><td width=10%>性別</td><td width=30%

>'+sex+'</td></tr>')
   p_s=s_status(p_s);
   var p_strf=get_f(p_str,4500);
   var p_smartf=get_f(p_smart,4500);
   var p_aglf=get_f(p_agl,4500);
   var p_lifef=get_f(p_life,4500);
   var p_auf=get_f(p_au,4500);
   var p_bef=get_f(p_be,4500);
   var p_atf=get_f(p_at,7500);
   var p_matf=get_f(p_mat,7500);
   var p_dff=get_f(p_df,7500);
   var p_mdff=get_f(p_mdf,7500);
   
   //EXP&HPbar_Start
   var p_expf=(p_exp/p_nextexp)*100;
   if(p_expf > 1){if(p_expf < 99){p_expf=Math.round(p_expf);}else{p_expf=Math.floor(p_expf);}}else{p_expf=Math.ceil(p_expf);}
   var p_nextexpf=99-p_expf;
   var p_hpf=(p_hp/p_hpmax)*100;
   if(p_hpf > 1){if(p_hpf < 99){p_hpf=Math.round(p_hpf);}else{p_hpf=Math.floor(p_hpf);}}else{p_hpf=Math.ceil(p_hpf);}
   var p_hpmaxf=99-p_hpf;   var exp_img1="";
   var exp_img2="";
   var hp_img1="";
   var hp_img2="";
   if(p_expf >= 1)   {exp_img1='<img src="'+img+'bar/bxg.gif" width="'+p_expf+'%" height="9" title="'+p_expf+'%">';}
   if(p_nextexpf >= 1)   {exp_img2='<img src="'+img+'bar/bhg.gif" width="'+p_nextexpf+'%" height="9" title="'+p_expf+'%">';}
   if(p_hpf >= 1)   {hp_img1='<img src="'+img+'bar/bxg.gif" width="'+p_hpf+'%" height="9" title="'+p_hpf+'%">';}
   if(p_hpmaxf >= 1)   {hp_img2='<img src="'+img+'bar/bhg.gif" width="'+p_hpmaxf+'%" height="9" title="'+p_hpf+'%">';}
   //EXP&HPbar_End
   
   view_name.document.write('<tr><td  >職業</td><td >'+ch_name+'</td><td  >證明</td><td>'+((s_ch_name!='')?s_ch_name+'證

明':'')+'</td></tr>')
   view_name.document.write('<tr><td  >等級</td><td >'+p_lv+'</td><td  >屬性</td><td >'+p_s+'</td></tr>')
   view_name.document.write('<tr><td  >經驗值</td><td><span style="position:relative;top:8px">'+exp_img1+exp_img2+'<b

style="position:relative;top:-13px;">'+p_exp+'/'+p_nextexp+'</td><td  >HP</td><td><span

style="position:relative;top:8px">'+hp_img1+hp_img2+'<b style="position:relative;top:-13px;">'+p_hp+'/'+p_hpmax+'</td></tr>')
   view_name.document.write('<tr><td  >力量</td><td class="b1"><img src="'+img+'bar/bxg.gif" width="'+p_strf+'%"

height="9">'+p_str+'</td><td  >智力</td><td class="b1"><img src="'+img+'bar/bxg.gif" width="'+p_smartf+'%"

height="9">'+p_smart+'</td></tr>')
   view_name.document.write('<tr><td  >速度</td><td class="b1"><img src="'+img+'bar/bxg.gif" width="'+p_aglf+'%"

height="9">'+p_agl+'</td><td  >體質</td><td class="b1"><img src="'+img+'bar/bxg.gif" width="'+p_lifef+'%"

height="9">'+p_life+'</td></tr>')
   view_name.document.write('<tr><td  >魅力</td><td class="b1"><img src="'+img+'bar/bxg.gif" width="'+p_auf+'%"

height="9">'+p_au+'</td><td  >信仰</td><td class="b1"><img src="'+img+'bar/bxg.gif" width="'+p_bef+'%"

height="9">'+p_be+'</td></tr>')
   view_name.document.write('<tr><td  >物攻</td><td class="b1"><img src="'+img+'bar/bmg.gif" width="'+p_atf+'%"

height="9">'+p_at+'</td><td  >魔攻</td><td class="b1"><img src="'+img+'bar/bmg.gif" width="'+p_matf+'%"

height="9">'+p_mat+'</td></tr>')
   view_name.document.write('<tr><td  >物防</td><td class="b1"><img src="'+img+'bar/bmg.gif" width="'+p_dff+'%"

height="9">'+p_df+'</td><td  >魔防</td><td class="b1"><img src="'+img+'bar/bmg.gif" width="'+p_mdff+'%"

height="9">'+p_mdf+'</td></tr>')
   view_name.document.write('<tr><td  >武器</td><td >'+a_name+'</td><td  >身體</td><td >'+d_name+'</td></tr>')
   view_name.document.write('<tr><td  >手部</td><td >'+dd_name+'</td><td  >頭部</td><td >'+e_name+'</td></tr>')
   view_name.document.write('<tr><td  >腳部</td><td >'+c_name+'</td><td  >道具</td><td >'+item_name+'</td></tr>')
        view_name.document.write('<td  >金錢</td><td >'+p_money+'</td><td  >工會</td><td >'+p_group+'</td></tr>')
        if(win_num != undefined)
   {
      view_name.document.write('<tr><td  >連勝紀錄</td><td colspan="4"  >'+win_num+' 連勝中</td></tr>')   
   }
   view_name.document.write(temp_table2);
}


完成了^^"



回到 精華區

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 2 位訪客

cron