Cotton Rohrscheib

The Cotton Club Blog & Podcast

  • Home
  • Bio
    • Resume
  • Blog
    • Faith & Family
    • Marketing & Tech
    • Farm & Business
    • Entertainment
    • Health & Wellness
    • Urban Farming
    • Weekend Projects
  • Media
    • Newsletter
    • Photo Galleries
    • Instagram Feed
    • Video Archives
    • Podcasts
    • Music Playlists
  • Books
  • Connect
    • Rohrscheib Capital
    • Disclaimer
    • Privacy Policy
You are here: Home / Marketing & Tech / Shockwave Object Fix – Javascript

Shockwave Object Fix – Javascript

January 15, 2008 by Cotton Rohrscheib Leave a Comment

If you have ever been on a website that when you moused over a flash animation or shockwave object you get a mouseover that says “Click to Activate and use this control”.  This is a result of litigation that was won over Microsoft so they were forced to change their Internet Explorer web browser, it kind of caused an uproar across the development community, not that it disables anything really, just causes site visitors to click on an object before they interact with it.

We do a few sites with Flash on them, usually try to steer clear of Flash because it’s not search engine friendly and a little bit more time consuming to update therefore relaying higher costs onto our clients, but we do develop graphics and applications in flash if our clients request them.

In order to workaround the Object Activation thing in IE there is a way around it.  Here’s what you can do…

1. Open Notepad, Notepad++, or whatever text editor you like to use, simply go in and paste this code into a blank text file and save it as “shockwave-fix.js”

   1: theObjects = document.getElementsByTagName("object");
   2: for (var i = 0; i < theObjects.length; i++) {
   3: theObjects[i].outerHTML = theObjects[i].outerHTML;
   4: }

2. Next, open up your html page that you are running flash on and locate the last </object> tag in the document, you can do this quickly by using Control F and toggling down the page. Once you have located the bottom </object> close tag, simply drop in this javascript call:

   1: <script type="text/javascript" src="http://www.yourwebsite.com/shockwave-fix.js">

I thought this was pretty useful info so I decided to post it here in case anyone else has been frustrated by this.  If you want to see how it works, you can go to: http://www.powersitedesign.com and check out my flash centerscreen that I have running there, it removes the object activation thing altogether.

Share this post on:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest

Related

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"

Please Drop Your Questions or CommentsCancel reply

Let’s Connect

  • Email
  • Facebook
  • Instagram
  • LinkedIn
  • Twitter

Recent Updates

  • EP:032 – Cotton Rohrscheib & Diana DeHart
  • Challenges & Opportunities Going into 2025
  • Find us at the 2025 Arkansas Women in Agriculture Conference in Hot Springs, Arkansas
  • Be Sure to Checkout FBN’s Farmers First™  Crop Nutrition & Adjuvant Lineup for 2025
  • What we all need in Dark Times…

Blog Categories

  • Blog (419)
  • Entertainment (376)
  • Faith & Family (147)
  • Farm & Business (288)
  • Health & Wellness (33)
  • Marketing & Tech (584)
  • Podcasts (31)
  • Urban Farming (20)
  • Weekend Projects (1)

Listen & Subscribe

Blog Archives

Join the Cotton Club!

 

Content Copyright: 2001-2025
Cotton Rohrscheib | Rohrscheib Capital