Subject:
|
Re: Attributes of the [A and] IMG tag[s] used in displaying the LUGNET logo
|
Newsgroups:
|
lugnet.publish.html
|
Date:
|
Thu, 3 Jan 2002 03:39:21 GMT
|
Viewed:
|
2215 times
|
| |
| |
Thanks to your tip, here is my candidate for an XHTML-compliant LUGNET banner
anchor (hide the style declaration from Netscape 4 by including it in an
imported style sheet, margin values optional):
<style type="text/css">
img.bannerlugnet
{
border:0;
height:40px;
margin-left:value;
margin-right:value;
margin-top:value;
margin-bottom:value;
width:400px
}
</style>
<a href="http://www.lugnet.com/"
onclick="window.top.location='http://www.lugnet.com/';">
<img class="bannerlugnet"
src="Images/lugnetbanner-400x40-ltblue.gif"
alt="To www.lugnet.com"
title="To www.lugnet.com"></img></a>
In lugnet.admin.general, William R. Ward writes:
> "Constantine Hannaher" <channaher@netscape.net> writes:
> > The target= attribute is deprecated in HTML 4.01 and XHTML 1.0. If I, for
> > whatever reason of vanity and the like, choose to write an XML document that
> > validates against the strict DTDs, then I cannot use the target= attribute. You
> > are correct that the event handler will only work when JavaScript is enabled in
> > the user agent. However, the W3C's position seems to be that for those user
> > agents without the JavaScript functionality, it is up to the user (through a
> > selection on a context menu like Open in New Window) to choose how the link
> > operates. But thanks for responding, Dan. I'm planning to do more study of
> > JavaScript to see if there's a command like window.rewrite but if it is a
> > problem for the admins that I do not use the target="_top" (even though I
> > don't use frames at my web space), I will remove the buttons and banners.
>
> Well, I believe deprecated does not mean prohibited; it means that it
> is going to be prohibited in a future version, so you'll have to
> change it someday. Am I wrong about that?
>
> Does CSS offer an equivalent to this? It seems possible to me. I
> have only ever used CSS for things like font colors and such, but I
> understand it has a lot of other capabilities.
>
> It would seem a shame to have to rely on JavaScript for something this
> basic. But if you really need to do it in JS, I believe what you want
> is (from memory) window.location='http:.....'. Trouble is, the value
> of "window" needs to be the topmost frame, not the current window
> object. I think that there is a "parent" property of the "window"
> which will get you there, but if there's more than one level of frames
> you might need to do something a little more sophisticated than just
> window.parent.location='....'. Consult your favorite DOM reference to
> get the details.
>
> --Bill.
|
|
Message is in Reply To:
12 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|