Results 1 to 3 of 3

Thread: In a frenzy: CSS popup text issue

  1. #1
    Join Date
    Aug 2008
    Location
    Las Vegas, NV
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Lightbulb In a frenzy: CSS popup text issue

    I am working on a page and and tossed up between using javascript and css. My css source is http://meyerweb.com/eric/css/edge/popups/demo.html and my page is http://www.achtungmediadesign.com/th...als_test2.html that I am trying to achieve this result on. div class testi2 is the space I want to not be visible until a mouse rolls over a certain section of text I have not yet defined..... but alas I am working on this bits at a time and am so far stuck. I could use a clue or at least a point in the direction of a good example. Ideally I would like a single sentence and when mouse over there is a panel that slides open with the desired paragraph of text on it that does not change the real estate of the page.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Ideally I would like a single sentence and when mouse over there is a panel that slides open with the desired paragraph of text on it that does not change the real estate of the page.
    If you want some sort of sliding effect, you can't do that with CSS. You would have to use JavaScript. You have to think about what you really need. The way you describe it, I think you will be better off with JavaScript.

    If this is to be a sentence that opens up a new paragraph (i.e. a substantial amount of text), using CSS would mean that the user has to be "moused" over the link at all times. This would get fairly annoying. On the other hand, you have more options with javascript.

    Here is a simple example of the CSS effect. Here is a simple example of it in JavaScript using the jQuery JavaScript framework. You have to click on the text in the JS example (you could change this to hover if you wanted).

  3. The Following User Says Thank You to Medyman For This Useful Post:

    scott4design (08-16-2008)

  4. #3
    Join Date
    Aug 2008
    Location
    Las Vegas, NV
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Awesome!!!!

    I decided to use the CSS version and really appreciate your direction. I'll make a credit notation in the code when I get ready to publish. Thanks!!!!!

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
  •