Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: picture changes when cursor goes over it

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

    Default

    Here you go:
    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" onclick="goTo('http://google.com');" onmousedown="this.style.borderWidth='1px';" onmouseup="this.style.borderWidth='0px';" onmouseout="this.onmouseup()"><img src="http://www.dynamicdrive.com/forums/designfiles/logo.gif"></span>
    Jeremy | jfein.net

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

    amyy (08-21-2008)

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

    Default

    Many thanks to Nile for your kind response.

    Would appreciate if you could advise on how to modify the code that you furnished earlier so that a new window would be opened when I click on the image?

    The code I used earlier was
    Code:
    <A HREF="http://google.com" target=_blank><img src="1.jpg" ></A>
    Last edited by amyy; 08-26-2008 at 01:18 AM.

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
  •