 |
 |
Website problem with mac OS
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2004
Status:
Offline
|
|
I have developed a java website on a PC (windows XP) and after sending it to someone who has mac OSX and they say that the particular java I have used to enlarge images doesn't work. Could people w/ macs please check this out and if anyone knows the reason I would be extremely greatful as this is part of promoting my work.
Thanks
Becka
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
This belongs in Web Developer, actually. Either way, there are many people here who'd like to help, but we need a link to your Website first. There's not much we can do if we can't see the problem.
|
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
Originally posted by blacktears:
I have developed a java website on a PC (windows XP) and after sending it to someone who has mac OSX and they say that the particular java I have used to enlarge images doesn't work. Could people w/ macs please check this out and if anyone knows the reason I would be extremely greatful as this is part of promoting my work.
In order for us to "check this out" you would have to include a link.
|
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2004
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 1999
Location: Always within bluetooth range
Status:
Offline
|
|
Hmmmm .... works fine in gecko browsers (Mozilla, Firefox, & Camino). In Safari and Omniweb, it opens the window but does not resize to the size of the picture. So ... it doesn't appear to be a prob w/OS X as a whole (just its most popular web browser).
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2004
Location: Australia
Status:
Offline
|
|
As Krusty said, the window's opening fine in Safari but not resizing. In Mac IE, the window's not opening at all for me.
I think the problem is that for some browsers, the image.width and image.height properties aren't known until after the image has actually been displayed on the page. With this in mind, you may be better off replacing the "CaricaFoto" function with something similar to the following (it displays the image, then resizes the window):
Code:
function CaricaFoto(img) {
var html = "<html><body topmargin='0' leftmargin='0' marginheight='0' marginwidth='0'>" +
"<center><img src='" + img + "' border='0' onLoad='window.resizeTo(this.width+20," +
"this.height+20);'></center></body></html>";
var popup = window.open("", "",
"width=10,height=10,toolbar=0,location=0," +
"directories=0,menuBar=0,scrollbars=0,resizable=1");
popup.document.open();
popup.document.write(html);
popup.document.close();
popup.document.focus();
}
This code works all the browsers I've tested so far (Safari, IE, Mozilla, Opera).
(Last edited by ManicMonkey; Jun 21, 2004 at 10:31 AM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2004
Location: Australia
Status:
Offline
|
|
BTW, your navigation menu (the one with the gold arrow) won't appear in all browsers since you're using "document.all" to display the menu layer. Try using "document.getElementById" instead - "document.all" is only supported by IE.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2004
Status:
Offline
|
|
Thanks for help, hopefully it has worked, I have changed everything you guys have said...
Becka
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2004
Location: Australia
Status:
Offline
|
|
Just a slight change to your code...
It should be - document.getElementById("contents").style.visibili ty="visible";
instead of - document.getElementById.contents.style.visibility= "visible";
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2004
Status:
Offline
|
|
Thanks have done that now so hopefully it's ok. Can you tell me if this page works also...
www.rainstormphotography.co.uk/newestbc.html
It's supposed to be flash.
Also, is there a way I can make the pop up window full size as it opens, without having to click to resize? I know this is now, probably in the wrong forum...
B
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2004
Location: Australia
Status:
Offline
|
|
Yup, the flash seems to work fine.
Originally posted by blacktears:
Also, is there a way I can make the pop up window full size as it opens, without having to click to resize?
Are you talking about the pop up code I posted above? Why do you have to click to resize? The window should resize automatically.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2004
Status:
Offline
|
|
I meant for the flash cuz when I click on the link to the flash in my emails, it only opens up half the size and the flash starts before the screen is big enough to see it all...
B
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|