richiebman
05-18-2004, 08:49 AM
Hello all.
Been trying to work this out but can't. I think it must be possible though as it can be easily done in Javascript.
I have some links on a page and a div. The links aren't inside the div as they are positioned on different sides of the page. When the user puts the mouse over a link, I want the image to change inside the div.
I can do this in Javascript, and I can do a similar thing with css and divs, but only when the link or object that I have designated as a link (using display:block; etc), is inside the div.
So I need to be able to call on the div probably using <div id="etc... ??? I have never needed to use div id and so am unsure how to reference them in css.
I have exactly what I need working in Javascript already, but I need to do it with css and divs as I need the image names in the stylesheet. This is because I am trying to set up a 'changing the color theme' thing for the user. I do this by using different stylesheets and cookies. Therefore if the image name is in the html, upon colour change, the image obviously doesn't change which is what I needed it to do.
Hope you can help and thanks in advance,
R
Been trying to work this out but can't. I think it must be possible though as it can be easily done in Javascript.
I have some links on a page and a div. The links aren't inside the div as they are positioned on different sides of the page. When the user puts the mouse over a link, I want the image to change inside the div.
I can do this in Javascript, and I can do a similar thing with css and divs, but only when the link or object that I have designated as a link (using display:block; etc), is inside the div.
So I need to be able to call on the div probably using <div id="etc... ??? I have never needed to use div id and so am unsure how to reference them in css.
I have exactly what I need working in Javascript already, but I need to do it with css and divs as I need the image names in the stylesheet. This is because I am trying to set up a 'changing the color theme' thing for the user. I do this by using different stylesheets and cookies. Therefore if the image name is in the html, upon colour change, the image obviously doesn't change which is what I needed it to do.
Hope you can help and thanks in advance,
R