HeatherC Posted July 30, 2013 Share Posted July 30, 2013 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 More sharing options...
vekia Posted July 30, 2013 Share Posted July 30, 2013 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. 1 Link to comment Share on other sites More sharing options...
HeatherC Posted July 30, 2013 Author Share Posted July 30, 2013 For the sake of argument, what edits would I be looking at in the tpl module? Link to comment Share on other sites More sharing options...
vekia Posted July 30, 2013 Share Posted July 30, 2013 <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'); } 1 Link to comment Share on other sites More sharing options...
HeatherC Posted July 30, 2013 Author Share Posted July 30, 2013 Thank you! I'll go ahead and give it a try, and if I get really stuck I'll switch over to the html block. Extremely helpful and exactly what I was looking for. Link to comment Share on other sites More sharing options...
vekia Posted July 30, 2013 Share Posted July 30, 2013 okay, im waiting for your information, then if everything will work well and as you expected - i will mark this topic as solved regards Link to comment Share on other sites More sharing options...
HeatherC Posted July 31, 2013 Author Share Posted July 31, 2013 Just made the changes, it looks fantastic! Thank you very much for letting me know how to approach it. Link to comment Share on other sites More sharing options...
vekia Posted July 31, 2013 Share Posted July 31, 2013 you're welcome glad that i could help you in this case now im going to mark this topic as solved best regards 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