It doesn't have to be named that, but then in the javascript, where it says:
Code:
//specify path to your external page:
var iframesrc="external.htm"
Would have to be changed, so change the highlighted to the file name.
This is very simple. You can also make nemerous scollers by chaning your js to this:
Code:
<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= new Array();
var iframesrc = ["page1.html","page2.html"] //and then keep going with the same patern, you can change file name.
for(i=0;i<=iframesrc.length-1;i++){
//You may change most attributes of iframe tag below, such as width and height:
document.write('<iframe id="datamain" src="'+iframesrc[i]+'" width="150px" height="150px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="no"></iframe>');
}
</script>
I Hope this Helps,
Nile
Bookmarks