Page 1 of 1

Opera 6 setTimeout not working?

Posted: Tue Feb 20, 2007 10:40 pm
by JAB Creations
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


The code works great in Opera 6 but only without the timeout. Old versions of [url=http://www.oldapps.com/opera.htm]Opera[/url] are available to download.

[b]Original JS Code[/b]
[syntax="javascript"]function hideDiv(divID_as_a_string) {
 var myReference = getRefToDiv(divID_as_a_string);
 if( !myReference ) { window.alert('Nothing works in this browser'); return; }
 if( myReference.style ) { myReference.style.visibility = 'hidden'; } else {
  if( myReference.visibility ) { myReference.visibility = 'hide'; } else {
   window.alert('Nothing works in this browser'); return; } }
}
Latest JS Attempt

Code: Select all

function hideTimedDiv(divID_as_a_string) {
setTimeout ("hideTimedDiv('" + divID_as_a_string + "',3000);"); {
var myReference = getRefToDiv(divID_as_a_string);
if(!myReference ) { window.alert('Nothing works in this browser'); return; }
if( myReference.style ) { myReference.style.visibility = 'hidden'; } else {
if( myReference.visibility ) { myReference.visibility = 'hide'; } else {
window.alert('Nothing works in this browser'); return; } }
}
}
HTML Event
<element onEVENT="hideTimedDiv('exampleb8');"

feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Wed Feb 21, 2007 2:38 am
by AKA Panama Jack
Man, Opera 6 is OLD. Supporting Opera 6 would be like supporting IE 4 or Netscape 1. I mean we are up to Opera 9.

The last version of Opera 6 was released in 2002 or more than 4 years ago and it isn't really supported. You should move on to supporting more recent versions.

Posted: Wed Feb 21, 2007 1:51 pm
by JAB Creations
If you're not helping towards a solution you're working towards a problem.

IE 4, Netscape4, and Opera 5 and up all have enough CSS support that simple patches can make them work almost or as well as more modern browsers.

My question still stands unanswered.