javascript:openWindow(); help

Discussion in 'Web Design and Development' started by LittleJoe, Jun 29, 2006.

  1. LittleJoe macrumors regular

    Joined:
    May 23, 2006
    Location:
    Worthington, OH
    #1
    ok... so here's the page:

    http://www.kateisfamous.com/photos.html

    Im building up this site right now. On the photo page I wanted the user to be able to click the thumbnail and have the full photo pop up in a new, sized, window.

    I used javascript... first time Ive messed with it as Im new to design.... it works great in Safari and Firefox but wont work in Internext Explorer.

    Can anyone with a little more experience take a look at the source and tell me what Im missing? Thanks in advance!
     
  2. mnkeybsness macrumors 68030

    mnkeybsness

    Joined:
    Jun 25, 2001
    Location:
    Moneyapolis, Minnesota
    #2
    Perhaps try Lightbox instead. Most people really hate popups and would rather see the image in the same window. This is sort of a best of both worlds (yet much more pretty).
     
  3. ValGor macrumors newbie

    Joined:
    Feb 20, 2005
    #3
    second argument

    Do not use '.' in the second argument you are passing to window.open
    Instead 'KateIsFamous.com' try ''KateIsFamous' and it will work :)
     
  4. crees! macrumors 68000

    crees!

    Joined:
    Jun 14, 2003
    Location:
    MD/VA/DC
  5. LittleJoe thread starter macrumors regular

    Joined:
    May 23, 2006
    Location:
    Worthington, OH
    #5
    ahhh that did it! so simple! thanks.

    and yessssss... I have slideshowpro... but Im doing this site pretty cheap for an friend of a friend... so Im not going all out :p

    Thanks for the help guys!
     
  6. jelloshotsrule macrumors G3

    jelloshotsrule

    Joined:
    Feb 7, 2002
    Location:
    serendipity
    #6
    that's pretty slick! thanks for posting it


    littlejoe- the colors on that site are blinding! hah. but i like the design/style, as it certainly achieves an effect (ideally the one you are going for).. cool
     
  7. LittleJoe thread starter macrumors regular

    Joined:
    May 23, 2006
    Location:
    Worthington, OH
    #7

    thanks a million. :)

    and thanks to monkeybiz!! lightbox was alot easier than i thought it would be and is veerrry slick... def the way to go. :)
     
  8. Chacala_Nayarit macrumors 6502

    Chacala_Nayarit

    Joined:
    Oct 6, 2005
    Location:
    Lakewood, Washington
    #8
    I have a Web page of the site I am working on that has what your looking for:

    Code:
    <a href="/images/somepicture.jpg" target="_blank" 
    onClick="window.open(this.href,'new','width=500, height=375');return false;"><img 
    src="/images/somepicturethumb.jpg" alt="company sign" width="100" height="90" />Blah Blah Blah</a>
    Hope this helps!
     
  9. floyde macrumors 6502a

    floyde

    Joined:
    Apr 7, 2005
    Location:
    Monterrey, México
    #9
    Priceless post! Now why hadn't I heard about it before? :eek: :)
     

Share This Page