Welcome to TalkGraphics.com
Results 1 to 10 of 13

Thread: colour changes

Hybrid View

  1. #1
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,959

    Default Re: colour changes

    I'm really pleased with this outcome. I know nothing but very basic js scripts but doing Google searches I quickly (3 hrs) came up with this. Not 100%, but it converts the border around a photo to any colour in the swatch. The Hex value is displayed in an Alert window, I'd prefer it displayed in a text field.

    I'll upload a zip file and perhaps Acorn can tidy it up (please)

    http://parkeston.com/picker/index-page.htm

    EDIT: My apologies to the original supplier of the js script on StackOverflow, I can't find the original source post at present, but it works in a mean manner
    Last edited by Egg Bramhill; 04 August 2015 at 08:42 PM.
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,934

    Smile Re: colour changes

    Quote Originally Posted by Egg Bramhill View Post
    I'm really pleased with this outcome. I know nothing but very basic js scripts but doing Google searches I quickly (3 hrs) came up with this. Not 100%, but it converts the border around a photo to any colour in the swatch. The Hex value is displayed in an Alert window, I'd prefer it displayed in a text field.

    I'll upload a zip file and perhaps Acorn can tidy it up (please)

    http://parkeston.com/picker/index-page.htm
    Nice swatch. Egg, rem out the myColour alert and replace with a jQuery statement like:
    $("#displayPickedColour").html("myColour = " + myColour);
    to a Named blank DIV (Placeholder with <DIV id="displayPickedColour"></DIV>).

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,533

    Default Re: colour changes

    That's incredible Egg, except, the question, as I understand it, and that is qualified for as much as I understand anything, is how to change Alistair's matt colors on his web site to match his inventory. Such as when you visit a website, select an item such as a t-shirt, then click on color swatches to see how the t-shirt looks in the available colors. I do not think Alistair's company offers quite that many colors. I could very well be wrong, mind you.

  4. #4
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,959

    Default Re: colour changes

    On these websites when a color is selected the image colour changes to match this.
    I took this to read the border colour changes, not the photo colour (Why would you want to do that?)

    On my example the border colour changes, probably far more than the OP requires, but a good example of the possibilities
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  5. #5
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,533

    Default Re: colour changes

    Acorn - Please see the first post.

  6. #6
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,959

    Default Re: colour changes

    My apologies at the moment, I completely c****d up the original code and it no longer works. I'll get back to this tomorrow
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #7
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,934

    Default Re: colour changes

    Quote Originally Posted by gwpriester View Post
    That's incredible Egg, except, the question, as I understand it, and that is qualified for as much as I understand anything, is how to change Alistair's matt colors on his web site to match his inventory. Such as when you visit a website, select an item such as a t-shirt, then click on color swatches to see how the t-shirt looks in the available colors. I do not think Alistair's company offers quite that many colors. I could very well be wrong, mind you.
    Gary, where is Alistair's site? I can't align what you're saying here to what's posted and uploaded by him.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

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
  •