Thread: JavaScript Help
View Single Post
Old 05-25-07, 03:22 PM   #4
Registered User
Join Date: Jul 2004
Location: Denton, Texas
Posts: 505
Default Re: JavaScript Help

Originally Posted by evilghost
You need to use the eval function:
eval("document.getElementById("+div_id+").style.backgroundImage = 'url("+btn_path+")'");
Thanks for your help. I might have done something wrong but I got an object expected error.
Antec-SOLO | ASUS-P5Q-SE | C2D-E8600 | AC-Freezer-7-Pro | Seasonic-S12-550W | 3GB-KVR-PC2-6400 | GTX-560Ti | SB-XtremeGamer | Pioneer-BDR-205 | Samsung-S223B | Dell-U2412M
technoid is offline   Reply With Quote