Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: picture changes when cursor goes over it

  1. #1
    Join Date
    Aug 2007
    Posts
    45
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Default picture changes when cursor goes over it

    When the cursor moves to a picture (which is linked to a webpage), it changes to another picture.

    Also could someone advise on how to ensure that the link address is not shown in window status (bottom left hand corner of the webpage) when browsing using Internet explorer 7?
    Many thanks in advance.
    Last edited by amyy; 08-21-2008 at 02:56 AM.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Jeremy | jfein.net

  3. #3
    Join Date
    Aug 2007
    Posts
    45
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Default

    Thanks to Nile.

    But what I need is not thumbnail.
    It's just the picture of same size on the same spot changes when the cursor moves over it.

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    It doesn't matter, this script will defendantly work.
    Jeremy | jfein.net

  5. The Following User Says Thank You to Nile For This Useful Post:

    amyy (08-21-2008)

  6. #5
    Join Date
    Aug 2007
    Posts
    45
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Default

    Thanks Nile, I get what you mean.

    Do you know how to ensure that the link address is not shown in window status (bottom left hand corner of the webpage) when browsing using Internet explorer 7?

  7. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Can you link to your page so we can see what you mean?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #7
    Join Date
    Aug 2007
    Posts
    45
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Default

    I am still in the midst of building the site.

    Take for instance the following site:
    http://www.computerhope.com/onmouse.htm

    When the cursor moves over the link, the URL is shown at the left hand bottom of the page (using IE7) . I wonder if there is anyway to hide it?

  9. #8
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Heres a fake link:
    HTML Code:
    <script type="text/javascript">
    function goTo(url){
    window.location.href = url;
    }
    </script>
    <style type="text/css">
    .link {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
    border-style: dotted;
    border-color: darkred;
    border-width: 0px;
    }
    </style>
    <span class="link" onmousedown="this.style.color='darkred';this.style.borderWidth='1px';" onmouseup = "this.style.color='blue';this.style.borderWidth='0px'"onclick="goTo('http://google.com');">Fake Link</span>
    Jeremy | jfein.net

  10. The Following User Says Thank You to Nile For This Useful Post:

    amyy (08-21-2008)

  11. #9
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    <a href="....." onmouseover="imagestuff">

    You just need to remove href, or make it link to "#", which is standard for not reloading the page (it will display, but that's normal). I believe it's more proper to have "#" than no href, as that will keep the page standard.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  12. The Following User Says Thank You to djr33 For This Useful Post:

    amyy (08-21-2008)

  13. #10
    Join Date
    Aug 2007
    Posts
    45
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Default

    Many thanks to Nile and Djr33 for both your kind response to my queries on how to hide the URL link

    If the cursor moves over a picture (with and without picture changes) instead of a word, how should the code be changed? I could not figure out how to do that.

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
  •