Solved

style sheets?

Posted on 1998-10-29
3
218 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 70 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
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.

705 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