Let's say you have a link:
Code:
<a href="some.txt" target="miframe">Some Text</a>
You could:
Code:
<a href="some.txt" target="miframe" onmouseup="ifr();">Some Text</a>
But that might have problems if the text file doesn't load fast enough into the iframe. It might work fine locally, but probably not on a slow live connection.
Here's something that would probably work out though:
Code:
<script language="JScript">
<!--
window.onload = function(){
ifr();
if (window.attachEvent)
document.getElementsByName('miframe')[0].attachEvent('onload', ifr);
}
var ifr = function()
{
if (!document.fireEvent) return;
var a = document.frames['miframe'].document.body;
a.style.scrollbarArrowColor='white';
a.style.scrollbarBaseColor='black';
a.style.scrollbarDarkShadowColor='#3F3F3F';
a.style.scrollbarTrackColor='black';
a.style.scrollbarFaceColor='black';
a.style.scrollbarShadowColor='#3F3F3F';
a.style.scrollbarHighlightColor='#3F3F3F';
a.style.scrollbar3dLightColor='black';
}
//-->
</script>
Bookmarks