Current location: Hot Scripts Forums » General Web Coding » JavaScript » Code for opening a window to the size of the image


Code for opening a window to the size of the image

Reply
  #1 (permalink)  
Old 11-20-06, 03:56 PM
jdsmith8 jdsmith8 is offline
Newbie Coder
 
Join Date: Jul 2006
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Code for opening a window to the size of the image

Hi everyone,

Does anyone know how I can have the window open into a new window/browser or pop-up, whichever is easier, and only open to the size of the image?

My code works to click to enlarge, but opens to a full page and the image is in the top left corner with a lot of white space for the rest of the page.

current code:
on (press) {
getURL("http://pageallaboutit.com/images/gallery19.gif", "_blank");
}

I got the Flash answers I needed from Unreal Ed, but he said the window size was a java code question and to post here.

Can anyone help?

Thanks in advance
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image size function not working Jonhoo PHP 23 08-21-06 12:22 PM
Set browser window size Andy128 JavaScript 9 06-18-06 05:35 PM
modifying image size King Coder Windows .NET Programming 5 05-21-06 12:10 PM
Random Image Code reeksy PHP 11 02-14-05 07:04 PM
limiting size of pop-up window on Mac magda JavaScript 0 05-10-04 08:28 PM


All times are GMT -5. The time now is 11:21 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.