fil79 Posted November 20, 2009 at 02:34 PM Report Share #297008 Posted November 20, 2009 at 02:34 PM Boas Tenho a seguinte função para alinhar um popup, mas esta só funciona em IE. function alinhamento(){ var w=document.body.clientWidth; var calc = w-document.all['apPopup'].offsetWidth; apPopup.style.left=calc/2; } Desde já agradeço MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
fil79 Posted November 21, 2009 at 02:12 PM Author Report Share #297086 Posted November 21, 2009 at 02:12 PM alguém? MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
bruno1234 Posted November 21, 2009 at 03:25 PM Report Share #297095 Posted November 21, 2009 at 03:25 PM Não percebi o q queres fazer, mas se quiseres movimentar o popup, podes usar a função javascript moveTo. Vê uns exemplos no google. Matraquilhos para Android. Gratuito na Play Store. https://play.google.com/store/apps/details?id=pt.bca.matraquilhos Link to comment Share on other sites More sharing options...
fil79 Posted November 22, 2009 at 06:24 PM Author Report Share #297216 Posted November 22, 2009 at 06:24 PM basicamente quero que um popup que abre, apareça centrado na página...essa função funciona em IE, mas não em firefox MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
yoda Posted November 22, 2009 at 08:37 PM Report Share #297223 Posted November 22, 2009 at 08:37 PM Que tipo de popup é? before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
fil79 Posted November 22, 2009 at 10:26 PM Author Report Share #297239 Posted November 22, 2009 at 10:26 PM é um popup em flash MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
olexmal Posted November 22, 2009 at 10:31 PM Report Share #297240 Posted November 22, 2009 at 10:31 PM Boas Tenho a seguinte função para alinhar um popup, mas esta só funciona em IE. function alinhamento(){ var w=document.body.clientWidth; var calc = w-document.all['apPopup'].offsetWidth; apPopup.style.left=calc/2; } Desde já agradeço Para funcionar em firefox isto aqui não existe document.all['apPopup'].offsetWidth;. Pelo que percebi apPopup é um id de algum objecto na pagina. Então o tens de fazer é document.getElementById('apPopup').kkcoisa. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now