Jump to content

[solved] Hover Effect - Not Sure Where to Begin


Recommended Posts

Hey All!

 

I have my site up and running fairly well but I just wondered if there was a way to change block advertising so that when you hovered over the button it changed the image?

 

Not entirely sure where to begin here or even if it's possible to do it simply in that module (or if I'd be better swapping it for the html block module and re-doing what I have).

 

Any tips?

Link to comment
Share on other sites

well it is possible but only with css / tpl modification, in my opinion is better to use html module, you will be able to put there own code, so it will be much easier than modification of the block advertising module.

  • Like 1
Link to comment
Share on other sites

<a href="ANY_URL" class="myhov"></a>

 

then in css styles file you will have to define the css styles for class that i created (myhov)

 

.myhov {
display:block;
width:200px;
height:200px;
backgrund: red url('url_to_image_here');
clear:both;
overflow:hidden;
}

.myhov:hover {
background: black url('url_to_hover_image_here');
}

  • Like 1
Link to comment
Share on other sites

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...