I use a pre load system.

This means the next page will be loaded into an IFRAME.
So the page is in the cache and when the surfer clicks
the forward button, he wondes about his extrem fast
internet connection :-)

To avoid recursive pre loads, the page loaded into
the IFRAME should not load a next page

function preload(s)
{
 if(!document.getElementById){return}
 if(top.location!=location){return}
 document.write("<iframe width=100% height=100% scrolling=no frameborder=0
src="+s+"></iframe>");
}

So I use now

 if(top.location!=location){return}

This works fine with MSIE and Mozilla 0.94, Netscape 6.1

But not at Opera. Opera evaluates
top.location equal location
and starts loading pages like mad.

What other code to do the job, which maybe works even in Opera?


--
Roland M�sl
http://pege.org Clear targets for a confused civilization
http://BeingFound.com Web Design starts at the search engine






Reply via email to