Announcement

Collapse
No announcement yet.

Code to make image expand when mouse hovers over.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Code to make image expand when mouse hovers over.

    Right, I have seen in various places, where there is a central box, then thumbnails around it, then you hover over the thumbnail and it appears in the box...how do I do this?

    If this is too hard, i will be happy if I have all my thumbnails shown, then when you hover the mouse over them, the image appears but larger, do you get what i mean?

    Thanks
    Ollie

    P.S, if its just a case of adding a little bit of simple code to after the image, it would be much appreciated if you could just give me the code to drop in.

    Portfolio- www.oliver-ashley.com

  • #2
    It's probably just some Javascript code (Lightbox/LightBox2.0/litebox, perhaps?).

    Can you post an example of one of the links you are refering too?
    Professional Pixel Pusher Designing the world around you. | Working daily to reach 10,000 hours of practice.

    Comment


    • #3
      Ok, I have literally no idea how to use javascript, so if i could avoid that, it would be good. I would actually prefer the second thing i mentioned, where you just hover over the image and it appears full-size next to the mouse point, have you seen this before?
      Portfolio- www.oliver-ashley.com

      Comment


      • #4
        your first option sounds like a css image gallery...google that, there are several versions and tutorials out there...

        your second option can also be done via css...jquery can be used as well...

        good luck!
        Monarchs Rule!

        Comment


        • #5
          I did a tutorial on how to make the rest of the gallery, but it finished up as just a grid of 6 thumbnails that the border changed colour when you moused over them. It was the "tutvid" one.
          Portfolio- www.oliver-ashley.com

          Comment


          • #6
            I have done it, found a tutorial on how to use spry to make it.

            Thanks
            Ollie
            Portfolio- www.oliver-ashley.com

            Comment


            • #7
              Here is what I meant:
              http://server.microlite23.com/~admin185/index.html

              Thanks
              Ollie
              Portfolio- www.oliver-ashley.com

              Comment


              • #8
                Ollie, so you know... your site loads really really slow...
                I'm not entirely sure why... but maybe the photos are larger than their actual size that you see?

                Glad you figured out spry. I love those things for all us non-coders that need to build websites. (sad but true).
                I'd rather be hated for who I am, than loved for who I am not. ~ Kurt Cobain

                Comment


                • #9
                  Yeh, the site is loading slow as the pics are not compressed, they are just normal JPEG ones. I will shrink them down as GIF's.
                  Portfolio- www.oliver-ashley.com

                  Comment


                  • #10
                    If you try it again now, it should work fine

                    Click here: www.oliverashley.co.uk

                    Cheers
                    Ollie
                    Portfolio- www.oliver-ashley.com

                    Comment


                    • #11
                      Much better!
                      I'd rather be hated for who I am, than loved for who I am not. ~ Kurt Cobain

                      Comment

                      Search

                      Collapse

                      Advertisement

                      Collapse

                      Latest Topics

                      Collapse

                      • B
                        Reply to Depixelization
                        B
                        The pixel image that's shown isn't the original pixel image -- it's been enlarged so that every pixel is six or seven pixels high. When converting it, Illustrator's image trace just tries to get it as...
                        Today, 08:33 AM
                      • KitchWitch
                        Reply to give advice on my new logo
                        KitchWitch
                        Hi Lucas and welcome to GDF.

                        We ask all new members to read very important links here and here. These explain the rules, how the forum runs and a few inside jokes. No, you haven't done anything...
                        Today, 08:02 AM
                      • KitchWitch
                        Reply to Hi there
                        KitchWitch
                        Hi Bekky12 and welcome to GDF.

                        We ask all new members to read very important links here and here. These explain the rules, how the forum runs and a few inside jokes. No, you haven't done...
                        Today, 08:00 AM
                      • calebninja
                        Reply to Depixelization
                        calebninja
                        I don't see why anyone would want to de-pixel pixel art. Without the pixels it's just a poor illustration.
                        Today, 07:55 AM
                      • PrintDriver
                        Comment on Introduction and thinking about freelancing
                        PrintDriver
                        I've heard of Upwork only recently cuz it was mentioned here on the GDF.
                        That third one, never heard of it.
                        Pan, I got 12 more years of this. Even if it happens, I doubt I'd have any say...
                        Today, 07:46 AM

                      GDF A division of Mediabistro Holdings Adweek | Mediabistro | Clio | Film Expo Group Contact Us | Terms of Use | Privacy Policy Copyright 2016 Mediabistro Holdings
                      Working...
                      X