Hiding 'insert' curson when hovering over text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul M.

    #1

    Hiding 'insert' curson when hovering over text

    Hi,
    This might be more of an HTML question, but I'm encountering it via
    a javascript function. I'm trying to do rollovers without using
    images. Here's some of the code:

    <script type="text/javascript">
    var previousBgColor ;
    var previousTextCol or;
    function mouseOver(obj)
    {
    previousTextCol or = obj.style.color ;
    previousBgColor = obj.bgColor;
    obj.style.color ='#9999ff';
    obj.bgColor='#9 9cc66';
    }
    function mouseOut(obj)
    {
    obj.style.color = previousTextCol or;
    obj.bgColor = previousBgColor ;
    //alert(previousB gColor);
    }
    function goHref(link)
    {
    window.location ='/index.html?cate gory=' + link;
    }
    </script>

    Here's how I call it in the <body>

    <table ...>
    <tr>
    <td id="computers" class="navbarTo p" bgcolor="#9999f f" width="25%"
    onmouseover="mo useOver(this)"
    onmouseout="mou seOut(this)"
    onclick="goHref ('computers')"> Computers</td>
    </tr>
    ...more of the same
    </table>

    from the external CSS:
    ..navbarTop {
    color: blue;
    font-weight: bold;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    }



    All of this works OK-- colors change, links are followed, except when
    I float the mouse over the actual text of the <td> (not the
    background), it turns into an 'insert' cursor. Is there a way to
    disable the insert cursor or to use an element which doesn't show an
    insert cursor when hovering over text? I don't want to have to use
    images, as much of the page is dynamic and I also don't have time to
    make custom images. Thanks for any help.

    Paul
  • Vjekoslav Begovic

    #2
    Re: Hiding 'insert' curson when hovering over text

    That's CSS issue.

    This is what you need:

    .navbarTop {
    color: blue;
    font-weight: bold;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    cursor: default;
    ^^^^
    }

    "Paul M." <paul.marquardt @mortgagefamily .com> wrote in message
    news:f2137556.0 307240426.a7e50 91@posting.goog le.com...[color=blue]
    > Hi,
    > This might be more of an HTML question, but I'm encountering it via
    > a javascript function. I'm trying to do rollovers without using
    > images. Here's some of the code:
    >
    > <script type="text/javascript">
    > var previousBgColor ;
    > var previousTextCol or;
    > function mouseOver(obj)
    > {
    > previousTextCol or = obj.style.color ;
    > previousBgColor = obj.bgColor;
    > obj.style.color ='#9999ff';
    > obj.bgColor='#9 9cc66';
    > }
    > function mouseOut(obj)
    > {
    > obj.style.color = previousTextCol or;
    > obj.bgColor = previousBgColor ;
    > //alert(previousB gColor);
    > }
    > function goHref(link)
    > {
    > window.location ='/index.html?cate gory=' + link;
    > }
    > </script>
    >
    > Here's how I call it in the <body>
    >
    > <table ...>
    > <tr>
    > <td id="computers" class="navbarTo p" bgcolor="#9999f f" width="25%"
    > onmouseover="mo useOver(this)"
    > onmouseout="mou seOut(this)"
    > onclick="goHref ('computers')"> Computers</td>
    > </tr>
    > ...more of the same
    > </table>
    >
    > from the external CSS:
    > .navbarTop {
    > color: blue;
    > font-weight: bold;
    > text-align: center;
    > font-family: Arial, Helvetica, sans-serif;
    > }
    >
    >
    >
    > All of this works OK-- colors change, links are followed, except when
    > I float the mouse over the actual text of the <td> (not the
    > background), it turns into an 'insert' cursor. Is there a way to
    > disable the insert cursor or to use an element which doesn't show an
    > insert cursor when hovering over text? I don't want to have to use
    > images, as much of the page is dynamic and I also don't have time to
    > make custom images. Thanks for any help.
    >
    > Paul[/color]


    Comment

    Working...