Results 1 to 3 of 3

Thread: scrollable iframe getting snagged by IE warnings... help?

  1. #1
    Join Date
    Mar 2006
    Location
    Providence, RI, USA
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default scrollable iframe getting snagged by IE warnings... help?

    I recently installed this script: http://www.dynamicdrive.com/dynamici...ramescroll.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>
    </div>
    </layer></td>

    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?

    Thanks,

    Jake

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    <html>
    <!-- saved from url=(0014)about:internet -->
    <!-- this and above comment should be removed for live, non-demo use -->
    <head>
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2006
    Location
    Providence, RI, USA
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much! I was just a little worried -- I rarely if ever like to get inside the beast of IE.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •