![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, |
#3
| |||
| |||
|
|
Thanks for any help or advice, it's appreciated. |
#4
| |||
| |||
|
|
script language=JavaScript Should be <script type="text.javascript !-- Hide script from old browsers The only browser you are hiding anything from is Netscape release 2 and other similar things. These are now totally obsolete. You don't need this cargo cult stuff any more. |
#5
| |||
| |||
|
|
On Tue, 07 Sep 2004 10:27:23 GMT in alt.html.critique, rf wrote: script language=JavaScript Should be <script type="text.javascript !-- Hide script from old browsers The only browser you are hiding anything from is Netscape release 2 and other similar things. These are now totally obsolete. You don't need this cargo cult stuff any more. I'm not so sure of that. I have some pages that have two <div>s that I want one or the other displayed but not both at the same time. So I set one of them to display:none and the other to display:block and offer a button that calls some javascript to toggle between them. Wanting the full page to be accessible when javascript is turned off I got the suggestion to put the above css in a separate file and then put in the head>: script type="text/javascript" document.write('<link rel="stylesheet" href="extra.css">'); /script This does exactly what I want but jigsaw doesn't validate it. Adding the html quoting doesn't affect the operation but it allows it to validate. You can see how I use it at <http://www.afclt.org>. |
#6
| |||
| |||
|
|
steŠ wrote in message ... Thanks for any help or advice, it's appreciated. A photographer who doesn't know how to use 'Photoshop' D'oh. |
|
Thumbnails at 12K which should be no more than 2K maximum. |
|
No wonder the galleries take so long to load on dial-up lines. (More than 60% of all users) |
#7
| |||
| |||
|
|
Rick Pasotto wrote: On Tue, 07 Sep 2004 10:27:23 GMT in alt.html.critique, rf wrote: script language=JavaScript Should be <script type="text.javascript !-- Hide script from old browsers The only browser you are hiding anything from is Netscape release 2 and other similar things. These are now totally obsolete. You don't need this cargo cult stuff any more. I'm not so sure of that. I have some pages that have two <div>s that I want one or the other displayed but not both at the same time. So I set one of them to display:none and the other to display:block and offer a button that calls some javascript to toggle between them. Wanting the full page to be accessible when javascript is turned off I got the suggestion to put the above css in a separate file and then put in the head>: script type="text/javascript" document.write('<link rel="stylesheet" href="extra.css">'); /script This does exactly what I want but jigsaw doesn't validate it. Adding the html quoting doesn't affect the operation but it allows it to validate. You can see how I use it at <http://www.afclt.org>. [post intentionally untrimmed for clarity, or in my case unclarity] What has all of this to do with the cargo cult !-- Hide script from old browsers I mentioned above? Do you have a case of bad snippage? |
#8
| |||
| |||
|
|
You have a reading comprehension problem. Evidently *some* people need to be told every little detail. This does not validate: script type="text/javascript" document.write('<link rel="stylesheet" href="extra.css">'); /script This *does* validate: script type="text/javascript" !-- document.write('<link rel="stylesheet" href="extra.css">'); -- /script What you refer to as 'cargo cult' is actually quite useful *today*. I did make one error though. I should have referenced validator.w3.org rather than jigsaw.w3.org. |
#9
| |||
| |||
|
|
Thanks for the reply Richard. |
#10
| |||
| |||
|
|
Hi there, I'm trying to create myself a photography website using a CSS based layout. I'd normally create a website using tables, so this is a first for me. The link to my website is here: http://tinyurl.com/4focd (snip) |
![]() |
| Thread Tools | |
| Display Modes | |
| |