Print Reseller Scheme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Web design and using photoshop 2

Discussion in 'Website Design Forum:' started by YesYouMay, Nov 3, 2009.

  1. YesYouMay

    YesYouMay Junior Member

    I've created an image. What code do I need to make the image clickable? :)
     
  2. charles

    charles Senior Member

    .....I'm guessing you mean a single image as an element of a page rather than a whole image as a page...?
     
  3. Harry

    Harry Senior Member

    This is a very subjective question. Please can we see the image?
     
  4. YesYouMay

    YesYouMay Junior Member

    Hi, yes just a single image as an element of a page which I'd to make clickable (like a link) For example eBid has made their logo (http://www.ebid.net/icons/logo1_uk.gif) and they have also managed to make it clickable, how do I do the same..? thanks
     
  5. Levi

    Levi Moderator Staff Member

    you need to add a hyperlink to the image.
    Read this and this to explain how if you don't know how.
     
  6. Harry

    Harry Senior Member

    If it's a logo then you need:

    HTML:
    <a href="/" title="Return to sitename home page"><img src="/images/logo.gif" alt="sitename logo" /></a>
    
    replacing sitename with, well, the site's name and updating the relevant src URI.
     
  7. dbushell

    dbushell Member

    Fairly ambiguous question so I'll provide an over-engineered (untested) solution:
    HTML:
    <img src="/images/logo.gif" id="logo" alt="logo" />
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript">
    $('document').ready(function()
    {
    	$('#logo').click(function(){ document.location.href = "/"; });
    });
    </script>
    
    but that's a bit ridiculous :D
     
  8. Harry

    Harry Senior Member

    Hahaha.
     

Share This Page