Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Window configuration in Java
Old 10-18-2006, 07:34 PM Window configuration in Java
Super Talker

Posts: 129
Trades: 0
Hi all, hopefully someone can help me out with a small java problem. I've written a function that is in my webpage to create a new window. In my database attached to that page I have a field that is a hyperlink that calls the function to display a discrete image in a new window. The function is as follows

Code:
<SCRIPT LANGUAGE="JavaScript">
var newwindow;
function largeimage(url)
{
newwindow=window.open(url,"",'height=600,width=600 ');
if (window.focus) {newwindow.focus()}
}

</SCRIPT>


and an example of the hyperlink in the database is:

Code:
<a href="javascript:largeimage('Images/Alan1.jpg');">View large image</a>


I was wondering if someone could please help with the coding to do the following:

Change the background colour of the new window to black. Change the title to "Large Image". Lose the url as it's not really necessary. Centre the window on the screen if possible. Place a "close" button on the window. If I was really greedy to autosize the window to match the image, as they vary in size.

Hopefully some cleverer person than me can do this in no time!

Sorry for length of post, thanks, Lol
__________________

Please login or register to view this content. Registration is FREE
- Street Photography
Lol999 is offline
Reply With Quote
View Public Profile Visit Lol999's homepage!
 
 
Register now for full access!
Old 10-19-2006, 02:20 AM Re: Window configuration in Java
seomumbai's Avatar
Skilled Talker

Posts: 98
Trades: 0
All these things dynamically can be done by using server side coding or by using CSS Style sheets.
seomumbai is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Window configuration in Java
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22116 seconds with 12 queries