This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > November 2004 > site comments





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author site comments
Laphan

2004-11-16, 7:13 pm

Hi All

I'm a real newbie to this, but I'd like your comments on the following web
site:

http://www.haemophiliacs.org.uk

Its a bit low on content at the moment because work is stopping me from
spending time with it, but I'd still like your comments all the same.

Rgds

Laphan




----== Posted via codecomments.com - Unlimited-Uncensored-Secure Usenet News==----
http://www.codecomments.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Fred Oz

2004-11-21, 12:17 pm

Laphan wrote:
[...]
> Its a bit low on content at the moment because work is stopping me from
> spending time with it, but I'd still like your comments all the same.

[...]

Firstly, validate your page:

http://validator.w3.org/

Following are some of the errors:

<SCRIPT LANGUAGE="javascript" ...

Ditch "LANGUAGE", it's been depreciated for years. Use the required:

<SCRIPT TYPE="text/javascript" ...

And on your links:

<A HREF="aboutus.asp" onMouseOver="window.status='Read about who we
are and what we want to achieve';return true"

If I have my mouse over the link, I'm not looking at the status bar so
putting some content there is pointless. It is also very unreliable,
many browsers allow users to bar you from changing the status bar.

onMouseOut="window.status='Haemophiliacs.org.uk';return true"

return true" is redundant - onmouseover can't cancel the href, so
regardless of the value returned, if the user clicks on the href it
will be followed.

If you had an onclick function, then it is useful to use return false;
to cancel the href if you want.

Lastly, your img tags must have an alt attribute, even if it's empty:

<img src="..." alt="">

Cheers, Fred.
Michael Winter

2004-11-21, 12:17 pm

On Sun, 21 Nov 2004 23:07:31 +1000, Fred Oz <ozfred@iinet.net.auau> wrote:

[snip]

> onMouseOut="window.status='Haemophiliacs.org.uk';return true"
>
> return true" is redundant - onmouseover can't cancel the href, so
> regardless of the value returned, if the user clicks on the href
> it will be followed.


In this particular case, that's not true. For whatever historical reason
(probably a bug), you have to return true when modifying the
defaultStatus[1] and status[2] properties. However, in general that advice
is correct.

[snip]

Mike


[1]
<URL:http://web.archive.org/web/20040214...ow.html#1202080>

[2]
<URL:http://web.archive.org/web/20040214...ow.html#1203861>

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Philip Ronan

2004-11-21, 7:16 pm

Michael Winter wrote:

> On Sun, 21 Nov 2004 23:07:31 +1000, Fred Oz <ozfred@iinet.net.auau> wrote:
>
> [snip]
>
>
> In this particular case, that's not true. For whatever historical reason
> (probably a bug), you have to return true when modifying the
> defaultStatus[1] and status[2] properties.


Not a bug.

By returning a value of "true" you are telling the browser that the
onmouseout event has been handled and needs no further processing. This has
the effect of disabling the default action of displaying the link's href
attribute in the status bar (which would obviously overwrite the status text
just set by the event handler).

--
Philip Ronan
phil.ronanzzz@virgin.net
(Please remove the "z"s if replying by email)


Michael Winter

2004-11-21, 7:16 pm

On Sun, 21 Nov 2004 17:45:46 +0000, Philip Ronan
<phil.ronanzzz@virgin.net> wrote:

[snip]

> By returning a value of "true" you are telling the browser that the
> onmouseout event has been handled and needs no further processing.


I forgot about that. It doesn't really apply any more: event propagation
is more involved and has other means to stop the process.

By the way, it doesn't matter what you do with Opera: if it wants to
display something - a link URL or element title, for example - it will
regardless.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Fred Oz

2004-11-23, 7:26 pm

Laphan wrote:
[...]
> Its a bit low on content at the moment because work is stopping me from
> spending time with it, but I'd still like your comments all the same.

[...]

Firstly, validate your page:

http://validator.w3.org/

Following are some of the errors:

<SCRIPT LANGUAGE="javascript" ...

Ditch "LANGUAGE", it's been depreciated for years. Use the required:

<SCRIPT TYPE="text/javascript" ...

And on your links:

<A HREF="aboutus.asp" onMouseOver="window.status='Read about who we
are and what we want to achieve';return true"

If I have my mouse over the link, I'm not looking at the status bar so
putting some content there is pointless. It is also very unreliable,
many browsers allow users to bar you from changing the status bar.

onMouseOut="window.status='Haemophiliacs.org.uk';return true"

return true" is redundant - onmouseover can't cancel the href, so
regardless of the value returned, if the user clicks on the href it
will be followed.

If you had an onclick function, then it is useful to use return false;
to cancel the href if you want.

Lastly, your img tags must have an alt attribute, even if it's empty:

<img src="..." alt="">

Cheers, Fred.
Fred Oz

2004-11-27, 7:16 pm

Laphan wrote:
[...]
> Its a bit low on content at the moment because work is stopping me from
> spending time with it, but I'd still like your comments all the same.

[...]

Firstly, validate your page:

http://validator.w3.org/

Following are some of the errors:

<SCRIPT LANGUAGE="javascript" ...

Ditch "LANGUAGE", it's been depreciated for years. Use the required:

<SCRIPT TYPE="text/javascript" ...

And on your links:

<A HREF="aboutus.asp" onMouseOver="window.status='Read about who we
are and what we want to achieve';return true"

If I have my mouse over the link, I'm not looking at the status bar so
putting some content there is pointless. It is also very unreliable,
many browsers allow users to bar you from changing the status bar.

onMouseOut="window.status='Haemophiliacs.org.uk';return true"

return true" is redundant - onmouseover can't cancel the href, so
regardless of the value returned, if the user clicks on the href it
will be followed.

If you had an onclick function, then it is useful to use return false;
to cancel the href if you want.

Lastly, your img tags must have an alt attribute, even if it's empty:

<img src="..." alt="">

Cheers, Fred.
Michael Winter

2004-11-27, 7:16 pm

On Sun, 21 Nov 2004 23:07:31 +1000, Fred Oz <ozfred@iinet.net.auau> wrote:

[snip]

> onMouseOut="window.status='Haemophiliacs.org.uk';return true"
>
> return true" is redundant - onmouseover can't cancel the href, so
> regardless of the value returned, if the user clicks on the href
> it will be followed.


In this particular case, that's not true. For whatever historical reason
(probably a bug), you have to return true when modifying the
defaultStatus[1] and status[2] properties. However, in general that advice
is correct.

[snip]

Mike


[1]
<URL:http://web.archive.org/web/20040214...ow.html#1202080>

[2]
<URL:http://web.archive.org/web/20040214...ow.html#1203861>

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Michael Winter

2004-11-27, 7:16 pm

On Sun, 21 Nov 2004 17:45:46 +0000, Philip Ronan
<phil.ronanzzz@virgin.net> wrote:

[snip]

> By returning a value of "true" you are telling the browser that the
> onmouseout event has been handled and needs no further processing.


I forgot about that. It doesn't really apply any more: event propagation
is more involved and has other means to stop the process.

By the way, it doesn't matter what you do with Opera: if it wants to
display something - a link URL or element title, for example - it will
regardless.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews