SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    Design and Promotion Crimson77's Avatar
    Join Date
    Aug 2006
    Location
    Australia
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Send html via javascript to new window?

    Hi Guys,

    I'm using javascript to popup a larger version of a thumbnail image.

    When I view it in IE I get a margin around the image which I don't want.

    To get rid of the margin I want to send some CSS along with the image to the new window.

    Is this possible?

    Let me know. Thanks.

  2. #2
    SitePoint Zealot chrisdpucci's Avatar
    Join Date
    Dec 2006
    Location
    On the internets
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why don't you use a lightbox? Sounds like the perfect time to use one and there are many available that will probably sort your needs. All of the popular ones allow you to customize the css so if there is anything about the layout you don't like you can change them. Just search google for "lightbox" and you'll find what you're looking for.

  3. #3
    Design and Promotion Crimson77's Avatar
    Join Date
    Aug 2006
    Location
    Australia
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I'll check it out.

  4. #4
    Design and Promotion Crimson77's Avatar
    Join Date
    Aug 2006
    Location
    Australia
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does anyone know any problems with using the lightbox method?

    It seems a little too good to be true so i tested it in multiple PC and mac browsers and it worked fine.

    There must be a reason I haven't heard of this method before. Anyone know?

  5. #5
    SitePoint Zealot chrisdpucci's Avatar
    Join Date
    Dec 2006
    Location
    On the internets
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The only problem would be that it doesn't work for people that have JS turned off, but I'm guessing your original solution would have been in the same boat. As for you not hearing about it, that's not the lightbox's fault.

  6. #6
    Design and Promotion Crimson77's Avatar
    Join Date
    Aug 2006
    Location
    Australia
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol thanks.


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
  •