SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru redhillccwebmas's Avatar
    Join Date
    Jun 2005
    Posts
    989
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best method of producing resizeable pop-ups

    Hi there,

    I want to be able to create resizeable pop-up windows for some of my products I'm selling. Now, I'm having difficulty on both which javascript method is best and also how to format the pop-up HTML correctly, as nothing is currently 'popping up'.

    My code is below:-

    Code:
    <a href="#" onClick="MM_openBrWindow('../../pics_2006_tt/east_10/5.jpg','','status=yes,scrollbars=yes,resizable=yes,width=320,height=420')"><img src="images/products/bruno-zach/kicking-girl/kicking-girl_gallery.jpg"></a>
    I would really appreciate it if someone was able to show me the correct way of formatting the HTML so that the pop-up works. Also, is the onClick method the best way to create a pop-up?

    Kind Regards

    James

  2. #2
    Word Painter silver trophy Shyflower's Avatar
    Join Date
    Oct 2003
    Location
    Winona, MN USA
    Posts
    10,053
    Mentioned
    142 Post(s)
    Tagged
    2 Thread(s)
    Are you putting a link to your javascript in your html?

    Code:
     <a href="javascript:openWindow();">YOUR LINK HERE</a>
    Linda Jenkinson
    "Say what you mean. Mean what you say. But don't say it mean." ~Unknown

  3. #3
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For reference:

    Accessible JS Links

    xWindow
    Last edited by MikeFoster; Sep 12, 2006 at 09:07.


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
  •