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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:11:28+00:00 2026-06-03T12:11:28+00:00

I have a HTML widget/table that is pulling info from a private server that

  • 0

I have a HTML widget/table that is pulling info from a private server that diplays the info I want in the selected fields using JSON/knockoutjs data-bindings from a javascript viewmodel file. I will be putting this widget on different servers/sites. The problem is that (as silly as it is) I need to use different CSS’s depending on which site/server I’m on. Is there a way in either HTML or Javascript to say that if I go to this website or server use this CSS or if I visit this site/server use the other CSS file I have?

If it’s even possible still; maybe there’s a way to say if a website url or server contains a specific word; for example: http://abcdEXAMPLEefghi.com; in this example I would check to see if the word “EXAMPLE” was in the URL and if so, use CSS2 instead of the default CSS1.

  • 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-06-03T12:11:29+00:00Added an answer on June 3, 2026 at 12:11 pm

    Maybe something like this?

    http://jsfiddle.net/pqLVz/

    <script>
        if (window.location.href.indexOf('net') > 0) {
            document.write('<link rel="stylesheet" type="text/css" href="/css/basicsite.css" />')
            document.write('<style>p { color: red; }</style>')
        }
    </script>
    <p>hello</p>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML editor widget that I want to appear within an absolutely
I have a website that currently takes data from a mysql database and using
I have a login widget that is a partial view that I want updated
I have HTML tidy extension on my home computer using PHP 5.2.11 (Windows -
i have the following jquery code to format a html table. $(.jtable td).each(function() {
I have a html table which consists of columns for days, and rows for
I have a table that prints out all available cameras. It uses a form
I have three images that I would like to join in a widget I'm
I have a cell table that has several columns whose data may occasionally be
I have a table in a database that contains a variety of paths to

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.