SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot DavidR's Avatar
    Join Date
    Feb 2002
    Location
    London, England.
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Opening up a resized jpg

    Firstly sorry if this isn't Java script, but I don't know what it could be. Also I found this a little hard to explain, so please bare with me.

    What I'd like to be able to do is;

    For example: I have a jpg picture file which is 128x128 pixels big. I'd like to it to link to itself, so when you click on the link, the picture is only 85x85 pixels big.

    <a href="www.site.com/picture.jpg"><img src="www.site.com/picture.jpg" border="0" width="128" height"128"></a>

    If that bit of code was on a page and the actual size of picture.jpg was 128x128 pixels then it would link to a plain white page with just picture.jpg on it, sized as 128x128 pixels.

    I'm not too flash with any code apart from basic HTML so what I'm about to type will be laughable to anyone who is, but I thought it was a simplist way to show you what I am looking for:

    <a href="www.site.com/picture.jpg" sized as width="85" height="85"><img src="www.site.com/picture.jpg" border="0" width="128" height"128"></a>


    Thank you for firstly reading the above which probably doesn't make sense, and for any help you can be

  2. #2
    SitePoint Evangelist
    Join Date
    Oct 2001
    Location
    Texas
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <a href="www.site.com/picture.jpg"><img src="www.site.com/picture.jpg" border="0" width="85" height="85"></a>


    try that!!!

  3. #3
    SitePoint Zealot DavidR's Avatar
    Join Date
    Feb 2002
    Location
    London, England.
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Won't that just make the picture that is the link 85x85 pixels in size and not the one it's linking to?

  4. #4
    SitePoint Evangelist
    Join Date
    Oct 2001
    Location
    Texas
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry I misread the post. I dont know the best way to do about your problem. Sorry


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
  •