Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #3
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •