YAT - 11/08/99 06:25 AM
Re: YAT - 11/09/99 06:01 AM
Hey Tim, this shortened version works also
[This message has been edited by Rod Watson (edited 11-08-99).]
[This message has been edited by Rod Watson (edited 11-08-99).]
[This message has been edited by Rod Watson (edited 11-08-99).]
[This message has been edited by Rod Watson (edited 11-08-99).]
[This message has been edited by Rod Watson (edited 11-08-99).]
[This message has been edited by Rod Watson (edited 11-08-99).]
[This message has been edited by Rod Watson (edited 11-08-99).]
Re: YAT - 11/09/99 06:16 AM
Re: YAT - 11/09/99 08:46 AM
Testing CSS Link stuff
Here's the code:
[STYLE TYPE="text/css"]
A.test:link {font-size: 16pt; text-decoration:underline; background:navy; font-weight: 200; color:yellow}
What it does: The initial presentation of the link is shown as yellow on navy, underlined
A.test:visited {font-size: 12pt; text-decoration:underline;font-style: italic;Color:green}
What it does: Once the link has been visited, it gets changed to green and slightly smaller - still underlined so you know its a link
A.test:active {font-size: 16pt; text-decoration:none; Color:red}
What it does: When you click on it, and until you return to this page, the link should turn red
A.test:hover {font-size: 16pt; text-decoration:none;font-style: italic; background:red;font-weight: 200; color:white}
What it does: When you move your mouse over the link it will change color and become italicized
[/STYLE]
[a href="http://216.46.163.166/forums/Forum9/HTML/000170.html" CLASS="test" target=_blank]Testing CSS Link stuff [/a]
Note the inclusion of the CLASS tag
Please change square brackets to angle brackets to create a working example.
Rgds,
__
/im
[This message has been edited by JTimothyA (edited 11-09-99).]
Re: YAT - 11/09/99 02:43 PM
That is wild on your color scheme when your ALINK is activated, a mouseover will change it to italic, without changing the size and color back to the HOVER scheme. Wierd stuff.
PS: Anyone reading this thread with Netscape browsers are probably wondering what the heck we are talking about. The effects only work with IE 4.0 and 5.0. Netscape just ignores the effects.
Rod Watson |
[This message has been edited by Rod Watson (edited 11-09-99).]
[This message has been edited by Rod Watson (edited 11-09-99).]
[This message has been edited by Rod Watson (edited 11-09-99).]
[This message has been edited by Rod Watson (edited 11-09-99).]
[This message has been edited by Rod Watson (edited 11-09-99).]
Re: YAT - 11/09/99 07:29 PM
Welcome to inheritance and the 'cascading' portion of CSS. The cascading order is: Inline > Embedding > Linking. Here's an example that shows order of precedence:
Linked css file named:
yat.css: H3 {font-size: 30pt; Color:red}
HTML:
[LINK REL="stylesheet" TYPE="text/css" HREF="yat.css"]
[STYLE TYPE="text/css"]
H3 {Color:blue; text-decoration:underline}
[/STYLE]
[H3 STYLE="color:green"]Welcome to Styles.[/H3]
And here's the result:
Welcome to Styles.
You could have subclassed my 'test' class to over-ride what you wanted to change.
One other note, Rod. The notion of a 'message' in these forums is just a higer level abstraction in relation to the page itself. The browser sees HTML and other things of which its aware, like CSS - but it has no knowledge of and does not act upon what we know as a 'message'. Unless coded to act otherwise, there is no discreteness between what is coded in one message versus another - its all just big glob of HTML and follows HTML rules. For example, once someone creates a class, it can be used throughout the page by anyone who knows its attributes. So you could take my ".help" class - used in my prior message to create the white-on-blue text - and use that in a subsequent message to do the same thing.
Another example is italicized text. See Art's sig in the message following this one. That comes from the code:
I {Color:blue; text-decoration:underline}
which I originally used in the demonstration of cascading. Ya gotta be careful of the impact you have on others - thats why its critical to localize styles to specific tags you use. I switched the tag from 'I' (italics) to 'H3' (Header3) to elminate the problem.
I think now, the various links are working in my example above. Problems stemmed from my trying to ignore the UBB parser - and that never works. :-)
Rgds,
__
/im
[This message has been edited by JTimothyA (edited 11-09-99).]
Re: YAT - 11/09/99 08:48 PM
When I clicked on it, a new window opened as usual. But when I closed the new window, the link reappeared in the prior window in larger red text on the default field color, and not underlined. It did not return to what appeared to me initially as a smaller font, green & underlined, with the default field color.
Not nit-picking, thought you'd like to know.
------------------
-Art
Re: YAT - 11/09/99 08:53 PM
I didn't make my signature blue nor underlined. Must be residual code stuff. Lessee if it happens again:
------------------
-Art
Re: YAT - 11/09/99 08:58 PM
__
/
Re: YAT - 11/09/99 09:08 PM
The non-underlined red font you saw after returning was Tim's ALINK (active link) colors. The ALINK colors will stay "on" after returning to a page, until you click on the page somewhere, etc.
[This message has been edited by Rod Watson (edited 11-09-99).]
Re: YAT - 11/09/99 09:12 PM
And yes - change focus from the link to something else and you should see the link change to the 'visited' style.
__
/im
[This message has been edited by JTimothyA (edited 11-09-99).]
Re: YAT - 11/09/99 09:16 PM
Good point, Tim, on the specificity aspect of the scripting. That's why when I first tried the css a couple of days ago, it was effecting the whole page, which I didn't want to do and stopped. I have mine set up now that the table and text mouseovers would only work if someone links to my .js or .css file, with the "rod" class, and won't effect others signatures and links.
You know though, after opening up this can of dangerous worms, somewhere along the line we will be opening a thread which will have orange letters on a purple background, one large mouseover flashing background of fuschia, with the entire thread at 96 point font sizes! LOL.
[This message has been edited by Rod Watson (edited 11-09-99).]
[This message has been edited by Rod Watson (edited 11-09-99).]
Re: YAT - 11/09/99 09:53 PM
And with the potential to cause global changes - at least at a page level - I don't want to end up as the guy who comes in the middle of the night to clean the graffitti off the walls. ;->
Something about responsibility and power going hand in hand - quick Art, a pithy quote.
Rgds,
__
/im
Re: YAT - 11/09/99 10:32 PM
"You can give a guy knowledge, and he will do stupid things with it for a day...OR ...you can teach a guy how to increase his own knowledge, but he will just create many more stupid things for the rest of his life."
Re: YAT - 11/09/99 11:43 PM
...The Association of Guys might disbar you.
Re: YAT - 11/10/99 12:35 AM
You probably thought we were down here in the basement benignly futzing with how to play little movies.
Actually we're filling logic balloons with different colors of paint. Wanna help carry 'em upstairs? ;-)
__
/im
Re: YAT - 11/10/99 06:44 AM
How is that one? (g)
Well, probably not what you had in mind, not too pithy and not very quick at all (a Guy's gotta work *sometime*, ya know ), but if I give ya more than one, does that make up for the other deficiencies?
Responsibility is the price of greatness.
-- Winston Churchill
Responsibility educates.
-- Wendell Phillips
The Buck Stops Here
-- Harry S. Truman
There is no realizable power that man cannot, in time, fashion the tools to attain, nor any power so secure that the naked ape will not abuse it. So it is written in the genetic cards - only physics and war hold him in check. And the wife who wants him home by five, of course.
-- Encyclopaedia Apocryphia
Power corrupts. Absolute power is kind of neat.
-- John Lehman, Secretary of the Navy, 1981-1987
I hate quotations.
--Ralph Waldo Emerson
...and my personal favorite (which I think was penned by Thomas Jefferson), goes something like this:
With all these postings, what more is necessary to make us a happy and prosperous people? Still one thing more, fellow citizens -- a wise and frugal Cruise Director, which shall restrain Saints from injuring Wackos, which shall leave them otherwise free to regulate their own pursuits of industry and improvement, and shall not take from the mouth of the poster the code he has learned. This is the sum of good Fora, and this is necessary to close the circle of our felicities.
(I may have a couple of the words wrong, since I’m working from memory.)
------------------
-Art
Re: YAT - 11/11/99 02:56 AM
Now if I have hours to read and try to understand this information or if this can be explained in English, then I will feel I have learned something this week. (No real need to reply in English just yet, I will read everything later and then ask my questions.)
------------------
Jim
Dr. Who ?