W
William Gill
dorayme said:This expression is a little too babyish for grown ups around here.
What if neither of them are paying attention <g>?
dorayme said:This expression is a little too babyish for grown ups around here.
William Gill said:What if neither of them are paying attention <g>?
^^^^^^
Stop putting HTML within STYLE elements. They are *not* required as so
many erroneously believe.
Having an empty HREF is not a good idea, can have unwanted side effects.
Far better to attach an onclick handler directly to the element, in your
example it would be the SPAN, however I would think DIV of would be
more appropriate.
2. Put all your JavaScript in an *external* file.
Jani said:<NOFORUM>
Where do you find HTML here? "<!--" ... only this?
That is HTML. It's an HTML comment.
Jani said:<NOFORUM>
Where do you find HTML here? "<!--" ... only this?
An onclick handler can change the color of (or hide/show) text?
In this case it is allowed to use document.writeln?
</NOFORUM>
Oh this. But here they explain something:
http://www.w3.org/TR/REC-CSS1/#containment-in-html
conforming SGML parsers will not consider the above
style sheet to be a comment that is to be removed.
Yes? But it is JavaScript doing it, not HTML. If JavaScript is disable
then no color change or hide/show...
One side effect that I was referring to having empty HREF to just
accommodate some onclick handler, if the link is a ways down the page
when clicked it will reload the document making it "jump" to the top of
the page. Most likely not the desired effect if all you wanted to do was
to "expand" a block of text.
Jani said:Yes? But it is JavaScript doing it, not HTML. If JavaScript is disable
then no color change or hide/show...
One side effect that I was referring to having empty HREF to just
accommodate some onclick handler, if the link is a ways down the page
when clicked it will reload the document making it "jump" to the top of
the page. Most likely not the desired effect if all you wanted to do was
to "expand" a block of text.
On cnn.com I found now a very, very nice gif, that rotates from [-] to
[+].
It has only 649 bytes - when you change the transparent background to
black in Fireworks the size gets 204 kb!!!
Jani said:On cnn.com I found now a very, very nice gif, that rotates from [-] to
[+].
It has only 649 bytes - when you change the transparent background to
black in Fireworks the size gets 204 kb!!!
You must be doing something weird. I loaded it into Fireworks, changed
the background to black and exported it.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.