Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: open
Another way would be to use a hidden <iframe> and write an onload event handler to copy the contents into a <div>. It would work something like this, but I haven't tested the code below.
<iframe name="fudge" onload="copyTo(this,'divId')" height="0" src="default.html">
// fudge.location.href = url;
fudge.src = url;
var div = document.getElementById(divId);
if (div) div.innerHTML = iframe.document.body.innerHTML;
When testing, set the iframe height to something like 100
Again, without more detail as to what you want to do and why, no one can give you reliable advice. So far, you haven't even said whether you are using static html or php (or something else).
I notice on a couple of exact same rotators I have, replacing it to rotate iframes instead of images, that the iframes rotate at a couple seconds minimum, for a tiny html file or tiny .txt file. Compared to rotating the images which can go very, very, fast in milliseconds even. That is why I wanted to find out other options other than Iframes to see if I could rotate some items faster. Please let me know, thanks.
BTW ..and politeness when asking questions which were not expressed as detailed as you may have thought will get you much more ( free ) help ..or you might try fora where you can be cavalier with the respondants ..but they usually require that you pay to see the answers ..or to get the knowledge that you dont have ..kaled was trying to help ..and needed clarification to do so