PDA

View Full Version : Iframe scroller, FFox=ok, IE=not



sleipner
02-16-2006, 07:44 PM
.::EDIT: BTW: sorry if this shouldv gone in the ddrive section of the forums, but it IS a javascript issue... END EDIT::.

I've been using the Iframe scroller (http://www.dynamicdrive.com/dynamicindex2/iframe-scroller.htm) configured to go sideways instead of vertically (think I used something jscheuer1 suggested) for about a month or two (at least) now here on my homepage (http://www.sc.maricopa.edu/boomerz/index.htm).

I was resizing my layout table today on my index page so it would use percentages instead of absolute pixel values (to keep the flash animation above the fold, and to make room for text content (so google can crawl it)) - unfortunately I'm stuck in MS Frontpage here at work (community college dept, dint have dreamweaver on the comp I started on) - so I dont know what it was that Frontpage screwed up, my code looks fine, the same as it was before (fars I can see). The Iframe scroller script is:
<script type="text/javascript">

/***********************************************
* IFRAME Scroller script- &#169; Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//specify path to your external page:
var iframesrc="http://www.sc.maricopa.edu/boomerz/scroller_source.htm"

//You may change most attributes of iframe tag below, such as width and height:
document.write('<iframe id="datamain" src="'+iframesrc+'" width="100%" height="10%" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>')

</script>
compared to the original code (I copied and pasted it right beneath my current, fixed the source, and it still didnt work in IE 6) - original code is:
<script type="text/javascript">

/***********************************************
* IFRAME Scroller script- &#169; Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//specify path to your external page:
var iframesrc="external.htm"

//You may change most attributes of iframe tag below, such as width and height:
document.write('<iframe id="datamain" src="'+iframesrc+'" width="150px" height="150px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="no"></iframe>')

</script>
As I said, it works fine in Firefox, and it USED to work in IE, but now for some odd reason IE doesnt even see it anymore.

If somebody could help me find what Frontpage must have changed so I can fix this ASAP, it would be a great help (my dept boss/supervisor still has her 17" monitor doesnt even have her resolution at 1024*786 (ack, low rez) so of course she still uses IE, and our target audience is older people - specifically the retired and baby boomers, so of course most of em are gonna be using IE also...)