Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7438555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:34:22+00:00 2026-05-29T10:34:22+00:00

I am trying to have a function change the reflectionColor in some javascript to

  • 0

I am trying to have a function change the reflectionColor in some javascript to a jqeuryui ui-widget-content color. The reason is I want to have the reflection color change when each Themeroller theme is applied.
Here is my code:

function colorReflect(){,
var jqueryuiColor = $('.ui-widget-content:first').css('background-color');
return $(jqueryuiColor).val();

}

var cf = new ContentFlow('contentFlow',{

    reflectionColor:  colorReflect,
    visibleItems: 4,
    circularFlow: true,
    startItem: "center",
    scrollInFrom: "none",
    space: 0.4,
    maxItemHeight : 200,
    showCaption: true,
    flowSpeedFactor: 1.0,
    scrollWheelSpeed: 1,
    flowDragFriction: 1,
    reflectionGap: 0.0,
    reflectionHeight: 0.4,
            onReachTarget : function(){
    if (global.isCboxOpen)
        initCBox();
},

I think I am on the wrong track! Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:34:22+00:00Added an answer on May 29, 2026 at 10:34 am

    Getting the color value:

    Inside the function “colorReflect” , why are you doing jqueryuiColor.val()?
    .val() is used to get values of forms element.

    To get the css value of the backgroundColor, the first line is enough:

    return $('.ui-widget-content:first').css('background-color');
    // returns rgb(255,255,255)
    

    The .css() function

    Setting the reflection color value to the ContentFlow plugin:

    Looking at the documentation, it seems the plugin accepts color values in hex format:

    reflectionColor := string (default: transparent)
    Set the “surface”-color of the reflection. Can be “none”, “transparent”, or #RRGGBB (hex RGB values)

    The problem here is that jquery returns the color value in rgb() format, so you would have to convert it before !

    Follow the method in the answer to convert rgb() color values to hex format.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the replace function in JavaScript and have a question. strNewDdlVolCannRegion
I'm trying to make a javascript function to change the value of a parameter
I have a function that takes a struct, and I'm trying to store its
I have a function with a chain of filters in jQuery. I am trying
I'm trying to get rid of floats in my functions. I have one function
At www.euroworker.no/order I have been trying to add a tooltip function but it seems
I am new to programming. I have been trying to write a function in
I have been messing around with Leaks trying to find which function is not
I have the following C++ function definition, which I am trying to call through
I'm trying to find out where this function comes from. Any one have any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.