mouseover link image appears next to cursor

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Woody

    mouseover link image appears next to cursor

    i need to know how to make a preloaded image appear next to the cursor
    when i mouseover a link...

    can anyone help me?

    it is preferred, if you can, that maybe a table appears, next to the
    cursor, with three or so images in the table...

    any suggestion or links are much appreciated!!

    thanks guys!

    -woody

  • Woody

    #2
    Re: mouseover link image appears next to cursor

    well, i feel let down :(
    i found it eventually.
    here it is for those of you who had no idea what i was asking about and
    for those who knew what i was asking about just didn't know how to help
    AND for those of you who might actually want to use this cool feature.


    var IE = document.all?tr ue:false

    if (!IE) document.captur eEvents(Event.M OUSEMOVE)

    document.onmous emove = getMouseXY;

    var tempX = 0
    var tempY = 0

    function getMouseXY(e) {
    if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.s crollLeft
    tempY = event.clientY + document.body.s crollTop}
    else { // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY}
    if (tempX < 0){tempX = 0}
    if (tempY < 0){tempY = 0}}

    function follower(s, e){
    var followX = tempX - 190;
    var followY = tempY + 25;
    e.style.left = followX;
    e.style.top = followY;
    s.onmouseover = function(){
    e.style.display = "";}
    s.onmouseout = function(){
    e.style.display = "none";}}

    thanks anywho!
    -woody

    Comment

    Working...