PDA

View Full Version : background images for scrollable content 2?



carsick
05-24-2005, 09:18 PM
"An interesting way to decorate the script is with a background image."

I am completely lost as to where to put the background image code and of course... how exactly to put the code in.

I messed with table and body codes and put them where I thought they may belong to no avail.

If anyone could help me out on this it would be GREATLY appreciated.

Thanks in advance,

Kenny

techhietim
05-26-2005, 04:39 AM
In JavaScript, you put scrolling text inside of a display object (a text box) that is usually inside a form. The best way would be to create a style sheet class and then apply it to the text box. For example, in the head section of your HTML, put:

<style type="text/css">
<!--
.backimg {background-image: url(images\texture.gif);}
-->
</style>

Then, inside the form element in the body, your display object might look something like:
<INPUT type="text" name="message" class="backimg" size="30">

I hope that helps you!

Cheers!
TechhieTim