Results 1 to 2 of 2

Thread: make image appear in website

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2007
    Posts
    47

    make image appear in website

    hey there, im making the photo generator thing and this is how it works.

    there is a list of names, when someone clicks on a name, there photo appears on the website in a specific area, when i new name is clicked the picture is replaced with there pic.

    How might i go about doing this? all the pictures have been uploaded to my webserver already, just need the code.

    thx

  2. #2
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: make image appear in website

    How is the names and the photo's linked? Does a image name have the same value as a person's id in the database for instance?

    You can use a javascript called in the link's onclick.
    Another option is to use a querystring, having the page redirect to itself with the image name in the url (mypage.php?pic=123.jpg)
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width