Click to See Complete Forum and Search --> : java script source code for simple webpages


oriacommerce
05-17-2009, 03:01 PM
Dear members,

I am developing my own website and am finding it difficult to write javascript codes. Can someone suggest a source for codes for different back grounds.

thanks
oria

javawebdog
05-17-2009, 07:13 PM
Nearly any HTML element that supports an id attribute and has a required closing tag can have it background manipulated. That includes changing color or changing a background-image.

So what do you want to change? the body? one or more divs? one or more tables? one or more cells within tables? text boxes, textareas, etc.

Secondly, how do you want to trigger the change? User action like clicking a link or button or mouseover over an element? Automatically over time? Suddenly or slow crossing fade?

There are many options.
A good starting point for you:
http://www.w3schools.com/css/css_background.asp
then
http://www.w3schools.com/HTMLDOM/dom_using.asp

Finally try a Google search on: javascript change background

Review the first two, then do the search so you can choose wisely among the alternatives.