fil79 Posted December 30, 2009 at 01:37 AM Report Share #303131 Posted December 30, 2009 at 01:37 AM queria fazer um rollover de texto: CSS a.roll:hover { color: #c00000;} e no HTML <a style="cursor: pointer;" onclick="javascript:abre();" class="roll">texto a alterar</a> Assim só funciona em FIREFOX. Desde já agradeço MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
NCS_One Posted December 30, 2009 at 05:48 PM Report Share #303259 Posted December 30, 2009 at 05:48 PM Boas. Falta-te o atributo "href". Se a vida te voltar as costas aproveita e apalpa-lhe o cu. Link to comment Share on other sites More sharing options...
fil79 Posted December 30, 2009 at 06:19 PM Author Report Share #303268 Posted December 30, 2009 at 06:19 PM a questão é que não quero criar nenhum link, só quero que seja aberta uma div flutuante...se colocar o href mesmo colocando o href="#" esta vai fazer refresh, portanto não seria essa a solução MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
NCS_One Posted December 30, 2009 at 07:16 PM Report Share #303273 Posted December 30, 2009 at 07:16 PM Boas. Não é a solução para o div flutuante mas para o link funcionar como um link. Podes fazer assim : <a href="javascript:void(0);" style="cursor: pointer;" onclick="javascript:abre();" class="roll">texto a alterar</a> Assim já não faz o refresh a página. Ou usa um div : .roll:hover { color: #c00000;} <div style="cursor: pointer;" onclick="javascript:abre();" class="roll">texto a alterar</div> Se a vida te voltar as costas aproveita e apalpa-lhe o cu. 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