onFocus/onBlur

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • the good guy

    #1

    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!


  • kaeli

    #2
    Re: onFocus/onBlur

    In article <424c5f37$1@new s.starhub.net.s g>, good@thinking enlightened us
    with...[color=blue]
    > 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
    >[/color]

    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.



    Comment

    • the good guy

      #3
      Re: onFocus/onBlur

      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" <tiny_one@NOSPA M.comcast.net> wrote in message
      news:MPG.1cb627 4f7bcedf7c98a41 9@nntp.lucent.c om...[color=blue]
      > In article <424c5f37$1@new s.starhub.net.s g>, good@thinking enlightened us
      > with...[color=green]
      > > For those who have been using Outlook Express, you must be pretty used[/color][/color]
      to[color=blue][color=green]
      > > the fact that whenever you focus on the preview section, the header for[/color][/color]
      the[color=blue][color=green]
      > > preview turns from grey to blue, while the text turns from black to[/color][/color]
      white.[color=blue][color=green]
      > >
      > > Here is my HTML script
      > >[/color]
      >
      > 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.[/color]
      ;)[color=blue]
      >
      > Then there are those of us who won't even allow images to show by default[/color]
      in[color=blue]
      > 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[/color]
      hotmail,[color=blue]
      > yahoo, and gmail.
      >
      > --
      > --
      > ~kaeli~
      > A man needs a mistress... just to break the monogamy.
      > http://www.ipwebdesign.net/wildAtHeart
      > http://www.ipwebdesign.net/kaelisSpace
      >[/color]


      Comment

      • kaeli

        #4
        Re: onFocus/onBlur

        In article <424d67a7$1@new s.starhub.net.s g>, good@thinking enlightened us
        with...[color=blue]
        > Hi Kaeli,
        >
        > Nope. It's not an email system.[/color]

        Ah, sorry, I misunderstood your comment about Outlook, then.
        [color=blue]
        > 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.[/color]

        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.



        Comment

        Working...