Old 10-26-2005   #1 (permalink)
Recursively call who?
 
GoldNetX's Avatar
 
Join Date: Nov 2003
Location: Pittsburgh, PA
Posts: 294

Send a message via AIM to GoldNetX
CSS Background Changing

Anyone know what the code would be to change the background on a div that has been set in CSS.

I know that
Code:
document.getElementById('img').style.
accesses the Div with the Id img, but I can't seem to find the correct syntax to change the background:url().

edit: Figures right after I ask I figure it out.

Here is the code if anyone needs it:

Code:
document.getElementById('div').style.background='url(file)';
Where div is the tag ID you want to use it on and file is the fiel you want as the background.
__________________

www.gusmayo.com
- Maybe a story or two -


www.jaloobie.com
... your new home ...

www.webinkproductions.com
- professional web application design -

Last edited by GoldNetX; 10-26-2005 at 01:19 AM.
GoldNetX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help on HTMl background. ParaSnake HTML / PHP / ASP / JS 9 12-21-2005 12:30 AM
extending background Rson HTML / PHP / ASP / JS 2 08-02-2004 11:48 PM
Forum Background Design Competition Man1c M0g Showrooms & Works In Progress 19 06-30-2004 09:58 PM
Partial transparancy, background color change. malboroman HTML / PHP / ASP / JS 22 01-27-2004 12:31 AM


All times are GMT +1. The time now is 07:30 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT