SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Feb 2002
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question if anyone know..

    http://www.emc2k.com/tricksoft/
    on the page above the links changes color when mouse over.. do i have to use a script or is it easyer than i think??!
    -imnewb-

  2. #2
    Gone!
    Join Date
    Aug 2001
    Location
    Witty Location Parody
    Posts
    3,889
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to use the hover property of CSS.

    See this thread: http://www.sitepointforum.com/showth...threadid=51885

    I think thats what you want, I cant view the page you linked to because Im behind a damn proxy!

  3. #3
    SitePoint Member
    Join Date
    Feb 2002
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question does this work with the <p> tag ?

    <html>
    <head>
    <style type="text/css">
    .normal {background-color:#FFCC00; width:200; cursor:default;}
    .highlight {background-color:#FFFFCC;cursor:hand;}
    .smartlink {color:black; text-decoration:none;}
    </style>
    </head>

    <body>
    <table width="200">
    <tr>
    <td class="normal" onMouseOver="this.className='highlight';" onMouseOut="this.className='normal';" onClick="window.location.href='http://www.echoecho.com';">
    <a href="http://www.echoecho.com" class="smartlink">Hey Hey</a>
    </td>
    </tr>
    </table>
    </body>
    </html>
    this should highlight a tablecell when mouse over, but i am using a <p> with borders instead of a td, so i just wonder if i have to change to td or is it possible to make it work with a <p> too??

  4. #4
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could use:

    Code:
    <P onmouseover="this.style.background='highlight'"; onmouseout="this.style.background=''";>HELLO!</P>
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  5. #5
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OH and BTW Glen, I'm behind a proxy too, and couldn't view the page, but don't have any kind of limiting software in place. That is really weird...
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  6. #6
    Gone!
    Join Date
    Aug 2001
    Location
    Witty Location Parody
    Posts
    3,889
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by weirdbeardmt
    OH and BTW Glen, I'm behind a proxy too, and couldn't view the page, but don't have any kind of limiting software in place. That is really weird...
    Yes, we use Websense which blocked the site because it was in their database under the category "Entertainment"! Most anonymizer.com style sites are blocked tooo for obvious reasons but I found one they dont have in their database yet:

    http://www-new.the-cloak.com/anonymous-proxy-surf.html



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •