Hover over Banner
5 posters
Page 1 of 1
Hover over Banner
This site here: http://ktms.b1.jcink.com/
Has a neat little trick with its banner. When I hover over it, more information appears. Its cleaner than the accordion.
So how do they do it?
Has a neat little trick with its banner. When I hover over it, more information appears. Its cleaner than the accordion.
So how do they do it?
PA- Forumember
- Posts : 219
Reputation : 2
Language : english
Re: Hover over Banner
its just an iframe that contains a html page that fades in on mouse over
ill try to write you a script here in a lil while for it
css
javascript
replace https://help.forumotion.com/t137603-hover-over-banner to your html page you would like to display when hover over the logo
ill try to write you a script here in a lil while for it
css
- Code:
.hover {left:10%;right:auto;top:100px;width: 80%; height: 200px; opacity: 0; transition: all .7s ease-in-out; -moz-transition: all .7s ease-in-out; -webkit-transition: all .7s ease-in-out; -ms-transition: all .7s ease-in-out; -o-transition: all .7s ease-in-out; position: absolute;}
#logo:hover .hover {opacity: 1.0;}
javascript
- Code:
$(function(){
$('#logo').append(' <div class="hover"><iframe src="http://help.forumotion.com/t137603-hover-over-banner" width="100%" height="100%"></div> ');
});
replace https://help.forumotion.com/t137603-hover-over-banner to your html page you would like to display when hover over the logo
Re: Hover over Banner
Brilliant! It works.
Just a quick follow up, lets say I put the following code (this is just for testing)
There is a border around the html page when I hover over the banner. Any way to get rid of it?
Just a quick follow up, lets say I put the following code (this is just for testing)
- Code:
<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width="200" height="100"
style="border:1px solid #c3c3c3;">
Your browser does not support the HTML5 canvas tag.
</canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(0,0,150,75);
</script>
</body>
</html>
There is a border around the html page when I hover over the banner. Any way to get rid of it?
PA- Forumember
- Posts : 219
Reputation : 2
Language : english
Re: Hover over Banner
To remove the style border, find this:
And replace it with this:
- Code:
<canvas id="myCanvas" width="200" height="100"
style="border:1px solid #c3c3c3;">
Your browser does not support the HTML5 canvas tag.
</canvas>
And replace it with this:
- Code:
<canvas id="myCanvas" width="200" height="100">
Your browser does not support the HTML5 canvas tag.
</canvas>
Re: Hover over Banner
Sorry I was not quite clear
You can see the problem on my forum.
Pottersarmy.net
When you hover over my banner here, there is a border around the entire html page. This has nothing to do with the html code I have...
You can see the problem on my forum.
Pottersarmy.net
When you hover over my banner here, there is a border around the entire html page. This has nothing to do with the html code I have...
PA- Forumember
- Posts : 219
Reputation : 2
Language : english
Re: Hover over Banner
perhaps you mean the iframe border
replace your script with this one
replace your script with this one
- Code:
$(function(){
$('#logo').append(' <div class="hover"><iframe src="http://help.forumotion.com/t137603-hover-over-banner" width="100%" height="100%" frameborder="0"></div> ');
});
Re: Hover over Banner
That works, thank you.
I think you are better at your second job btw.
Anyway, solved.
I think you are better at your second job btw.
Anyway, solved.
PA- Forumember
- Posts : 219
Reputation : 2
Language : english
Similar topics
» Hover on the main banner
» Profile/Banner Hover Image
» Hover pop up?
» "Randomize your forum banner" not displaying banner in correct position
» Banner slide show problem (Banner Rotator)
» Profile/Banner Hover Image
» Hover pop up?
» "Randomize your forum banner" not displaying banner in correct position
» Banner slide show problem (Banner Rotator)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum