Results 1 to 2 of 2

Thread: another question John

  1. #1
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default another question John

    Can that script be adapted to use say,a box with the color options.

    Like a blue box for blue
    tan for tan
    green for green
    etc......


    Bud

    Last edited by jscheuer1; 08-20-2011 at 09:50 PM. Reason: spinoff to a new thread

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Sure. It's no different in that regard from the DD version which allows for a link or whatever to be used (from the DD demo page's source code):

    Code:
    <a href="javascript:chooseStyle('blue-theme', 30)">Blue theme</a>
    Although I would prefer an onclick event for that. Anyways, instead of text, you could have a color, or an image of a color, like:

    Code:
    <div style="background-color: blue; width: 70px; height: 20px; cursor: pointer;" onclick="chooseStyle('blue-theme', 30);">&nbsp;</div>
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    ajfmrf (08-21-2011)

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
  •