View Full Version : naming bg image ---or--- rollover cell bg image

12-16-2004, 06:37 AM
hey, hopefully i'll be able to get a little help without showing that i'm completely ignorant and incompetent.


let's start off by taking a look at this page so you can get a feel for what i'm trying to do here: Digital Graphite (http://itry.ca/scott)

i want to be able to swap the background image of the cell that has the text in it when i move my mouse over the navigation buttons("news, art, link"). These buttons are in seperate cells above the cell that i wish to swap background images with.

i know that this could be done i'f i were to name the background image but i'm not sure if that can be done. any ideas?



12-16-2004, 01:35 PM
Since you're using JavaScript already for the rollover, you might as well go that route for the background as well.
You can use a CSS rule to set the background image for that area; I have no idea where or what it is since the whole page is choke-full with JavaScript fragments, but with DOM methods you can access this background image through scripting and change it.

Although I reckon this is typical DW output, I strongly advise you to clean it up: move all the script bits to the head, or better still, to an external file. As it is, the page markup is barely legible, which makes it very hard to spot and solve errors.

12-17-2004, 08:12 AM
thanks for taking a look.

i'm a total amateur when it comes to coding. i'm just doing it through dreamweaver and then editing the code to see if i can get it to do what i want, basically through trial and error, and examples.

so my code is probibly too messy, you're totally right. i'll try to deal with that first so you are able to coach me along with coding this. thanks for the help.