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 5998765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:27:09+00:00 2026-05-23T00:27:09+00:00

Note, I cannot get into the html to add an id. Also, note, I

  • 0

Note, I cannot get into the html to add an id. Also, note, I had already found the jquery zebra strips tutorial but can`t get it to work for this situation.

I have a link like this ( I have changed the domain name).

 <li class="tab tab-home current"><a href="http://yourmamaisyourmama.com">submitpics@yourmamaisyourmama.com</a></li>

NOTE the URL will always be the same, because it is the homelink on a webpage.

To make the email address easier to read, I would like to have the words alternate color between red and blue, with the submitpics@ in black, all on a white background.

submitpics@ = black
Your=blue
Mama=Red
Is=blue
Your=blue

I know Jquery can do zebra stripes for rows, but this is different and I haven`t been able to figure it out.

These are the default styles that currently determine the CSS

 .menu .current-menu-item a:hover {
    color: red;
    background: #fff

}

Can anyone give me some guidance?

  • 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-23T00:27:10+00:00Added an answer on May 23, 2026 at 12:27 am

    EDIT 2

    So you can’t edit the HTML. Ok. Do this:

    $(function(){
        $('.tab.tab-home.current a').html('submitpics@
        <span class="class1">your</span><span class="class2">mama</span>... etc');
    });
    

    and then update your CSS accordingly. Basically you’re just replacing the content with whatever you want.

    EDIT

    So it sounds like you’re going to know the URL in advance. That’s great. If you want the address to change colors, you don’t need jQuery. Just wrap everything in spans:

    <a href="whatever.com">submitpics@
        <span class="class1">your</span><span class="class2">mama</span>... etc
    

    there’s really no way to do this unless you know what the URL is going to be ahead of time or your URLs are Pascal-cased (or you have an engine that can read and understand English). There needs to be something that you can split on, and a generic email address does not have that, except for the @ and the . before the TLD. The best you could do is make the string before the @ symbol one color, the domain another, and the TLD yet another without knowing what the URL is going to be ahead of time.

    That said, if you know what the URL is going to be ahead of time or you have a specific string you’re looking for, then you can do all sorts of fancy things. But it sounds like you won’t, so, yeah.

    Sorry brah

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

Sidebar

Related Questions

Note: I cannot use XSD... not going to go into why. I'm having a
Note that I am not asking which to choose (MVC or MVP), but rather
SUMMARY: How to compile in Release mode...I cannot get it to take what I
I get an error of Cannot convert object of type System.String' to type 'System.Collections.Generic.List'1[...+ContactHolder]'
I cannot seem to get hold of the parent varible from the child template,
Sorry for this newbie question but I cannot figure how I can do this..
NOTE: XMLIgnore is NOT the answer! OK, so following on from my question on
Note: This was posted when I was starting out C#. With 2014 knowledge, I
NOTE: I am not set on using VI, it is just the first thing
Note: Originally this question was asked for PostgreSQL, however, the answer applies to almost

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.