Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. large image on mouseover

large image on mouseover

Scheduled Pinned Locked Moved ASP.NET
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    meghamaharshi
    wrote on last edited by
    #1

    hello.. i have datalist in which thumbnail images are shown i want to show large image on particular image mouseover as tooltip...

    A 1 Reply Last reply
    0
    • M meghamaharshi

      hello.. i have datalist in which thumbnail images are shown i want to show large image on particular image mouseover as tooltip...

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Try This

      cheers, Abhijit My Recent Article : Beginner's Guide To View State

      M 1 Reply Last reply
      0
      • A Abhijit Jana

        Try This

        cheers, Abhijit My Recent Article : Beginner's Guide To View State

        M Offline
        M Offline
        meghamaharshi
        wrote on last edited by
        #3

        thank for your reply but i dont want to stretch the image i want both small and large ...for example in shopping site large image is shown as tool tip for small image.

        A 1 Reply Last reply
        0
        • M meghamaharshi

          thank for your reply but i dont want to stretch the image i want both small and large ...for example in shopping site large image is shown as tool tip for small image.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          For that you can create Thumbnlis of that Image. If you search google , you can find many code for that. please let me know if any issue.

          cheers, Abhijit My Recent Article : Beginner's Guide To View State

          M 1 Reply Last reply
          0
          • A Abhijit Jana

            For that you can create Thumbnlis of that Image. If you search google , you can find many code for that. please let me know if any issue.

            cheers, Abhijit My Recent Article : Beginner's Guide To View State

            M Offline
            M Offline
            meghamaharshi
            wrote on last edited by
            #5

            thanks for reply again.. i have used this javascript:- i have taken a div in design and applied this css css:- divAbsPosition1 { z-index: 1; left: 0px; position: absolute; top: 0px; visibility:hidden; } function hideWindow() { document.getElementById('dv').style.visibility='hidden'; } function LargeWindow(ev,str) { var e = ev ? ev : window.event; var s = e.clientX + ',' + e.clientY; document.getElementById('large_Image').src=str; document.getElementById('dv').style.visibility = 'visible'; document.getElementById('dv').style.left = e.clientX -10; document.getElementById('dv').style.top = e.clientY-10; } its working perfect in ie but not working in firefox..

            A 1 Reply Last reply
            0
            • M meghamaharshi

              thanks for reply again.. i have used this javascript:- i have taken a div in design and applied this css css:- divAbsPosition1 { z-index: 1; left: 0px; position: absolute; top: 0px; visibility:hidden; } function hideWindow() { document.getElementById('dv').style.visibility='hidden'; } function LargeWindow(ev,str) { var e = ev ? ev : window.event; var s = e.clientX + ',' + e.clientY; document.getElementById('large_Image').src=str; document.getElementById('dv').style.visibility = 'visible'; document.getElementById('dv').style.left = e.clientX -10; document.getElementById('dv').style.top = e.clientY-10; } its working perfect in ie but not working in firefox..

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              can you put the code from where you are calling LargeWindow(), I want to check "ev" ?

              cheers, Abhijit My Recent Article : Beginner's Guide To View State

              M 1 Reply Last reply
              0
              • A Abhijit Jana

                can you put the code from where you are calling LargeWindow(), I want to check "ev" ?

                cheers, Abhijit My Recent Article : Beginner's Guide To View State

                M Offline
                M Offline
                meghamaharshi
                wrote on last edited by
                #7

                ya sure..here is my Code..i made a sample page...

                onmouseover="LargeWindow(event,'images/Large_Card1.jpg')" onmouseout="hideWindow()" />

                onmouseover="LargeWindow(event,'images/Large_Card2.jpg')" onmouseout="hideWindow()" />

                onmouseover="LargeWindow(event,'images/Large_Card3.jpg')" onmouseout="hideWindow()" />

                onmouseover="LargeWindow(event,'images/Large_Card4.jpg')" onmouseout="hideWindow()" />

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups