I'd like to know how these two codes work so I can put them on my forum.
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
<a style="background: transparent url(url to image) no-repeat scroll center center;" href="url to page" class="widget-link"></a>
.widget-link:hover {
border-width: 0px 5px;
filter: grayscale(0);
}
.widget-link {
width: 150px;
height: 54px;
display: block;
border-width: 0px 2px;
border-style: solid;
border-color: green;
box-sizing: border-box;
filter: grayscale(1);
transition: 0.1s;
}
<div id="staffList">
<div id="mainBlock">
<img id="mainImage" src="insert link of image here that you see before you hover the little images like you show up here">
</div>
<div id="mainBlock">
<br> <br>
</div>
<br><br><br><br><br>
<div id="staffList">
<strong><span style="font-size: 13px;">ADMINISTRATOR</span></strong>
</div>
<a href="/u3358"> <img alt="link of image you want to appear at the top when hovering small image" src="link of the small image"></a><br>
</div>
<strong><span style="font-size: 13px;"><span style="text-decoration: underline;">ADMINISTRATOR</span></span></strong>
</div>
<a href="/u3358"> <img alt="link of image you want to appear at the top when hovering small image" src="link of the small image"></a>
<script type="text/javascript">(function() {
var img = document.getElementById('staffList').getElementsByTagName('IMG'), main = document.getElementById('mainImage'), def = main.src,i;
for (i=0; i<img.length; i++) {
if (!/mainImage/.test(img[i].id)) {
img[i].onmouseover = function() { main.src = this.alt }
img[i].onmouseout = function() { main.src = def }
}
}
})();</script>
do you know where to add the javascript? its at modules and then Javascript codes managementKamui wrote:@pebbles I think the codes you guys gave me isn't compatible with my forum. I have phpBB2