R
E
S
O
U
R
C
E
S
       Question Index      Products & Services      Contact Us      Links


WebHatchers will design & develop your site for you.
_______________________

Website Menu Heaven: side or top popup menus, buttons, image rotators, navbars, tons more.
_______________________

Send us your questions and wittiest comments.
_______________________

Report errors on our site.
_______________________

Share your neatest DHTML examples with us; we may publish them.
_______________________


_______________________

      QUESTION INDEX      

Question Index
Browser Insanity
JavaScript
Animation
Buttons and Menus
CSS and HTML


  INFORMATIVE ARTICLES  

Menus-and-Buttons-
Part-I.htm


Menus-and-Buttons-
Part-II.htm


Change-Div-Size-Color-
and-Location-with-the-
W3C-DOM.htm


Bouncing-Ball-Animation-
with-the-W3C-DOM.htm


Style-Changes-with-the-
W3C-DOM.htm


Animation-with-the-
W3C-DOM.htm


Window-Play-and-Some-
Important-DOM-Methods.htm


Using-getElementsByTagName
-and-getElementsByName.htm


The-CSS-Resources-Intro-
Page.htm


Convert-Word-Files-to-HTML-
and-Install-Editor2-to-
Use-Instead-of-NotePad.htm


CSS-Issues.htm

Dealing with the message "Click to activate and use this control" with ActiveX controls like Embed, Object, and Applet

If your site has an ActiveX control and when your page loads the above message shows up, here's the fix. Make a short .js file like this (and name it embed.js or whatever) that will load your control since if you load this control with code on the page, they will see that darned message:

document.write('<embed src=http://www.xat.com/web_gear/poll/pollv.swf?id=145 quality=high bgcolor=#0000ff width=160 height=350 name=poll align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.xat.com/update_flash.shtml" />')

The generic code for the above is document.write(control). This particular control is an embed to run a visitor poll. That annoying message kept popping up so I went to http://capitalhead.com/1240.aspx and learned how to fix it. The other code needed is to load in the stuff in the .js file on the fly from code in the body of the page with the rest of the HTML:

<div id="survey" style="position:absolute; z-index:3; left:44%; top:1630px; border:4px groove purple; width:160px; height:350px; background-color:purple;"><a name="p"></a><script type="text/javascript" src="embed.js"></script></div>