SHOP PRODUCTS
Houzz Logo Print
dale_gw

CSS Question

Dale
22 years ago

Im re-doing my site from a Framed version to CSS, not sure if thats like jumping from the fire into the toilet or not :)

What Im trying to do is when moused over the text will turn from Blue to Black when the White box appears over it...what am I missing here...

(link rel="stylesheet" type="text/css" href="default.css")

(STYLE)

A:link (color: Black;)

A:visited (color: White;)

A:active (color: Red;)

A:hover (background: White;)

A:hover.green (background: Green;)

(/STYLE)

(SCRIPT LANGUAGE="Java Script")

var event = 0; //for backwards compatibility.

var id = ""; //for backwards compatibility.

function rollBG(event,name,color) (

if (document. layers) ( //test for communicator 4+

if (color==null)

var color = (event. type == "mouseover") ? "Silver" : "White";

document[name]. bgColor = color; //set the background color

)

)

(/SCRIPT)

Im back from Disneyland..lol

Comments (3)

Sponsored