1) Script Title: IFrame Scroller
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...e-scroller.htm
3) Doctype: 4.01 strict
4) Describe problem:
I need to used the IFrame scroller with a fixed position. To achieve this I'm packing it in a wrapper DIV with the following settings:
This works fine in FireFox and other real browsers. In Internet Explorer (so far I'm only testing in IE7), however, the IFrame becomes invisible as soon as the position attribute is changed to fixed. At first I thought this might be because of IE's funky handling of z-index but this doesn't appear to be the case, I can't switch it on with z-index in any combination. If I switch off the fixed position attribute in IE the IFrame scroller immediately becomes visible again.Code:div.newsTickerWrapper { /* background-color:white; */ margin: auto; display: block; position: fixed; bottom: 23px; } div.newsTickerHead { background-color:blue; } div.newsTickerHead #tickerText { font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-weight:bold; color: white; font-size: 9px; text-align:center; } <.....snip.....> <div class="newsTickerWrapper"> <div class="newsTickerHead"> <p id="tickerText"> Today's Hot News </p></div> <script type="text/javascript"> /*********************************************** * IFRAME Scroller script- © 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="100%" height="80px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>') </script> </div>
Any suggestions?![]()



Reply With Quote

Bookmarks