SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Need some JavaScript
-
Dec 29, 2000, 09:21 #1
- 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
-
Dec 29, 2000, 12:12 #2
- 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>
<a href="javascriptpenThumb('somePic.gif')">
and somePic.gif would be the name of the big pic you want to open in that window.
aDogModerator at www.javascriptcity.com/forums/
-
Dec 30, 2000, 03:18 #3
- 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