I'm trying to find a way to change the background-image of a div when certain elements are clicked. Here is what I have but it isn't working:
...
#bgimage {
position:absolute;
background-image: url(1.jpg);
top:10px;
left: 220px;
width: 767px;
height: 549px;
}
...
<img src="1thumb.jpg"...
Thanks guys I found what I was looking for:
http://www.dhtmlcentral.com/script/script.asp?id=4
I did this and changed onmouseover/onmouseoff to onmousedown/onmouseup.
Thanks!
I'd like to scroll a div (vertically) without scrollbars. I'd like to have two links "up" and "down" that scroll the div respectively onclick. I found an example a while back that set the div overflow to hidden and used javascript to scroll the contents but cannot seem to find it again. Any...
I'm looking for a way to scroll a div with overflow hidden with two onclick links (up and down) so that I can hide the ugly scrollbar and make my page not user friendly. Thanks!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.