dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: javascript popup image

  1. #1
    Join Date
    Dec 2009
    Posts
    1

    javascript popup image

    Folks., i need to popup image on image hover?the image should be placed just above mouse pointer? i tried to implement event.x,event.y.. but it is not positoning well in all browsers..?is css need to be used here or please give me javascript code..

    function Large(obj,id,e)
    {
    // this is div tag,inside div i am placing imagebutton..

    var imgbox=document.getElementById("imgbox");
    var imgbtn=document.getElementById('<%=ImageButton3.ClientID%>');
    imgbox.style.visibility='visible';
    imgbtn.src=obj;
    imgbox.style.left=event.x;
    imgbox.style.top= event.y;
    }

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Basically a tooltip then: http://www.dyn-web.com/code/tooltips/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles