JavaScript on my site 3 replies

Please wait...

Dude_23

I don't spend enough time here

50 XP

27th October 2007

0 Uploads

21 Posts

0 Threads

#1 11 years ago

Okay guys, I have been experimenting with JavaScript for a long time now. I have usually managed to come up with something for what I want, but now I'm a little stuck.

I am trying to make a code where the viewer can select different background images, but I can't get my coding right. I made a drop-down box and made it so when you click on a background name, it changes the background. I told it where to put the image(s) on the page, and I tried it out, and whenever I click on a background, it stays the same. I checked the code, it appears that there is nothing wrong with it.

So I need you guys to give me a little help here. I can't really post the code because of my program. It's really weird, I just got it, and I'm still figuring it out.

So if you could post any help, tips, or otherwise, it would be greatly appreciated. Thanks!




-Slick-cRiSsI

MoHFiles Vice-Site Manager

50 XP

13th December 2006

0 Uploads

1,488 Posts

0 Threads

#2 11 years ago

Well the code would be really useful.. And I don't get why you can't post it... Just Copy / Paste is here..

Anyway.. I found something that will allow you to change the Background color (you can edit it in a drop-down box) But it only changes the color and couldn't figure how to make it change the background image.. Maybe you'll find out how.. Good luck

Spoiler: Show

Choose a Background Color:




Dude_23

I don't spend enough time here

50 XP

27th October 2007

0 Uploads

21 Posts

0 Threads

#3 11 years ago

-Slick-cRiSsI;4002027Well the code would be really useful.. And I don't get why you can't post it... Just Copy / Paste is here..

Anyway.. I found something that will allow you to change the Background color (you can edit it in a drop-down box) But it only changes the color and couldn't figure how to make it change the background image.. Maybe you'll find out how.. Good luck

Spoiler: Show

Choose a Background Color:

That's pretty similar to the code I have. Sorry I can't paste it, I got rid of the taskbar by mistake and the program is so weird I can't find out how to get it back up. And another reason is my right mouse button isn't working, I need a new mouse. I know I can use key commands, but I was experimenting with some Javascript, and now I can't really use the keyboard well in the program. Ugh!! This is so frustrating.




-Slick-cRiSsI

MoHFiles Vice-Site Manager

50 XP

13th December 2006

0 Uploads

1,488 Posts

0 Threads

#4 11 years ago

You should get a good program and fix your mouse and keyboard lol. Should help you a bit ;)