Page 1 of 1

Should I be concerned with these?

Posted: Mon Jan 10, 2005 7:35 pm
by SMR
I found a banner generator script,and although it works,some things are just not supported by some browsers.
Iv dont the Dreamweaver check as well as the html_tidy check.They are both giving me errors and warnings,some the same,some different.
I just want this thing to show up correctly.
One example is this:

Code: Select all

Warning The OnClick attribute of the A tag is not supported.
Opera 2.1
line 118 <a onclick= "NewWindow(this.href,'instructions','500','350','yes','center');return false" onfocus="this.blur()" href= "instructions.html" style="color: #ffffff;">
also lines 124, 130
Another would be:

Code: Select all

Error The leftmargin attribute of the BODY tag is not supported.
Mozilla 1.0, Netscape Navigator 7.0, Safari 1.0
line 9 <body leftmargin="0" topmargin="0" rightmargin="0" marginwidth="0" marginheight="0">
or:

Code: Select all

Warning The MarginHeight attribute of the Body tag is not supported.
Microsoft IE for Macintosh 5.2, Microsoft Internet Explorer 5.0, Microsoft Internet Explorer 5.5, Microsoft Internet Explorer 6.0, Opera 2.1, Opera 3.0, Opera 3.5
line 10 <body leftmargin="0" topmargin="0" rightmargin="0" marginwidth="0" marginheight="0">
They seem simple enough,but Im guessing some could be CSS?
While the first is confusing me.

Re: Should I be concerned with these?

Posted: Mon Jan 10, 2005 9:55 pm
by feyd
Opera 2.1 isn't something to really worry about anymore since Opera is on 7 right now. You may want to toss the whole thing into a href call with a more simplified function to call for the whole thing.

As for the others, unknown attributes are ignored by browsers typically. Yes, you can do those with CSS, if you want to.