Results 1 to 7 of 7
Mar 24, 2004, 09:56 #1
- Join Date
- Sep 2002
- Melbourne, Australia
- 0 Post(s)
- 0 Thread(s)
I am wanting to write a script to controll the background-position on an element. I don't think I have a problem selecting the element.
document.getElementById('navigation').style.backgroundPosition = "0px 40px";
Anyway my problem is that I can't get the background to move. Will I just have to make it into an image in a div with overflow hiddent and make controlls to scroll the div? I have never really done this before as I usually hate those little controlls
Its really just a little thing for users to play around with as the navigation block features a really long background to accomodate large rez so it would be nice to be ale to scroll around and see it all. Don't worry its only 55Kb.
so being able to dynamically alter the background position would be awsome. This probally wont work well in ie will it, heh.sigy