SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    ComDude CryingWolf's Avatar
    Join Date
    Dec 2000
    Location
    I don't know the cat drug it in!!!
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey all,

    Here is my problem -- I have a site that has thumbnails of 3D graphic pics that I have done. When a person clicks on one of the thumbnails it opens another copy of their browser. i.e. target="_blank"

    What I would like is it to open a new browser window in fullscreen with only the scroll bar and the top status bar.

    I have scoured the JavaScript sites and have found various scripts but, I just don't have time to modify or make my own.

    So if one of you kind persons out there give me a hand I would be truly grateful...

    Thanks
    body { background:#000000; color:#000000 }
    HEY, WHO TURNED OUT THE LIGHTS?!?
    Easy come easy go!!!
    CryingWolf

  2. #2
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey CryingWolf,

    You could try this:

    Code:
    <script>
    function openThumb(pic){
    newWin=window.open('','newWin2','status,scrollbars,fullscreen,top=0,left=0,screenY=0,screenX=0,width='+screen.width+',height='+screen.height);
    newWin.document.open();
    newWin.document.write('<html><body><div align="center" valign="center" style="text-align:center;vertical-align:middle"><center><img src="'+pic+'"></center><br><br><center><a href="javascript:self.close()"><font face="Arial">Close this window</font></a></center></div></body></html>');
    newWin.document.close();
    }
    </script>
    Then, to call it, you just go:

    <a href="javascriptpenThumb('somePic.gif')">

    and somePic.gif would be the name of the big pic you want to open in that window.


    aDog

  3. #3
    ComDude CryingWolf's Avatar
    Join Date
    Dec 2000
    Location
    I don't know the cat drug it in!!!
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cool,

    That looks like what I need

    Thanks!!!

    body { background:#000000; color:#000000 }
    HEY, WHO TURNED OUT THE LIGHTS?!?
    Easy come easy go!!!
    CryingWolf


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
  •