You are here: Re: Textcolor, Backgroundcolor - but i need TextBackgroundcolor ? « HTML « IT news, forums, messages
Re: Textcolor, Backgroundcolor - but i need TextBackgroundcolor ?

Posted by BootNic on 04/01/06 21:34

> "LeftHorn" <leftnospamhorn@spameenoono.nu> wrote:
> news:442eaabb$0$186$edfadb0f@dread11.news.tele.dk....
>
> Hi all, thanks for your input here...
>
> We can for sure agree that one way to solve it was datavalidation
> when the data is going to be processed - but this cant be done
> since different fields can be used for different purposes, and a
> SPACE character is a character that can make sense, even as a
> trailing space.
>
> Therefore i want to be able to assist the user, so they can spot
> theese additional spaces - some of which are totally alright, i
> cant unfortunately make a general rule that strips leading and
> trailing spaces, etc. etc.
>
> So the only way i can see you would be able to help the user, was
> that you had the backgroundcolor ex. white the textbackground ex.
> grey, the textcolor ex. black - that way it would pop into the
> eyes. But i guess that cant be easily done unless im going to
> convert it into somekind of applet or application ?

<!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=utf-8">
<script type="text/javascript">
function tellerror(msg, url, lnn){
alert('Error message= '+msg+'\nURL= '+url+'\nLine Number= '+lnn)
return true
}
window.onerror=tellerror
</script>
<script type="text/javascript">
var b,v,w,g;
function dink(){
b=w.nextSibling;
if(v!=w.value){
v=w.value;
while(b.tagName.toLowerCase()!='label'){b=b.nextSibling;}
if(!b.childNodes[0]){b.appendChild(document.createTextNode(w.value));}
else{b.childNodes[0].data=w.value;}
}
}
function blink(s){
w=s;
g=window.setInterval('dink(w)',250);
}
</script>
<style type="text/css">
..d{
color:red;
background-color:pink;
margin: 0.3em;
padding: 0.2em;
}
</style>
<title></title>
</head>
<body>
<form action="javascript:void(this)">
<input onfocus=
"blink(this)" onblur=
"window.clearInterval(g)"><label class="d"></label><br>
<input onfocus=
"blink(this)" onblur=
"window.clearInterval(g)"><label class="d"></label><br>
<input onfocus=
"blink(this)" onblur=
"window.clearInterval(g)"><label class="d"></label><br>
</form>
</body>
</html>

--
BootNic Saturday, April 01, 2006 1:31 PM

A well-developed sense of humor is the pole that adds balance to your
step as you walk the tightrope of life
*William Arthur Ward*

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация