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
  1. Home
  2. Web Development
  3. ASP.NET
  4. problem in displaying large image

problem in displaying large image

Scheduled Pinned Locked Moved ASP.NET
helpjavascriptwpfcomtutorial
4 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
    Miss Maheshwari
    wrote on last edited by
    #1

    hello sir i m using javascript function for displaying large image(shown in datalist)...my function is function ShowToolTip(con) { document.getElementById("div_img").style.visibility = "visible"; document.getElementById("img_tool").src =con.src.replace("SmallPic","BigPic"); document.getElementById("div_img").style.left = event.clientX ; document.getElementById("div_img").style.top = event.clientY ; document.getElementById("div_img").style.zIndex = "0"; } and on mouseout...i use another function ie function hideToolTip() { document.getElementById("div_img").style.visibility = "hidden"; }... but the problem is this onmouseover of another image it first display the first image for some seconds and then the current image...so i want to use loading like http://www.templates.com/[^] ...please help me...how to solve this problem... u can check my problem here http://www.eleegance.com/Default2.aspx?id=1[^]

    I 1 Reply Last reply
    0
    • M Miss Maheshwari

      hello sir i m using javascript function for displaying large image(shown in datalist)...my function is function ShowToolTip(con) { document.getElementById("div_img").style.visibility = "visible"; document.getElementById("img_tool").src =con.src.replace("SmallPic","BigPic"); document.getElementById("div_img").style.left = event.clientX ; document.getElementById("div_img").style.top = event.clientY ; document.getElementById("div_img").style.zIndex = "0"; } and on mouseout...i use another function ie function hideToolTip() { document.getElementById("div_img").style.visibility = "hidden"; }... but the problem is this onmouseover of another image it first display the first image for some seconds and then the current image...so i want to use loading like http://www.templates.com/[^] ...please help me...how to solve this problem... u can check my problem here http://www.eleegance.com/Default2.aspx?id=1[^]

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      You can use setTimeout function in javascript. try this script

      function ShowToolTip(con)
      {

      document.getElementById("img_tool").src =con.src.replace("SmallPic","BigPic");
      document.getElementById("div_img").style.left = event.clientX ;
      document.getElementById("div_img").style.top = event.clientY ;
      document.getElementById("div_img").style.zIndex = "0";
      //If you want to display loading text,take one div and write your text in //div and make it visible here
      setTimeout("Loading()",1000);
      }
      function Loading()
      {
      document.getElementById("div_img").style.visibility = "visible";
      // make your loading div visibility style hidden here
      }

      Regard khan

      please don't forget to vote on the post that helped you.

      M 1 Reply Last reply
      0
      • I Imran Khan Pathan

        You can use setTimeout function in javascript. try this script

        function ShowToolTip(con)
        {

        document.getElementById("img_tool").src =con.src.replace("SmallPic","BigPic");
        document.getElementById("div_img").style.left = event.clientX ;
        document.getElementById("div_img").style.top = event.clientY ;
        document.getElementById("div_img").style.zIndex = "0";
        //If you want to display loading text,take one div and write your text in //div and make it visible here
        setTimeout("Loading()",1000);
        }
        function Loading()
        {
        document.getElementById("div_img").style.visibility = "visible";
        // make your loading div visibility style hidden here
        }

        Regard khan

        please don't forget to vote on the post that helped you.

        M Offline
        M Offline
        Miss Maheshwari
        wrote on last edited by
        #3

        i have done this like.. document.getElementById("img_tool").onLoad = setTimeout("imageLoaded()",3000); function imageLoaded() { document.getElementById("img_tool").src="pic/load.gif"; } but its not working...please help me...

        I 1 Reply Last reply
        0
        • M Miss Maheshwari

          i have done this like.. document.getElementById("img_tool").onLoad = setTimeout("imageLoaded()",3000); function imageLoaded() { document.getElementById("img_tool").src="pic/load.gif"; } but its not working...please help me...

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          Neetu Maheshwari wrote:

          document.getElementById("img_tool").onLoad = setTimeout("imageLoaded()",3000);

          If above line is out of function then it will not work. try with my script

          please don't forget to vote on the post that helped you.

          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