2 utilisateurs anonymes et 7 utilisateurs inconnus

 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Probleme javascript...

n°4461
Dr0xX3rZ
Posté le 22-11-2004 à 00:06:56  profilanswer
 

Bonjour... je ne m'y connais pas du tout en programmation premièrement.
 
Pour ma guilde de World of Warcraft, j'ai un forum.
 
J'aimerais faire comme sur le forum de WoW: Indiqué le level de chaque personnage. Pour ce faire j'utilise Thottbot (www.thottbot.com) Ce programme s'ajoute au jeu et envoi des informations au site web et cré une  base de donné sur les personnage.
 
Par exemple: http://www.thottbot.com/?profile=Digan.Test_22
 
Sur le site de Thottbot, il dise que l'on peut ajouter le tableau a notre site web en mettant le liens suivant:
 

Code :
  1. <SCRIPT language="JavaScript1.2" src="http://www.thottbot.com/?eprofile=Digan.Test_22" type="text/javascript"></SCRIPT>


 
Seulement, ce code affiche tout le tableau et je désire seulement avoir le level du personnage...
 
Sur un autre site on ma donc dit qu'il fallait que je trouve le truc dans le fichier java qui annonce le level.. mais je ne m'y connais absolument pas en programmation et tout ce codage c'est du chinois pour moi...
 
donc voici le code de wow.js:
 

Code :
  1. function show(id) {
  2.   if(document.getElementById) {
  3.     document.getElementById(id).style.display="";
  4.   }
  5. }
  6. function hide(id) {
  7.   if(document.getElementById) {
  8.     document.getElementById(id).style.display="none";
  9.   }
  10. }
  11. function toggle(id) {
  12.   if(document.getElementById) {
  13.     target = document.getElementById(id);
  14.     if(target.style.display == "none" ) {
  15.       target.style.display = "";
  16.     } else {
  17.       target.style.display = "none";
  18.     }
  19.   }
  20. }
  21. function tt(t,voffset,toffset) {
  22.   if(!voffset) {
  23.     voffset = -80;
  24.   }
  25.   if(!toffset) {
  26.     toffset = 30;
  27.   }
  28.   stm(["",t],["white","","","","",,"black","","","","",,,,,"",,,,,,"",1,,toffset,voffset]);
  29. }
  30. function ttl(t,voffset) {
  31.   tt(t,voffset,-280);
  32. }
  33. function ctt() {
  34.   htm();
  35. }
  36. <!--
  37. /*
  38. Pleas leave this notice.
  39. DHTML tip message version 1.5.4 copyright Essam Gamal 2003  
  40. Home Page: (http://migoicons.tripod.com)
  41. Email: (migoicons@hotmail.com)
  42. Updated on :7/30/2003
  43. Modified by Thott
  44. */
  45. var MI_IE=MI_IE4=MI_NN4=MI_ONN=MI_NN=MI_pSub=MI_sNav=0;mig_dNav()
  46. var Style=[],Text=[],Count=0,move=0,fl=0,isOK=1,hs,e_d,tb,w=window,PX=(MI_pSub)?"px":""
  47. var d_r=(MI_IE&&document.compatMode=="CSS1Compat" )? "document.documentElement":"document.body"
  48. var ww=w.innerWidth
  49. var wh=w.innerHeight
  50. var sbw=MI_ONN? 15:0
  51. function mig_hand(){
  52. if(MI_sNav){
  53. w.onresize=mig_re
  54. document.onmousemove=mig_mo
  55. if(MI_NN4) document.captureEvents(Event.MOUSEMOVE)
  56. }}
  57. function mig_dNav(){
  58. var ua=navigator.userAgent.toLowerCase()
  59. MI_pSub=navigator.productSub
  60. MI_OPR=ua.indexOf("opera" )>-1?parseInt(ua.substring(ua.indexOf("opera" )+6,ua.length)):0
  61. MI_IE=document.all&&!MI_OPR?parseFloat(ua.substring(ua.indexOf("msie" )+5,ua.length)):0
  62. MI_IE4=parseInt(MI_IE)==4
  63. MI_NN4=navigator.appName.toLowerCase()=="netscape"&&!document.getElementById
  64. MI_NN=MI_NN4||document.getElementById&&!document.all
  65. MI_ONN=MI_NN4||MI_pSub<20020823
  66. MI_sNav=MI_NN||MI_IE||MI_OPR>=7
  67. }
  68. function mig_cssf(){
  69. if(MI_IE>=5.5&&FiltersEnabled){fl=1
  70. var d=" progid:DXImageTransform.Microsoft."
  71. mig_layCss().filter="revealTrans()"+d+"Fade(Overlap=1.00 enabled=0)"+d+"Inset(enabled=0)"+d+"Iris(irisstyle=PLUS,motion=in enabled=0)"+d+"Iris(irisstyle=PLUS,motion=out enabled=0)"+d+"Iris(irisstyle=DIAMOND,motion=in enabled=0)"+d+"Iris(irisstyle=DIAMOND,motion=out enabled=0)"+d+"Iris(irisstyle=CROSS,motion=in enabled=0)"+d+"Iris(irisstyle=CROSS,motion=out enabled=0)"+d+"Iris(irisstyle=STAR,motion=in enabled=0)"+d+"Iris(irisstyle=STAR,motion=out enabled=0)"+d+"RadialWipe(wipestyle=CLOCK enabled=0)"+d+"RadialWipe(wipestyle=WEDGE enabled=0)"+d+"RadialWipe(wipestyle=RADIAL enabled=0)"+d+"Pixelate(MaxSquare=35,enabled=0)"+d+"Slide(slidestyle=HIDE,Bands=25 enabled=0)"+d+"Slide(slidestyle=PUSH,Bands=25 enabled=0)"+d+"Slide(slidestyle=SWAP,Bands=25 enabled=0)"+d+"Spiral(GridSizeX=16,GridSizeY=16 enabled=0)"+d+"Stretch(stretchstyle=HIDE enabled=0)"+d+"Stretch(stretchstyle=PUSH enabled=0)"+d+"Stretch(stretchstyle=SPIN enabled=0)"+d+"Wheel(spokes=16 enabled=0)"+d+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=forward enabled=0)"+d+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=reverse enabled=0)"+d+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=forward enabled=0)"+d+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=reverse enabled=0)"+d+"Zigzag(GridSizeX=8,GridSizeY=8 enabled=0)"+d+"Alpha(enabled=0)"+d+"Dropshadow(OffX=3,OffY=3,Positive=true,enabled=0)"+d+"Shadow(strength=3,direction=135,enabled=0)"
  72. }}
  73. function stm(t,s){
  74. if(MI_sNav&&isOK){
  75. if(document.onmousemove!=mig_mo||w.onresize!=mig_re) mig_hand()
  76. if(fl&&s[17]>-1&&s[18]>0)mig_layCss().visibility="hidden"
  77. var ab="";var ap=""
  78. var titCol=s[0]?"COLOR='"+s[0]+"'":""
  79. var titBgCol=s[1]&&!s[2]?"BGCOLOR='"+s[1]+"'":""
  80. var titBgImg=s[2]?"BACKGROUND='"+s[2]+"'":""
  81. var titTxtAli=s[3]?"ALIGN='"+s[3]+"'":""
  82. var txtCol=s[6]?"COLOR='"+s[6]+"'":""
  83. var txtBgCol=s[7]&&!s[8]?"BGCOLOR='"+s[7]+"'":""
  84. var txtBgImg=s[8]?"BACKGROUND='"+s[8]+"'":""
  85. var txtTxtAli=s[9]?"ALIGN='"+s[9]+"'":""
  86. var tipHeight=s[13]? "HEIGHT='"+s[13]+"'":""
  87. var brdCol=s[15]? "BGCOLOR='"+s[15]+"'":""
  88. if(!s[4])s[4]="Verdana,Arial,Helvetica"
  89. if(!s[5])s[5]=1
  90. if(!s[10])s[10]="Verdana,Arial,Helvetica"
  91. if(!s[11])s[11]=1
  92. if(!s[12])s[12]=200
  93. if(!s[14])s[14]=0
  94. if(!s[16])s[16]=0
  95. if(!s[24])s[24]=10
  96. if(!s[25])s[25]=10
  97. hs=s[22]
  98. if(MI_pSub==20001108){
  99. if(s[14])ab="STYLE='border:"+s[14]+"px solid"+" "+s[15]+"'";
  100. ap="STYLE='padding:"+s[16]+"px "+s[16]+"px "+s[16]+"px "+s[16]+"px'"}
  101. var closeLink=hs==3?"<TD ALIGN='right'><FONT SIZE='"+s[5]+"' FACE='"+s[4]+"'><A HREF='javascript:void(0)' ONCLICK='mig_hide(0)' STYLE='text-decoration:none;color:"+s[0]+"'><B>Close</B></A></FONT></TD>":""
  102. var title=t[0]||hs==3?"<TABLE WIDTH='100%' BORDER='0' CELLPADDING='0' CELLSPACING='0' "+titBgCol+" "+titBgImg+"><TR><TD "+titTxtAli+"><FONT SIZE='"+s[5]+"' FACE='"+s[4]+"' "+titCol+"><B>"+t[0]+"</B></FONT></TD>"+closeLink+"</TR></TABLE>":"";
  103. var txt="<TABLE "+ab+" WIDTH='"+s[12]+"' BORDER='0' CELLSPACING='0' CELLPADDING='"+s[14]+"' "+brdCol+"><TR><TD>"+title+"<TABLE WIDTH='100%' "+tipHeight+" BORDER='0' CELLPADDING='"+s[16]+"' CELLSPACING='0' "+txtBgCol+" "+txtBgImg+"><TR><TD "+txtTxtAli+" "+ap+" VALIGN='top'><FONT SIZE='"+s[11]+"' FACE='"+s[10]+"' "+txtCol +">"+t[1]+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"
  104. mig_wlay(txt)
  105. tb={trans:s[17],dur:s[18],opac:s[19],st:s[20],sc:s[21],pos:s[23],xpos:s[24],ypos:s[25]}
  106. if(MI_IE4)mig_layCss().width=s[12]
  107. e_d=mig_ed()
  108. Count=0
  109. move=1
  110. }}
  111. function mig_mo(e){
  112. if(move){
  113. var X=0,Y=0,s_d=mig_scd(),w_d=mig_wd()
  114. var mx=MI_NN?e.pageX:MI_IE4?event.x:event.x+s_d[0]
  115. var my=MI_NN?e.pageY:MI_IE4?event.y:event.y+s_d[1]
  116. if(MI_IE4)e_d=mig_ed()
  117. switch(tb.pos){
  118. case 1:X=mx-e_d[0]-tb.xpos+6;Y=my+tb.ypos;break
  119. case 2:X=mx-(e_d[0]/2);Y=my+tb.ypos;break
  120. case 3:X=tb.xpos+s_d[0];Y=tb.ypos+s_d[1];break
  121. case 4:X=tb.xpos;Y=tb.ypos;break
  122. default:X=mx+tb.xpos;Y=my+tb.ypos}
  123. if(w_d[0]+s_d[0]<e_d[0]+X+sbw)X=w_d[0]+s_d[0]-e_d[0]-sbw
  124. if(w_d[1]+s_d[1]<e_d[1]+Y+sbw){if(tb.pos>2)Y=w_d[1]+s_d[1]-e_d[1]-sbw;else Y=my-e_d[1]}
  125. if(X<s_d[0])X=s_d[0]
  126. with(mig_layCss()){left=X+PX;top=Y+PX}
  127. mig_dis()
  128. }}
  129. function mig_dis(){Count++
  130. if(Count==1){
  131. if(fl){
  132. if(tb.trans==51)tb.trans=parseInt(Math.random()*50)
  133. var at=tb.trans>-1&&tb.trans<24&&tb.dur>0
  134. var af=tb.trans>23&&tb.trans<51&&tb.dur>0
  135. var t=mig_lay().filters[af?tb.trans-23:0]
  136. for(var p=28;p<31;p++){mig_lay().filters[p].enabled=0}
  137. for(var s=0;s<28;s++){if(mig_lay().filters[s].status)mig_lay().filters[s].stop()}
  138. for(var e=1;e<3;e++){if(tb.sc&&tb.st==e){with(mig_lay().filters[28+e]){enabled=1;color=tb.sc}}}
  139. if(tb.opac>0&&tb.opac<100){with(mig_lay().filters[28]){enabled=1;opacity=tb.opac}}
  140. if(at||af){if(at)mig_lay().filters[0].transition=tb.trans;t.duration=tb.dur;t.apply()}}
  141. mig_layCss().visibility=MI_NN4?"show":"visible"
  142. if(fl&&(at||af))t.play()
  143. if(hs>0&&hs<4)move=0
  144. }}
  145. function mig_layCss(){return MI_NN4?mig_lay():mig_lay().style}
  146. function mig_lay(){with(document)return MI_NN4?layers[TipId]:MI_IE4?all[TipId]:getElementById(TipId)}
  147. function mig_wlay(txt){if(MI_NN4){with(mig_lay().document){open();write(txt);close()}}else mig_lay().innerHTML=txt}
  148. function mig_hide(C){if(!MI_NN4||MI_NN4&&C)mig_wlay("" );with(mig_layCss()){visibility=MI_NN4?"hide":"hidden";left=0;top=-800}}
  149. function mig_scd(){return [parseInt(MI_IE?eval(d_r).scrollLeft:w.pageXOffset),parseInt(MI_IE?eval(d_r).scrollTop:w.pageYOffset)]}
  150. function mig_re(){var w_d=mig_wd();if(MI_NN4&&(w_d[0]-ww||w_d[1]-wh))location.reload();else if(hs==3||hs==2) mig_hide(1)}
  151. function mig_wd(){return [parseInt(MI_ONN?w.innerWidth:eval(d_r).clientWidth),parseInt(MI_ONN?w.innerHeight:eval(d_r).clientHeight)]}
  152. function mig_ed(){return [parseInt(MI_NN4?mig_lay().clip.width:mig_lay().offsetWidth)+3,parseInt(MI_NN4?mig_lay().clip.height:mig_lay().offsetHeight)+5]}
  153. function htm(){if(MI_sNav&&isOK){if(hs!=4){move=0;if(hs!=3&&hs!=2){mig_hide(1)}}}}
  154. function mig_clay(){
  155. if(!mig_lay()){isOK=0 
  156. alert("DHTML TIP MESSAGE VERSION 1.5 ERROR NOTICE.\n<DIV ID=\""+TipId+"\"></DIV> tag missing or its ID has been altered" )}
  157. else{mig_hand();mig_cssf()}}
  158. //-->


 
Je ne vois absolument rien la dedans qui pourrais m'indiquer comment retrouver le level...
 
Quelqu'un peut t'il m'aider s'il vous plait?  :sweat:


Message édité par Dr0xX3rZ le 22-11-2004 à 00:46:26
mood
Google
Posté le 22-11-2004 à 00:06:56  profilanswer
 

n°4462
CryoGen
Powered by kitkat©
Posté le 22-11-2004 à 00:29:18  profilanswer
 

Deja c'est du javascript (ou jscript) mais pas du java ^^


---------------
I am the bone of my sword...
n°4466
Dr0xX3rZ
Posté le 22-11-2004 à 00:46:06  profilanswer
 

oups, wala je voulais dire javascript mais jai abrégé  :heink:

n°4467
Deadog
Dain Bramaged
Posté le 22-11-2004 à 00:48:37  profilanswer
 

bah faut pas, le java c'est autre chose :d

n°4468
Dr0xX3rZ
Posté le 22-11-2004 à 00:53:15  profilanswer
 

Je sais :(

mood
Google
Posté le 22-11-2004 à 00:53:15  profilanswer
 


Aller à :
Ajouter une réponse
 

Hit Parade