Robert wrote:
Merlin <ne*********@gmx.de> wrote in message news:<2n************@uni-berlin.de>...
<a href="#"
onclick="open_center('/subapp_profiles/member-information.php?id=00000028',475,500);return
false;"
Calls a function. What does the function do? Not documented.
onMouseOver="status='display profile'; return true;"
Sets a switch
onMouseOut="status='';"
Resets a switch
title="display profile">link text</a>
I do not believe that you have provided enough information.
Could you provide a website?
Could you provide more code?
Could you write up a minimal web page with all the code and conrols
and duplicate the problem?
Robert
I did copy the code from the .js file into the header, but the same result.
If the page did not finish loading due to some images or similar a click on the
link takes the user to the home page instead of opening a new window.
Here is the code for open_center();
// opens a new window in the middle of the screen without buttons and bars
//-------------------------------------------------------------------------------------------------------
function open_center(url,width_,height_,scrollbar,toolbar,m enubar,jump) {
var H_Browserrand = 12;
var V_Browserrand = 30;
var H_Aufloesung = screen.availWidth;
var V_Aufloesung = screen.availHeight;
var H_Fenstergr = H_Aufloesung-H_Browserrand;
var V_Fenstergr = V_Aufloesung-V_Browserrand;
Fensterbreite = width_;
Fensterhoehe = height_;
H_offset= (H_Fenstergr-Fensterbreite)/2;
V_offset= (V_Fenstergr-Fensterhoehe)/2;
if (V_Fenstergr < Fensterhoehe){ // maybe the client has a smaller resulution
than the image?
V_offset = 0;
Fensterhoehe = V_Fenstergr;
vlimit= V_Fenstergr;
}
else{
vlimit = 0;
}
// if (popup) popup.close();
var popup =
window.open(url+'&vlimit='+vlimit+'#'+jump,'Detail ','width='+Fensterbreite+',height='+Fensterhoehe+' ,left='+H_offset+',top='+V_offset+',
resizable=no,scrollbars='+scrollbar+',toolbar='+to olbar+',status=no,directories=no,menubar='+menubar +',location=no')
popup.focus();
return popup;
};
//-------------------------------------------------------------------------------------------------------
The page in action can be viewed here (click on a picture to see the problem):
http://www.globosapiens.net/travel-i...Nice-1172.html
Thank you for any help,
Merlin