SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot allanon's Avatar
    Join Date
    Jan 2005
    Location
    United States
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Onclick="change_picture"

    Hi, might someone show me how sites like eBay have their pictures enlarge at a specified location when clicking on a sized down version?

    If you don't understand what I mean, I'll show an example.

    Thanks
    - Monster!

  2. #2
    SitePoint Wizard Young Twig's Avatar
    Join Date
    Dec 2003
    Location
    Albany, New York
    Posts
    1,355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe this?
    HTML Code:
    <img src="whatever.gif" name="image_to_change" alt="" />
    
    <a href="whatever2.gif" onclick="document.images['image_to_change'].src=this.href; return false;">change image</a>
    <br />
    <a href="whatever3.gif" onclick="document.images['image_to_change'].src=this.href; return false;">change image again</a>

  3. #3
    SitePoint Zealot allanon's Avatar
    Join Date
    Jan 2005
    Location
    United States
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, Thank you! That was perfect!
    - Monster!

  4. #4
    SitePoint Wizard Young Twig's Avatar
    Join Date
    Dec 2003
    Location
    Albany, New York
    Posts
    1,355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem.


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
  •