Advanced Search

Results 1 to 3 of 3

Thread: Script: DD Rollover background-color button

  1. #1
    Join Date
    Jul 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Script: DD Rollover background-color button

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,690
    Thanks
    43
    Thanked 3,129 Times in 3,095 Posts
    Blog Entries
    12

    Default

    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:
    Code:
    <style type="text/css">
    .osdn-button input{font-weight:bold;background-color:lime}
    </style>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Thanks John - That is so much simpler than the actual DD code. I appreciate it.

    SuperGirl
    Last edited by supergirl; 07-13-2005 at 09:34 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •