|
Posted by jojo on 10/15/06 11:26
Steve wrote:
I almost forgot it: your code is missing a doctype...
>> <html>
>>
>> missing a <head> and a <title> here...
>
> neither <head> nor <title> are required.
No, <head> isn't, but <title> is.
>>> <script language="javascript">
>>>
>> No, it's <script type="text/javascript">
>
> you're a picky bastard, aren't you. it is also correct the way i have
> written it as well.
Just bullshit. It isn't anymore. The title attribute is required now.
>>> var newSource =
>> .
>> .
>> .
>> .
>> .
>>> </script>
>>> <body onload="initialize();" onunload="quit();">
>>> <img id="imageToSwap"
>>>
>>> src="http://www.onzemaninteheran.com/uploaded_images/microphone-755244.jpg">
Forgot it, too: missing alt="" (Yes, it *is* required!)
>>> </body>
>>> </html>
>>
>> This would not work of course if JS is switched off in the user's browser.
>
> really? no shit! what the fuck is up your ass, jojo?
Just wanted to point out that I wouldn't use JS for features I want to
work in every browser. You can use JS for things which aren't required
to view your site the right way. But you really shouldn't force the user
to switch on Javascript just to view your site. It's the users choice if
he wants to enable JS or not and every ste schould work without JS, too.
Navigation:
[Reply to this message]
|