Results 1 to 8 of 8

Thread: Help!! Please

  1. #1
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face Help!! Please

    I Want A Html Code To Put A Pic On My Website To Be A Link To My Home Page. Like When You Go To A Site And You Have To Click Here To Enter Or Click On The Persons Logo To Enter. That Is What I Want. Can You Tell Me How To Get That??

    Thanks
    Gabby

  2. #2
    Join Date
    Nov 2006
    Posts
    236
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    um.....
    <img src="image file" onclick="page you want to go to url"/>

  3. #3
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Code:
    <a href="_URL_TO_PAGE_"><img src="_path_to_image_" width="__" height="__" alt="_brief_description_" /></a>
    replace the parts with the path names, and be sure to put a description in the alt tag, that way if for some reason your image couldn't load there will at least be a text representation.

  4. #4
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks A Bunch

  5. #5
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You will probably also want to set the border to zero (border="0"), otherwise you might get an unwanted blue line around the picture.

    Code:
    <a href="_URL_TO_PAGE_"><img src="_path_to_image_" border="0" width="__" height="__" alt="_brief_description_" /></a>
    You can also change that with css, but it sounds as if this will be easier for you.

  6. #6
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by GABBY View Post
    I Want A Html Code To Put A Pic...
    I Used To Type Like That But I Was Told It Was Annoying And Hard To Read...

    also, width and height aren't valid in some instances, best to leave them out.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  7. #7
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    also, width and height aren't valid in some instances, best to leave them out.
    They are depreciated (or so Twey said), and CSS should be used.
    - Mike

  8. #8
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Sorry, GF on comp.
    Last edited by boxxertrumps; 04-23-2007 at 10:50 PM. Reason: Bad message
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

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
  •