How do I highlight an image on mouseover???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LT1hero93
    Registered User
    • May 2003
    • 67

    #1

    How do I highlight an image on mouseover???

    I am curious how I highlight an image when I roll my mouse over it. I want the image to highlight to a blueish color when I roll my mouse over it. All I can find on the search engines is how to change the opacity. Please help me out here!

    Thanks
    Shawn
    R U Ticked Off?
  • dumphead
    Confirmed User
    • Nov 2005
    • 373

    #2
    Mmh? What exactly do you mean? A simple mouseover with your picture in blue? Or a small animation where you pic fades from original to blue?

    icq 107517329 -> buy me, i'm a free sig!

    Comment

    • fatfoo
      ICQ:649699063
      • Mar 2003
      • 27763

      #3
      comus thumbs did that for me, the default template i think highlighted the thumbs on mouseover
      Send me an email: [email protected]

      Comment

      • soulbleed
        Confirmed User
        • Oct 2005
        • 2606

        #4
        u can do it with css ..try here

        http://www.javascriptkit.com/dhtmltutors/cssimage.shtml

        Earn $20 per bottle of FREE penis enhancement pills you give away.
        Payments via Paypal, epassporte, check and wire.

        Comment

        • Dynamix
          G F Y not
          • Jan 2004
          • 2910

          #5
          Here's an easier way. Copy that Opacity script and use it, however put each thumb in its own table with a Blue background, ie:

          Code:
          <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR="#DesiredBlueHere"><A HREF=""><IMG SRC="thumbnail-here.gif" onMouseOver="JavaScript here" onMouseOut="JavaScript here"></A></TABLE>
          You can snag my fade code from:
          http://www.dxmgroup.com/xs/fade.js

          And its usage is in the source of:
          http://www.dxmgroup.com/xs/

          Just be forewarned.. this opacity script and all others are developed for IE.. your FireFox users won't notice any difference.

          TGPFactory Full TGP Design & Installation Services
          ICQ 250 142 484 · AIM TGPDynamix · Email: patrick (at) tgpfactory (dot) com
          See who I am at AdultWhosWho.com!

          Comment

          • LT1hero93
            Registered User
            • May 2003
            • 67

            #6
            Thanks for all the help guys. I used CSS to do it. Very simple and very little code.

            <style type="text/css">
            #highlight {FILTER: Alpha(Opacity=100)}
            A:hover #highlight {FILTER: Alpha(Opacity=70)}
            </style>

            <%TEMPLATE
            NAME Thumb
            HTML <td bgcolor="#3838E4"><a href="go.php?ID=##Gallery_ID##&URL=##Gallery_URL## &P=60" title="##Description##" target="_blank" ><img id="highlight" src="##Thumbnail_URL##"></a></td>
            %>

            I set the background to the color I wanted the highlight to be then I put the CSS style on the image I wanted to get highlighted. Boom works beautiful.

            www.thepornpros.com

            Thanks again!

            Shawn
            R U Ticked Off?

            Comment

            • directfiesta
              Too lazy to set a custom title
              • Oct 2002
              • 30229

              #7
              Originally posted by LT1hero93
              Thanks for all the help guys. I used CSS to do it. Very simple and very little code.

              <style type="text/css">
              #highlight {FILTER: Alpha(Opacity=100)}
              A:hover #highlight {FILTER: Alpha(Opacity=70)}
              </style>

              <%TEMPLATE
              NAME Thumb
              HTML <td bgcolor="#3838E4"><a href="go.php?ID=##Gallery_ID##&URL=##Gallery_URL## &P=60" title="##Description##" target="_blank" ><img id="highlight" src="##Thumbnail_URL##"></a></td>
              %>

              I set the background to the color I wanted the highlight to be then I put the CSS style on the image I wanted to get highlighted. Boom works beautiful.

              www.thepornpros.com

              Thanks again!

              Shawn

              IE fine... Firefox= nada
              I know that Asspimple is stoopid ... As he says, it is a FACT !

              But I can't figure out how he can breathe or type , at the same time ....

              Comment

              • Nookster
                Confirmed IT Professional
                • Nov 2005
                • 3744

                #8
                Originally posted by directfiesta
                IE fine... Firefox= nada
                Yep, must code it for all browsers...so use the CSS but add some Javascript for Gecko browsers. The Javascript would be something to this effect...

                Code:
                <script language=JavaScript>
                function changeBG(item){
                   document.item.bgColor = #3B6793;
                }
                </script>
                <!-- the above code goes in the header -->
                
                <!-- tag the links like... -->
                
                <a href=# onmouseover="javascript:changeBG(this);">Link</a>
                ya, something to that effect...

                Oh, a simple Google came up with this link as the first http://javascript.internet.com/bgeff...or-change.html
                The Best Affiliate Software, Ever.

                Comment

                • Dynamix
                  G F Y not
                  • Jan 2004
                  • 2910

                  #9
                  Originally posted by Nookster
                  Yep, must code it for all browsers...so use the CSS but add some Javascript for Gecko browsers. The Javascript would be something to this effect...

                  Code:
                  <script language=JavaScript>
                  function changeBG(item){
                     document.item.bgColor = #3B6793;
                  }
                  </script>
                  <!-- the above code goes in the header -->
                  
                  <!-- tag the links like... -->
                  
                  <a href=# onmouseover="javascript:changeBG(this);">Link</a>
                  ya, something to that effect...

                  Oh, a simple Google came up with this link as the first http://javascript.internet.com/bgeff...or-change.html
                  close, but you need the "opacity" attribute to work in both Mozilla and IE. This can be accomplished by setting their respective names..

                  Use this code on the thumbnail:

                  Code:
                  <A HREF="" CLASS="menu"><IMG SRC="thumb.gif"></A>
                  And place this in your stylesheet:

                  Code:
                  a.menu img {
                  filter:alpha(opacity=100); 
                  -moz-opacity: 1.0; 
                  opacity: 1.0;}
                  
                  a.menu:hover img {
                  filter:alpha(opacity=65);   
                  -moz-opacity: 0.65;   
                  opacity: 0.65;
                  }
                  Filter:alpha() is for IE, -moz-opacity is an outdated attribute for older Mozilla browsers, Opacity is for FireFox and newer Mozilla browsers.
                  Last edited by Dynamix; 12-02-2005, 02:59 AM.

                  TGPFactory Full TGP Design & Installation Services
                  ICQ 250 142 484 · AIM TGPDynamix · Email: patrick (at) tgpfactory (dot) com
                  See who I am at AdultWhosWho.com!

                  Comment

                  Working...