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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:48:24+00:00 2026-06-18T01:48:24+00:00

i wish to add a further action to the script to change the css

  • 0

i wish to add a further action to the script to change the css for a class

document.write( 'DIV STYLE='display;none;); />' ) } was my initial idea but it doest seem to work so using

    if (location.href.indexOf( "/smispage""/tpfpage""/client_images_new""/client_images_list" ) > -1) {
document.write( '<base target="_blank" />' );
     }

and adding to it with

    if (location.href.indexOf( "/smispage""/tpfpage""/client_images_new""/client_images_list" ) > -1) {
document.write( '<base target="_blank" />' ); document.write( 'DIV STYLE='display;none;); />' ) 
    }

the body is

     <div class="headerlogo"> Serious Photography </div>
     <div> Serious Photography 2 </div>
  • 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-18T01:48:25+00:00Added an answer on June 18, 2026 at 1:48 am

    This is kind of a hard question to follow, but if you want to check for what page you are on, you can use

    window.location.href 
    

    A conditional check to match the strings could then decide whether you want to add the new style. I’d change the class to an ID.

    then you can do

    document.getElementById('headerlogo').style.display = 'none';
    

    Personally, I’d use SIZZLE or jQuery to make the selectors easier.

    $('.headerlogo').css('display', 'none');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish to add some sort of a Write a Review or Rate Us
Upon a certain user action, I wish to add to my UIViewController another UIView
I wish to add a PMD check to ensure that a class does not
I'm using iosSlider to display artwork here : http://artiris.clients.twi.tl/galeries/galerie-bleue I wish to add a
I wish to add a transition to my current CSS dropdown menu. I have
I wish to add some sort of a Write a Review or Rate Us
I wish to add a gradient image to both sides of my main div
I wish to add the mouseover events to a panel which contains more than
I wish to add ul tag to my jsf in some cases. My codes
I wish to add '1' to the id conCol to make it conCol1. Please

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.