Now my forum's skin had a back button & forward button in the header, (part of the vista theme)..So I thought why not put these dummy images to use, so I anchored each image with history codes:
Back code:
HTML Code
<astyle='cursor:pointer'onclick='history.go(-1)'>IMAGE SRC LINK HERE</a>
Forward code:
HTML Code
<astyle='cursor:pointer'onclick='history.go(1)'>IMAGE SRC LINK HERE</a>
After leaving those for a few days, Me and a friend wanted to add before/after images when moused over so this is the code I came up with:
Now this does not work at all, IDK why?! It is almost exactly the same as the other expect for the link is pointed at users history...
I think maybe because the image is not hot linked to a url rather then pointing at the history as it is...I have not tried adding a href="" to it because I don't want to, but is that the reason, or do I have a error I don't see? Or am I missing something since the button is pointed at the users history?
a.backandforward {
width: ##px;
height: ##px;
display: block;
background: transparent url(insert-image-url) top left no-repeat;
}
a.backandforward:hover {
background: transparent url(insert-hover-image-url) top left no-repeat;
}
a.backandforward span {
visibility: none;
/* You could load the hover image here to stop the flicker
background: transparent url(insert-hover-image-url) top left no-repeat; */
}
couldn't think of a good name for the class, feel free to change it :)
'a' means all links, so all links have that styling. Try:
My fault, I should've known... I don't use CCS in VB that much so I don't use it period that much,...
Thanks for your help, I appreciate it. I will see if it corrects my issue,
EDIT:
The code works great now, only one issue left to sort out if you could help me with it?
This code causes the aligned images to stack ontop of eacoter...Make sense? Back & Forward button are next to eachother until I use this code & then they stack cause lots of stuff to mis-align...
Almost like there is a <BR> tag in it!? Is there a way to bring it back up next to eachother??
ZiNgA BuRgA Wrote:Get rid of the "display: block;" line, though that might have some other effects.
lol, I did do that as I was researching CSS,..
I tried a few different options, "display: inline" was the best so far but caused the mouse over image to appear half shown and only at the bottom half of the area it is suppose to appear at.