On Wednesday 03 October 2001 06:37, Roland M�sl wrote:
[...]
|
| 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, Opera itself should be fixed! :-)
You better exclude it from list of supported browsers, instead trying to fix
your code.
Anyway, instead of document.write(...)
you can try createElement("IFRAME") but I doubt Opera supports it.
as about reloading control - you can create some variable and check it. It's
a little bit more tricky and needs testing but can work.
--
Vadim Plessky
http://kde2.newmail.ru (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/