Jump to content

Recommended Posts

Posted
<style>
.umastar {
 float:right;
display: block;
width: 20px;
height: 20px;
background: url('starfinal.jpg') bottom;
text-indent: -99999px;
}
.umastar:hover {
background: url('starfinal1.jpg') bottom;
}
</style>
<style>
.duasstar {

 float:right;
display: block;
width: 20px;
height: 20px;
background: url('starfinal.jpg') bottom;
text-indent: -99999px;
}
.duasstar:hover {

width: 40px;
height: 20px;
background: url('starfinal1.jpg') ;
background: url('starfinal1.jpg') ;

}

}
</style>

><a class="duasstar" href="#LinkURL">img</a><a class="umastar" href="#LinkURL">img</a>

Posted

tipo eu isto e so a parte de um site por isso como esta em testes estou a fazer noutro documento.

tipo eu tenho 2 imagens e quando passo o rato por cima de uma ele mostra essa imagem com um tamanho maior e esconde a outra.

so me falta a parte de esconde a imagem que nao tem o rato em cima.

Entendeu?

thx

Posted (edited)
<html>
<head>
 <style>
.img1 {
 width: 50px;
 height: 50px;
 background-color: red;
}

.img2 {
 display: none;
 width: 49px;
 height: 49px;
 background-color: white;
 border: 1px solid red;
}

.img1:hover > .img1 {
 display: none;
}

.img1:hover > .img2 {
 display: block;
}

</style>
</head>
<body>

<div class="img1">
   <div class="img2"></div>
</div>

</body>
</html>

Isto ajuda? Aqui funcionou-me perfeitamente. 🙂

edit: Eu sei que está pessimamente identado, foi com espaços visto que quando colo o código não fica direito, mas penso que dá para perceber claramente 😛

Edited by oxyzero
Posted
<script language="javascript">
    function MouseRollover(MyImage) {
    MyImage.src = "MyPicture2.jpg";
   }
    function MouseOut(MyImage) {
    MyImage.src = "MyPicture1.jpg";
   }
</script>
<!-- (...) -->
<img src="MyPicture1.jpg" border="0px"
width="650px" height="550px"
onmouseover="MouseRollover(this)"
onmouseout="MouseOut(this)" />

B2R » Beat2Revolution v3.0b | Regista e divulga-nos

beat2revolution.net

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.