anybody got any idears how to do this in css
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script type="text/javascript">
function test (){
mesg = "We make products that don't come back for customers that do!";
isNS = (navigator.appName == "Netscape")
isIE = (navigator.appName == "Microsoft Internet Explorer")
text = ("<strong ><font size=4>"+mesg+"</font></strong>")
if (isNS) {
document.write("<blink>" + text + "</blink>")}
else if (isIE) {
document.write("<MARQUEE BEHAVIOR=ALTERNATE DIRECTION=RIGHT>" + text + "</MARQUEE>")}}
</script>
</head>
<body>
<script type="text/javascript"> test();</script>
</body>
</html>
the function works fine just doesn't validate
any help would be great
thanks in advancedunno if i understand your question..
if you mean this line:
text = ("<strong ><font size=4>"+mesg+"</font></strong>")
it would be something like:
text = ("<span class="classname">"+mesg+"</span>")
.classname {font-size: large; font-weight: bold;}thanks for that
john
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script type="text/javascript">
function test (){
mesg = "We make products that don't come back for customers that do!";
isNS = (navigator.appName == "Netscape")
isIE = (navigator.appName == "Microsoft Internet Explorer")
text = ("<strong ><font size=4>"+mesg+"</font></strong>")
if (isNS) {
document.write("<blink>" + text + "</blink>")}
else if (isIE) {
document.write("<MARQUEE BEHAVIOR=ALTERNATE DIRECTION=RIGHT>" + text + "</MARQUEE>")}}
</script>
</head>
<body>
<script type="text/javascript"> test();</script>
</body>
</html>
the function works fine just doesn't validate
any help would be great
thanks in advancedunno if i understand your question..
if you mean this line:
text = ("<strong ><font size=4>"+mesg+"</font></strong>")
it would be something like:
text = ("<span class="classname">"+mesg+"</span>")
.classname {font-size: large; font-weight: bold;}thanks for that
john