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

  • SEARCH
  • Home
  • 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 6938469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:29:52+00:00 2026-05-27T12:29:52+00:00

I am trying to implement a tag cloud like Amazon.co.uk see here . my

  • 0

I am trying to implement a tag cloud like Amazon.co.uk see here. my currenct javascript is like this

var tags = jq.getJSON(baseUrl + '/ajax/populartags', null, function(json){
    //create list for tag links
    jq("<p>").attr("id", "popularTagsList").appendTo("#tagCloud");
    //create tags
    jq.each(json, function(i, val) {
        //create link
        a = jq("<a>").text(val.Tag).attr({title:"See all pages tagged with " + val.Tag, href:baseUrl + '/item/tag/' + val.Tag});
        a.css("fontSize", (val.Count / 10 < 1) ? val.Count / 10 + 1 + "em": (val.Count / 10 > 4) ? "4em" : val.Count / 10 + "em");

        //add to list
        a.appendTo("#popularTagsList");
    });
});

is it possible to add ligten/darken functionality to this code?

  • 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-27T12:29:52+00:00Added an answer on May 27, 2026 at 12:29 pm

    I think the approach to take would be to adjust the color. In order to “lighten” the color, increase the value for each of RGB components of that color. To “darken” it, decrease the values. If that doesn’t make sense or if you’d like a detailed code sample, post a comment and I’ll get back with an update shortly.

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

Sidebar

Related Questions

Referring to this post and this one . I'm trying to implement tag search
I'm trying to implement a voting system kind of like the one here on
I am trying to implement simple xhr abstraction, and am getting this warning when
Trying to work out this whole web part personalisation, and trying to implement it
I am trying to implement pagination through display tag in Struts2 . Now my
Trying to implement a simple notification system based on private pub ( something like
I am trying to implement SO style autocomplete. I am using this gem to
Trying to implement the example from here. Facebook Share passes along the URL of
I am trying to implement a search algorithm in my simple datastructure. However, this
Here we go: Im trying to implement the timeago jquery plugin (http://timeago.yarp.com/) on my

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.