mach1ne^ Posted November 28, 2010 Report Share Posted November 28, 2010 (edited) Sveiki. Aiz <body> taga man ir: <div id="pops_txt"></div> pops_txt css: #pops_txt { position:absolute;background:white;display:none;width:200px;text-align:center;font-size: 12px;color:black;padding:3px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius: 5px;border:1px solid #d4d4d4;} Lapas apakšpusē ir JavaScript`s, kas attēlo man tekstu uzbraucot ar peli: function pops(txt) { var pop=document.getElementById('pops_txt'); pop.style.left=mouse_x+'px'; pop.style.top=mouse_y+'px'; pop.style.display='block'; pop.innerHTML=txt; } Bez translate: Ar translate: Pēc google translate ielādes, man #pops_txt tiek pasists 40px uz leju, jo tā height ir 40px. Kā varētu šamo apmānīt? Edited November 28, 2010 by mach1ne^ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.