Commit 92a4bc3c1cee6eb4d25ad786c607f34c603d5da9

Authored by Edmar Moretti
1 parent 60c03785

Correção no tamanho do letriro de mensagens no IE

ferramentas/nuvemtags/index.htm
@@ -7,10 +7,8 @@ @@ -7,10 +7,8 @@
7 </style> 7 </style>
8 <title></title> 8 <title></title>
9 </head> 9 </head>
10 - <body class="yui-skin-sam" >  
11 - <div style="top:5px;left:5px;display:block;width:90%" id="resultado" >Aguarde...</div>  
12 -  
13 - 10 + <body class="yui-skin-sam;" style="overflow:auto;">
  11 + <div style="top:2px;left:5px;display:block;width:90%" id="resultado" >Aguarde...</div>
14 <script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script> 12 <script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script>
15 <script language="JavaScript" type="text/javascript" src="index.js"></script> 13 <script language="JavaScript" type="text/javascript" src="index.js"></script>
16 </body> 14 </body>
ferramentas/nuvemtags/index.js
@@ -22,17 +22,23 @@ Free Software Foundation, Inc., no endereço @@ -22,17 +22,23 @@ Free Software Foundation, Inc., no endereço
22 //inicializa 22 //inicializa
23 aguarde("block") 23 aguarde("block")
24 parametrosURL() 24 parametrosURL()
25 -  
26 -var montaNuvem = function(retorno) 25 +inicio = 0;
  26 +function montaNuvem(r)
27 { 27 {
  28 + retorno = r;
28 if(retorno.data) 29 if(retorno.data)
29 { 30 {
30 - var tags = "" 31 + var tags ="<span onmouseout='this.style.textDecoration=\"none\"' onmouseover='this.style.textDecoration=\"underline\"' onclick='javascript:inicio = inicio+2;montaNuvem(retorno);' style='cursor:pointer;vertical-align:middle;color:navy;font-size:'12'pt;'>menos</span><span>&nbsp;</span>"
  32 + tags +="<span onmouseout='this.style.textDecoration=\"none\"' onmouseover='this.style.textDecoration=\"underline\"' onclick='javascript:inicio = inicio-2;montaNuvem(retorno);' style='cursor:pointer;vertical-align:middle;color:navy;font-size:'12'pt;'>mais</span><br><br>"
  33 + if((inicio < 0) || (inicio > retorno.data.length)){return;}
31 for (i=0;i<retorno.data.length;i++) 34 for (i=0;i<retorno.data.length;i++)
32 { 35 {
33 - //eval("var h = retorno.data."+tag)  
34 - var h = retorno.data[i].temas.length*1 + 7  
35 - tags += "<span> </span> <span onmouseout='this.style.textDecoration=\"none\"' onmouseover='this.style.textDecoration=\"underline\"' onclick='procurar(this)' style='cursor:pointer;vertical-align:middle;color:rgb(98,186,192);font-size:"+h+"pt;'>"+retorno.data[i].tag+"</span" 36 + if(retorno.data[i].temas.length*1 >= inicio)
  37 + {
  38 + var h = retorno.data[i].temas.length*1 + 6
  39 + if(h > 23){var h = 23;}
  40 + tags += "<span> </span> <span onmouseout='this.style.textDecoration=\"none\"' onmouseover='this.style.textDecoration=\"underline\"' onclick='procurar(this)' style='cursor:pointer;vertical-align:middle;color:rgb(98,186,192);font-size:"+h+"pt;'>"+retorno.data[i].tag+"</span>"
  41 + }
36 } 42 }
37 } 43 }
38 else 44 else