Cotton Rohrscheib

The Cotton Club Blog & Podcast

  • Home
  • About
    • Entrepreneurial Journey
  • Blog
    • Faith & Family
    • Marketing & Tech
    • Farm & Business
    • Entertainment
    • Health & Wellness
    • Urban Farming
    • Weekend Projects
  • Podcast
  • Newsletter
  • Media
    • Photo Galleries
    • Video Archives
  • Marketplace
    • eBay
    • Buying Gold & Silver
    • Accoutrements
      • Bags & Briefcases
      • Notebooks
      • Pens
      • Personal Carry
      • Wallets
      • Watches & Jewelry
    • Poshmark
    • Artwork
    • Banknotes & Currency
      • Currency
      • Gold Banknotes
      • Silver Certificates
    • CIvil War Relics
    • Native American Artifacts
    • Rare Books
    • Rare Coins
      • Coin Sets
      • Individual Coins
    • Signs & Advertising
    • Stock Certificates
    • Trading Cards
      • Trading Cards: Autographs
      • Trading Cards: Base
      • Trading Cards: Graded
      • Trading Cards: Raw
      • Trading Cards: Pokémon
      • Trading Cards: Sets
    • Vintage Toys
      • Buddy L
      • Ertl Farm Toys
      • GI Joe
      • Masters of the Universe
      • Hot Wheels
      • Lionel Trains
      • Lunch Boxes
      • Marx Toys
      • NASCAR Die-Cast
      • Schleich Toys
      • Star Wars
      • Tonka Trucks
    • Vintage T-Shirts
    • Vinyl Records
  • Connect
You are here: Home / Marketing & Tech / Yellow Form Fields w/ Google Toolbar!

Yellow Form Fields w/ Google Toolbar!

July 20, 2008 by Cotton Rohrscheib Leave a Comment

This is something that I can honestly say that I have never had an issue with prior to today but I have a client project that I have been working on for a few weeks now and almost ready to launch until the client mentioned that he didn’t like the way that Google Toolbar was turning some of his form fields a yellow color, it took me a minute to realize what he was talking about because I have honestly always overlooked this and not really thought a lot about it.  I went in search of a way to workaround this issue and stumbled upon Jenseng.com’s approach to a workaround using javascript, here’s the snippet if you are interested…

 

   1:  <script type="text/javascript"><!--
   2:    if(window.attachEvent)
   3:      window.attachEvent("onload",setListeners);
   4:   
   5:    function setListeners(){
   6:      inputList = document.getElementsByTagName("INPUT");
   7:      for(i=0;i<inputList.length;i++){
   8:        inputList[i].attachEvent("onpropertychange",restoreStyles);
   9:        inputList[i].style.backgroundColor = "";
  10:      }
  11:      selectList = document.getElementsByTagName("SELECT");
  12:      for(i=0;i<selectList.length;i++){
  13:        selectList[i].attachEvent("onpropertychange",restoreStyles);
  14:        selectList[i].style.backgroundColor = "";
  15:      }
  16:    }
  17:   
  18:    function restoreStyles(){
  19:      if(event.srcElement.style.backgroundColor != "")
  20:        event.srcElement.style.backgroundColor = "";
  21:    }//-->
  22:  </script>

 

And here’s a link to Jenseng’s Blog Entry about Outsmarting the Google Toolbar | jenseng.com

Filed Under: Marketing & Tech Tagged With: Google Toolbar

About Cotton Rohrscheib

The Cotton Club is a monthly podcast hosted by me, Cotton Rohrscheib. I'm a 52 year old entrepreneur w/ ADHD, OCD (and now AARP) that refuses to grow up as I grow old. I have collaborated and invested in hundreds of projects throughout my career in multiple industries such as; technology, healthcare, and agriculture. I also have 25 years experience in the marketing industry as a co-founder of an award-winning advertising agency. I will undoubtedly cover a wide variety of topics on my podcast while sharing some really crazy stories and situations that I've been fortunate to witness firsthand. I also have a book coming out in 2025 titled, "Mistakes were Made"

Leave a Reply Cancel reply

You must be logged in to post a comment.

  • Email
  • Facebook
  • Instagram
  • LinkedIn
  • Twitter

Recent Updates

  • The Marketplace is now Connected to eBay!
  • Ep034: Cotton Rohrscheib & Tim Volberding
  • I Stay on Track w/ Reminders & Task Lists
  • It’s a Really Dry Start to the Season…
  • Trading Card Grading Services

Blog Categories

  • Blog (440)
  • Entertainment (378)
  • Faith & Family (155)
  • Farm & Business (302)
  • Health & Wellness (38)
  • Marketing & Tech (592)
  • Podcasts (33)
  • Urban Farming (24)
  • Weekend Projects (10)

Blog Archives

Join the Cotton Club!

 

Content Copyright © 2000-2026
Cotton Rohrscheib | Rohrscheib Capital
Disclaimer | Privacy Policy | Account Manager | View Cart

All opinions expressed on this website are 100% Cotton (see my disclaimer). All content, including text, images, and media, are the intellectual property of Rohrscheib Capital unless otherwise noted. To learn how we use your private information, checkout our privacy policy.