Solved

style sheets?

Posted on 1998-10-29
3
187 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 70 total points
Comment Utility
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
Comment Utility
that's good
but i need a code that works for netscape also
can it be done?
0
 
LVL 1

Expert Comment

by:rajgn
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now