Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-16-2004, 05:37 AM   PM User | #1
ransomnotes
New to the CF scene

 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ransomnotes is an unknown quantity at this point
naming bg image ---or--- rollover cell bg image

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

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?


thanks,

--scott
ransomnotes is offline   Reply With Quote
Old 12-16-2004, 12:35 PM   PM User | #2
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
JavaScript

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.
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Old 12-17-2004, 07:12 AM   PM User | #3
ransomnotes
New to the CF scene

 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ransomnotes is an unknown quantity at this point
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.

--scott
ransomnotes is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:28 AM.


Advertisement
Log in to turn off these ads.