?
Solved

style sheets?

Posted on 1998-10-29
3
Medium Priority
?
230 Views
Last Modified: 2013-12-25
i would like to create a rollover in which text changes color.
(I am currently doing this with bitmaped text but i want to change to html text).
So style sheets is probably the way to do this...but i dont want to learn the whole theory behind style sheets. Can someone please give me a html code that changes the color of type when rolled over?
0
Comment
Question by:asacui
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
rajgn earned 140 total points
ID: 1856015
suppose you want to change the color of a heading to 'red' on mouseover, then add the event to the H1 tag like:

<H1 onmouseover="this.style.color = 'red';" onmouseout="this.style.color= black';">Make me red</H1>

This is applicable to all the other tags. It's as simple as that!!!
(but be aware that it only works in IE4)
0
 

Author Comment

by:asacui
ID: 1856016
that's good
but i need a code that works for netscape also
can it be done?
0
 
LVL 1

Expert Comment

by:rajgn
ID: 1856017
I don't think you can do the same with NS. Image files with javascript is the only way. But there certain features of DHTML which work in both NS4 and IE4. You can get the details at :

http://developer.netscape.com/docs/technote/index.html?content=dynhtml.html
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses
Course of the Month16 days, 17 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question