?
Solved

style sheets?

Posted on 1998-10-29
3
Medium Priority
?
223 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

752 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