Results 1 to 6 of 6

Thread: Mouse/Cursor over link effect

  1. #1
    Join Date
    Sep 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Mouse/Cursor over link effect

    Hello,

    I have seen this effect before where it displays the destination page when you have your mouse/cursor over the link.

    For example. I have a link to yahoo.com on my page. When I have my mouse/cursor over the yahoo.com link on my page, a screen shows up and let me see where the link will go to.

    Does anyone know the name of the mouse/cursor over link effect?

    Thanks,
    ddken

  2. #2
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Talking

    Hahaha I just did this on my site. I think what you mean is that you want someone to hover over a certain link it will show the cursors? is that correct!?

    well this is what you use for your link--

    HTML Code:
    <a href="http://www.yourdomain.com">mylink</a>
    Well what you want to do is have the cursor location ready--

    HTML Code:
    <a style="cursor: url('http://www.xudas.com/graphics/cursors/plain/cursors/green.cur')" href="http://www.yourdomain.com">Hover over a Link</a>
    That code was copied from my site but you can also do it to images to without having to link to a url, code is below!

    HTML Code:
    <img style="cursor: url('http://www.xudas.com/graphics/cursors/plain/cursors/green.cur')" src="http://www.yourimagesrchere.com/blah.jpg" width="100">
    oh yeh where my cursor url is, is where yours will go, let me know if this does not work!

  3. #3
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    I believe he meant a preview window. You put your mouse over it and up pops a tiny window to show you where the link leads. That could be done by simply adapting this script: http://www.dynamicdrive.com/dynamici...mltooltip2.htm, and taking a screenshot of site, then sizing it down, and last but not least inserting into here:
    Code:
    document.write('<div id="dhtmltooltip">The link to the image and any text.</div>') //write out tooltip DIV
    document.write('<img id="dhtmlpointer" src="arrow2.gif">') //write out pointer image
    That is part of the second code box for the script.

  4. #4
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    oh ooops i didnt see that part lol!!
    Hey new design new look, goto xudas for personal webdsign help.. (:

  5. #5
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've seen this done with javascript
    and the use of Title.

    Here's javascript version:
    http://ezportal.ztml.org/index.php?u...me.design.show


    Thanks for the heads up on cursor:
    sm

  6. #6
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    Mine is JavaScript. You don't even *really* need JavaScript, but to make it look pretty JavaScript is needed. There are ways, but it wouldn't do the hover part. Also, you could use a PHP or Ajax (I think Ajax) to make a window that actually retrieves the content, so you get a live preview.

Bookmarks

Posting Permissions

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