Results 1 to 2 of 2

Thread: Javascript popup without menubars??

  1. #1
    Join Date
    Mar 2009
    Location
    wisconsin
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Javascript popup without menubars??

    Hello -
    this is my first post - so bare with me!
    I'm also a beginner at javascript, and general coding, but I have a site with thumbnails, which when rolled over, a bigger image pops up in another frame on the same page. What I want is for this to happen, as well as when you actually "click" on the thumbnail, a detailed image pops up (as a popup window). I've got it so it works, but the menubar and scrollbars are still there, which I don't want.

    example of site (http://www.emmaklingbeil.com/encaustic.html)

    Here is the java script:

    <script type="text/javascript">
    <!--
    function popup(url)
    {
    var width = 500;
    var height = 700;
    var left = (screen.width - width)/2;
    var top = (screen.height - height)/2;
    var params = 'width='+width+', height='+height;
    params += ', top='+top+', left='+left;
    params += ', directories=no';
    params += ', location=no';
    params += ', menubar=no';
    params += ', resizable=no';
    params += ', scrollbars=no';
    params += ', status=no';
    params += ', toolbar=no';
    newwin=window.open(url,'windowname1', params);
    if (window.focus) {newwin.focus()}
    return false;
    }
    // -->
    </script>


    Here is the html:

    <td>

    <a href="javascript: void(0)" onclick="window.open('protectorbig.html','windowname1',
    'width=400, height=700');
    return false;" onmouseover="showImg('a_1','roll_a')" onClick="wopen('protectorbig.html', 'popup', 400, 700); return false;"><img src="images/protectorsmall.jpg" name="a_1" width="60" height="60" border="0" id="a_1" /></a></td>




    thanks for any help,
    and my apologies if this is a mess!

    Emma

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Maybe this?
    [no js required!]
    Jeremy | jfein.net

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
  •