1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do you achieve this rollover effect?

Discussion in 'HTML & Website Design' started by Creepn, Mar 20, 2008.

  1. #1
    Hey guys, I've been trying to find this effect everywhere but to no avail.

    Rollover one of the images and check it out. http://www.sexyjparties.com/index.php?main_page=index&cPath=2_51

    Any point in the right direction is much appreciated, thanks.
     
    Creepn, Mar 20, 2008 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In this case, they've used Javascript. You can do it without, of course. Nothing happened on this machine until I turned Scripts on. If you use this technique, make sure it's only something pretty and isn't necessary to use the site. Not everyone has Javascript.

    The CSS version is pretty much the same, except it works on every browser with CSS enabled, and still shows the text (and images if enabled) when CSS is off.
    I've done it with CSS alone: http://stommepoes.nl/Scooterverzekeren/scooterafsluiten1.html scroll down a ways and hover over "Identificatienummer of Meldcode" and there's an image with the text.

    Original example: http://mikecherim.com/experiments/css_map_pop.php
    Eric Meyer's example: http://meyerweb.com/eric/css/edge/popups/demo.html hover over the menu... or scroll down a little and click on Icons On Rollover for an image version.

    You can always tell the Javascript ones from the CSS ones because the JS ones will move the new image/text with the mouse, while in CSS it's pretty much stuck in place.
     
    Stomme poes, Mar 21, 2008 IP
  3. Creepn

    Creepn Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you Stomme Poes for the time. I was thinking somebody done that effect on a Flash program or something. I will take your advice about the javascript.
     
    Creepn, Mar 21, 2008 IP
  4. LawnchairLarry

    LawnchairLarry Well-Known Member

    Messages:
    318
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    118
    #4
    Cheers for the nice examples, Stomme Poes! If you're interested in the javascript source-code, there are several good ones on Dynamic Drive.
     
    LawnchairLarry, Mar 21, 2008 IP
  5. vodcoder

    vodcoder Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There are some examples in the form of video tutorials that can be found on codervods.com at the CSS section. Maybe they will help.
     
    vodcoder, Jul 2, 2008 IP