49 users online (0 members and 49 guests)  


  Results 1 to 8 of 8

Related

  1. CSS 3.0 Background Properties    Forum: CSS Forum
    Replies: 2
  2. Replies: 2
  3. Table Properties    Forum: HTML Forum
    Replies: 10
  4. Replies: 7
  5. new window properties    Forum: HTML Forum
    Replies: 2
  1. #1
    VagrantChris
    VagrantChris's Avatar
    Guest

    Unhappy Picture Properties

    Ok now this question is also cool

    Let's say in my website I have a whole bunch of pictures, but if you click on them, they go into a seperate web page. I want the pictures to open in a window the size of the picture.

    I don't want the picture to take a whole webpage, and have white borders all around. I just want the picture to open up and take the size of the picture. If it's 32X32, then its 32X32

    Not 32X32 on a webpage, and the rest of it white.
    and then have a small link that says Close, so people can close the page. This way there whole screen doesnt get covered up!

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Wow. Thats a great question.

    If I was doing it, how would I do it...

    I would amend the code created by the popup maker script (left) to accept two extra arguments, height and width. Then you could make a function call for each image.

    If your okay working the code out, go for it. otherwise, its time for bed for me, unfortunately, but would be glad to help out tommorow night.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    VagrantChris
    VagrantChris's Avatar
    Guest

    Thumbs up

    Nevermind, I figured it out myself thanks you... shesh!
    Last edited by VagrantChris; 08-04-2002 at 08:45 PM.

  4. #4
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    Can you share what you've managed to do with the rest of us?

    Is there a URL to a page where you've got this technique working?


    Some of us might like to use the same technique for various applications.

  5. #5
    deborah's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Vancouver
    Posts
    37
    I'm with benzden, please share with the rest of us.

  6. #6
    sean_stoneha's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2002
    Location
    USA
    Posts
    3
    Here's one way of doing it. This is how I have pics load on a website I used to administer. The guy I took it over from has photos load via a javascript with the height & width specified in the code.

    It looks something like:
    -->script that calls popup window
    <a href="javascript:picture('pic name here',450, 500)" title="pic title for popup window ">

    -->Calling thumbnail
    <img border="0" src="thumbnail here" width="69" height="80"></a>

    :fooman:

    edited to "Disable Smilies in This Post", the code included code that produced an unwanted smily ..D
    Last edited by HTML; 12-11-2002 at 07:52 PM.

  7. #7
    sean_stoneha's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2002
    Location
    USA
    Posts
    3
    the smiley face should be.... javascript : picture.... remove the colon between javascript & picture

  8. #8
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    was editing while you posted
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting



Tags for this Thread