473,663 Members | 2,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onFocus/onBlur

For those who have been using Outlook Express, you must be pretty used to
the fact that whenever you focus on the preview section, the header for the
preview turns from grey to blue, while the text turns from black to white.

Here is my HTML script

############### ############### #
<body marginheight="0 " marginwidth="0" topmargin="0" leftmargin="0"
onFocus="docume nt.bgColor='ora nge';document.b ody.font.fstag. fgColor='black' "
onBlur="documen t.bgColor='#D6D 3CE';document.b ody.font.fstag. fgColor='white' "
bgcolor="#D6D3C E">
<table width="100%" height="100%" cellpadding="0" cellspacing="0"
border="0">
<tr>
<td width="100%" height="40"
style="border-width:1px;borde r-style:solid;bor der-color:threedhig hlight
threeddarkshado w threeddarkshado w threedhighlight ;" name="ts" id="ts">
<table width="100%" height="100%" cellpadding="0" cellspacing="3"
border="0">
<tr>
<td><font name="fstag"
style="font-family:tahoma;f ont-size:8pt;font-weight:bold">Fr om:<br>Subject: <
/font></td>
<td>Actions</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="white" height="95%">&n bsp;</td>
</tr>
</table>
</body>
############### ############### #

In this case, I want to change the text color for the word "From:" &
"Subject:" whenever this frame is being onFocus. Anyone figure out on this?
Thanks!
Jul 23 '05 #1
3 3910
In article <42********@new s.starhub.net.s g>, good@thinking enlightened us
with...
For those who have been using Outlook Express, you must be pretty used to
the fact that whenever you focus on the preview section, the header for the
preview turns from grey to blue, while the text turns from black to white.

Here is my HTML script


Anyone who allows script to run in their email client is just asking for
problems.
Most of us would never allow script to run in e-mail.
Those who do are either ignorant of the risks or very trusting of others. ;)

Then there are those of us who won't even allow images to show by default in
our client. :p

Since this sort of thing would only work in Outlook, I assume you know for
sure your users are only using Outlook? It's not like there aren't several
other popular clients out there, plus all the web-based clients like hotmail,
yahoo, and gmail.

--
--
~kaeli~
A man needs a mistress... just to break the monogamy.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
Hi Kaeli,

Nope. It's not an email system. I developed a system that is based in
Microsoft Outlook Express GUI. Instead of emails, it is transactions about
mails, fax and phone, just like what you see in FEDEX systems. We're in the
logistic & mail services business.

All I require is that of a javascript command that can allow onfocus and
onblur of a certain frame object.

Cheers,
Peter Tan


"kaeli" <ti******@NOSPA M.comcast.net> wrote in message
news:MP******** *************** *@nntp.lucent.c om...
In article <42********@new s.starhub.net.s g>, good@thinking enlightened us
with...
For those who have been using Outlook Express, you must be pretty used to the fact that whenever you focus on the preview section, the header for the preview turns from grey to blue, while the text turns from black to white.
Here is my HTML script

Anyone who allows script to run in their email client is just asking for
problems.
Most of us would never allow script to run in e-mail.
Those who do are either ignorant of the risks or very trusting of others.

;)
Then there are those of us who won't even allow images to show by default in our client. :p

Since this sort of thing would only work in Outlook, I assume you know for
sure your users are only using Outlook? It's not like there aren't several
other popular clients out there, plus all the web-based clients like hotmail, yahoo, and gmail.

--
--
~kaeli~
A man needs a mistress... just to break the monogamy.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #3
In article <42********@new s.starhub.net.s g>, good@thinking enlightened us
with...
Hi Kaeli,

Nope. It's not an email system.
Ah, sorry, I misunderstood your comment about Outlook, then.
I developed a system that is based in
Microsoft Outlook Express GUI. Instead of emails, it is transactions about
mails, fax and phone, just like what you see in FEDEX systems. We're in the
logistic & mail services business.

All I require is that of a javascript command that can allow onfocus and
onblur of a certain frame object.


Is this a real browser window or a component object?
Assuming it's a real browser window, a frame is still just a window object.
You can do all the same things with it, including trap onFocus and onBlur.
If the html/script that you posted is what you actually are trying to use, it
doesn't work because you're addressing the properties all wrong. I looked at
that and thought it was some sort of Outlook script or something. :)
You don't apply style to a font tag. You apply style to an actual element in
the page and ditch the font tag.
And WTF is this?
style="border-width:1px;borde r-style:solid;bor der-color:threedhig hlight
threeddarkshado w threeddarkshado w threedhighlight ;"

Make your stuff use CSS classes properly and then check this out. I think
it's more what you're going for.
http://www.webreference.com/js/column66/8.html

--
--
~kaeli~
I can't sleep. The clowns might eat me.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
20269
by: Rich Morey | last post by:
Hello, I have created a form and assigned each of the form elements to a class in a style sheet. I would like to know if it is possible to add 'OnFocus' and 'OnBlur' events to the style sheet class so that I can change the background color of a form element WITHOUT having to add 'OnFocus' and 'OnBlur' events to each individual form element..
1
10485
by: Tzachi | last post by:
Hello all, I have a function that dynamically adds rows and columns to the page. Everything works well except onfocus // onblur attributes. For some reason, when entering the input box it doesn't highlight. If I delete the onblur line, each of the boxes is highlighted all the time regardless of focusing the input box. Can someone help me?
1
2380
by: Eric Trav | last post by:
Hello, I am using mozilla and javascript to change the style background color for my select with onfocus() and back to white with onblur(). When i process onfocus(); i have to click on the select three times to get the popup menu and everything seems slow. No errors are reported in the console however it seems as if the click event is not being processed after the focus event is processed.
11
2537
by: sybmathics | last post by:
Hi, I'm developing a website where a visistor does not have to use the mouse. All he has to do is use the Tab-key or key-combinations to jump to specific hyperlinks (containing accesskeys). Next, he presses the Enter key to follow the hyperlink. My question is: is it possible to change color of the hyperlink when a hyperlink get the focus. I do not only want to see the dotted line, I want the hyperlink to lighten
3
2302
by: Nebulus | last post by:
Hey all. I'm working on some VERY big forms, and the user will easily lose their location if they get distracted - which happens a lot with the amount of phone traffic they get. Anyway, I have a function like this: function initForms(){ for(i = 0; i < document.forms.length; i++){ for(j = 0; j < document.forms.elements.length; j++){ el = document.forms.elements
2
23335
kestrel
by: kestrel | last post by:
i have a form, and i want to change the forms css class onfocus, then change back onblur... how can i do this?
1
1927
by: clemtig | last post by:
Say I have a form with two input textfields. Each has an onFocus and onBlur. onFocus will unhide image #1. onBlur will hide image #1, show image #2 and validate the textfield. But the problem is that I get errors when going from one field to another with this combination. I've got it down to the point where I know that going from input field 1: onBlur --to-- input field 2: onBlur + onFocus
2
4682
by: wolverine | last post by:
Hi All, In Mozilla Firefox, to onblur and onfocus event of each and every html element, the browser itself will attach a native event handler. I mean if you type, 'javascript:alert(window.blur)' in the address bar of Firefox browser, you can see a 'function ....' . That is a Firefox browser defined handler. Now assume that web developer also attach event handlers to 'onblur' events eg: 'window.blur=f3()'
0
8436
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8634
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5657
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4182
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.