Scrolling HTML Basics, Part II: Dyanmic HTML Element Manipulation - www.docjavascript.com | WebReference

Scrolling HTML Basics, Part II: Dyanmic HTML Element Manipulation - www.docjavascript.com


URL Manipulation

Internet Explorer suffers from a deficiency that you cannot assign a URL to a Dynamic HTML element's content. You can assign a string to the innerHTML or outerHTML properties of a Dynamic HTML, as we have explained in column 13, Scrolling JavaScript Banners:

whichEl.innerHTML = newsStr;

But strings are not flexible enough. Our algorithm calls for feeding firstPage and secondPage from an external file that can be updated from time to time. The solution is to load the external feed onto the page somehow, and then extract the messages from it. We use the IFRAME tag to load the page. Somewhere on your page put: