Reputation: 17804
I've got a very simple snippet of HTML (below) - and both sections seem to be enabled - the script runs and the noscript tag's content shows. What's going on here?
<SCRIPT language="JavaScript" type="text/javascript">
// script omitted
</SCRIPT>
<NOSCRIPT>
<IMG SRC="image.jpg" WIDTH=1 HEIGHT=1 BORDER=0 ALT=""/>
</NOSCRIPT>
Upvotes: 1
Views: 1944
Reputation:
Where did the <NOSCRIPT>
element being placed at? If you placed it inside <head>
tag, try to put it somewhere out of <head>
tag.
<NOSCRIPT>
is unreliable, so you might think the other way around to address your need. PE or GD anyone?
Upvotes: 0
Reputation: 22220
I can't duplicate the problem. But my first guess is that it's simply caused by some malformed HTML.
One suggestion would be to run it through the W3C XHTML Validator and see what it says.
Upvotes: 0
Reputation: 19627
Well, you know as well as I that shouldn't happen.
You're sure there arent any mismatched start/end-tags or something? Or that you accidentally put the same image somewhere else too, outside the noscript tag?
There's bound to be some error in the page that doesn't show in your nicely cleaned up snippet (and I suspect you'll be embarassed when you find it ;-).
I suggest you post a link to it or something.
Upvotes: 1
Reputation: 63435
What browser are you using? I cannot reproduce this behavior in FF3 or IE7. Are you sure the script itself isn't displaying the same image?
Upvotes: 0
Reputation: 61508
I suppose it has something to do with the "// script omitted" part..
i.e.
<SCRIPT blah blah>
var x = "</SCRIPT>"; // <--- Whoops?
And by "very simple snippet", is it a full HTML page or just the SCRIPT and NOSCRIPT tags?
Try:
<HTML><BODY>
<SCRIPT language="JavaScript" type="text/javascript">
// script omitted
</SCRIPT>
<NOSCRIPT>
<IMG SRC="image.jpg" WIDTH=1 HEIGHT=1 BORDER=0 ALT=""/>
</NOSCRIPT>
</BODY></HTML>
And see if there is any difference..
Upvotes: 1