PDA

View Full Version : Script: DD Rollover background-color button



supergirl
07-13-2005, 07:56 PM
Script: DD Rollover background-color button

http://www.dynamicdrive.com/dynamicindex5/button3.htm

----------------------------

Greetings from a new webmaster...

I would be interested in changing the color of my “submit” button as shown in the page above; however,

The button code of my site looks like this:

<span class="osdn-button">
<input type="submit" name="" value="Submit">
</span>

which does not seem to blend well with the DD script.

Is there a way to use the DD code without changing my button html?

Thank you for your time!
supergirl

jscheuer1
07-13-2005, 08:37 PM
I'm not clear as to what you you are asking. Are you trying to use the whole script but refusing to use its button syntax? Or, are you just trying to color your buttons, having them perform a different function than the rest of this Dynamic Drive script does? If it is the first case, get over it, use the syntax as shown. If it is the second case, use only the style but, change the selector in its definition to match your own syntax:

<style type="text/css">
.osdn-button input{font-weight:bold;background-color:lime}
</style>

supergirl
07-13-2005, 09:30 PM
Thanks John - That is so much simpler than the actual DD code. I appreciate it.

SuperGirl