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 did Qype do this Mouseover reveal?

Discussion in 'CSS' started by misohoni, Dec 27, 2010.

  1. #1
    Solved! View solution.
    misohoni, Dec 27, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Not sure what are you referring. A screenshot would be great.
     
    radiant_luv, Dec 27, 2010 IP
  3. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #3
    Here's a screenshot
     

    Attached Files:

    • qype.jpg
      qype.jpg
      File size:
      16.9 KB
      Views:
      130
    misohoni, Dec 27, 2010 IP
  4. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #4
    I think visiblity is hidden and on mouse over it comes up.
     
    radiant_luv, Dec 27, 2010 IP
  5. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #5
    Yep but what is the actual code, we're all CSS coders in this section...

    Sofar I know it's:

    .PlaceReviewV2 .ReportReview {
    visibility: hidden;
    }
    .Right {
    float: right;
    }
    .Grey {
    color: #ADADAD;
    }
    .ReportReview a {
    position: relative;
    top: -20px;
    }
    .ReviewPermalink {
    float: right;
    left: -7px;
    position: relative;
    top: -17px;
    visibility: hidden;
    }


    <SMALL class="Grey Right ReportReview">
    <A href="#" rel=nofollow>Offensive content?</A></SMALL>
    <A class="ReviewPermalink" href="#" rel="nofollow">
    <IMG alt="Link_to_post_icn" src="paul_files/link_to_post_icn.png"></A>
     
    misohoni, Dec 27, 2010 IP
  6. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #6
    Does anyone have any suggestions? thanks guys
     
    misohoni, Dec 28, 2010 IP
  7. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #7
    jeremyhowell, Dec 28, 2010 IP
  8. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #8
    I couldn't find any info on the site you gave?
     
    misohoni, Dec 28, 2010 IP
  9. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #9
    Its the concept. :-/

    Use a link and in the CSS, on the hover state change the visibility so you can see it, and in all the rest of the states, change visibility to none. Do you need code?
     
    jeremyhowell, Dec 28, 2010 IP
  10. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #10
    OK thanks mate...

    I thought it would of been ok to solve with the code I had above, I used Firebug but still can't see how it appears when the mouse is over the text...
     
    misohoni, Dec 28, 2010 IP
  11. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #11
    I actually just tried my theory, and I cant get it to work, seems when I set the property to hidden, it no longer detects my mouse over it. Weird. The other way would be to change your text color to the color of the background, but thats not very versatile. Maybe someone else can shed some light on this?
     
    jeremyhowell, Dec 29, 2010 IP
  12. GWiz

    GWiz Peon

    Messages:
    359
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Make sure you change the text to hidden, not the entire element. Otherwise the element won't appear, and obviously your mouse won't be detected since there is nothing to detect. You need to make sure the stuff INSIDE the element is set to hidden.
     
    GWiz, Jan 3, 2011 IP
  13. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #13
    Yep you're 100% correct, but how to actually do it? I used Firefox to find out the css, no JS is involved but still can't replicate it...driving me nuts!
     
    misohoni, Jan 3, 2011 IP
  14. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #14
    Has anyone else suggestions on this - I saw someone posted the following but then deleted his or her post:

    In the stylesheet qype_4_0_45630.css?45808

    Code:
    ---------
    .ReportReview{visibility:hidden;}.PlaceReviewV2:hover .ReportReview,.PlaceReviewV2:hover .ReviewPermalink{visibility:visible;}
     
    misohoni, Jan 31, 2011 IP
  15. Sojanjose4u

    Sojanjose4u Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    @misohoni .. yep that code is the solution .... since .reportreview is a child class of placereviewv2 you can use css code like that.
     
    Sojanjose4u, Jan 31, 2011 IP
  16. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #16
    yep, this should work
     
    G3n3s!s, Jan 31, 2011 IP
  17. steelfrog

    steelfrog Peon

    Messages:
    537
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #17
    You can place a child element, like a span, inside an anchor which is hidden by default and set to display on the anchor's hover state. For example:

    <div class="pop">
    Text<span>Hidden stuff</span>
    </div>
    Code (markup):
    
    div.pop span { display: none; }
    div.pop:hover span { display: inline; }
    
    Code (markup):
    While this is a very crude and basic example, it should give you some ideas. Note that IE6 does not support the :hover state over non-anchor elements, so you can trick it by inserting the span into the anchor if needed.
     
    steelfrog, Feb 1, 2011 IP
  18. #18
    here's an example using on css.
    http://meyerweb.com/eric/css/edge/popups/demo.html

    It's also easily done with a 2 lines of javascript if you want to go that route. (See sample. Not ideal because it's inline but you get the idea of functionality.)

    
    <img src="image.gif onmouseover="document.getElementById('hiddenDiv').style.display = 'block'" onmouseout="document.getElementById('hiddenDiv').style.display = 'none'" />
    
    Code (markup):
    There are two ways it can be done using visibility or display.

    "Hiding an element can be done by setting the display property to "none" or the visibility property to "hidden". However, notice that these two methods produce different results:

    visibility:hidden hides an element, but it will still take up the same space as before. The element will be hidden, but still affect the layout."
     
    AtSeaDesign, Feb 1, 2011 IP