View Full Version : scrollable iframe getting snagged by IE warnings... help?

03-27-2006, 06:42 AM
I recently installed this script: http://www.dynamicdrive.com/dynamicindex17/iframescroll.htm

...on a page, and though both Firefox and IE have no problems with loading the script on the DD site, when I install it on my page it works fine in FF but in IE it pops up with the old:

"To help protect your security [what a dumb phrase...], IE's restricted this file from showing active content..." yadda yadda.

However, I've only changed small parts of the code. It now reads as:

<!--Scrollable iframe script- By Dynamic Drive-->
<!--For full source code and more DHTML scripts, visit http://www.dynamicdrive.com-->
<!--This credit MUST stay intact for use-->

<iframe id="datamain" src="belly.html" name="belly" width=200 height=180 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>

<layer visibility=hide>
<div style="width:200px;">
<div align=right><a href="#" onMouseover="scrollspeed=-2" onMouseout="scrollspeed=0"><img SRC="up.gif" BORDER=0 height=20 width=20></a><img SRC="trans.gif" height=5 width=5><a href="#" onMouseover="scrollspeed=1" onMouseout="scrollspeed=0"><img SRC="down.gif" BORDER=0 height=20 width=20></a></div>

Now, I just don't understand. I've only changed parameters of this same script that I've seen changed on other pages, without the grumbling from IE. It's only doing this on my pages...

Grumble, grumble.

Anyone know what's going on?



03-27-2006, 07:02 AM
That only happens locally as a security measure. As far as IE is concerned, javascript is ActiveX. Click on the bar and click on allow and click on yes. Once your page is live, this will not happen. You can also give your page 'the mark of the web'. That way (in most cases) it will not display the security bar locally either. Put this right after your <html> tag like so:

<!-- saved from url=(0014)about:internet -->
<!-- this and above comment should be removed for live, non-demo use -->

But, navigating away from the page to another local page, or including another local page on it via a frame or an iframe can be problematical if said page does not also have 'the mark of the web' on it.

03-27-2006, 02:18 PM
Thank you very much! I was just a little worried -- I rarely if ever like to get inside the beast of IE. :)