Click to See Complete Forum and Search --> : titlebar look


cajo_vcambra
05-09-2003, 04:32 AM
Hi, is there any way to change the appearence of the titlebar of a html document (or disable it)?

Thanks for any help.

gil davis
05-09-2003, 06:04 AM
The only "appearence" of the titlebar you can change is the title of the document.

You can only affect "chrome" features on a window using the window.open() function. I don't know what you mean by "disable it". You can only prevent it from displaying using a signed script from some place like VeriSign, and then only with the user's permission. It is very expensive to get a security certificate.

IE has a fullscreen mode that has no title bar, but it is not cross-browser, and you still have to use window.open() to get it. See http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp for more information.

cajo_vcambra
05-09-2003, 06:12 AM
I meant remove and not disable. The question is that i need to replace the behaviour of the right click of the mouse button, i want to open a menu with some options. I've tried many things, and it seems that the easiest way is to open a popup window, but i need to change the look of that window so that i can make it similar to the gray menus of Windows.

pyro
05-09-2003, 07:46 AM
What browsers does it need to work in? When I was doing it, I only needed it to work in IE5.5+ so I used http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/createpopup.asp

cajo_vcambra
05-09-2003, 08:21 AM
I just need it to work on MSIE, but the titlebar property doesn't work and i don't know what can be wrong.

pyro
05-09-2003, 08:40 AM
Did you try the link I posted? If so, and it still does not work, post your code.

cajo_vcambra
05-09-2003, 08:53 AM
Yes, it worked perfectly. I have one final question:
How do i check the cursor position using jscript? I don't have any experience with jscript, I tried looking in search engines but i didn't find anything usefull.

(Thanks to Pyro for the replies :D)

pyro
05-09-2003, 10:03 AM
Try this:

document.onclick = alertpos;

function alertpos() {
alert ("X="+event.x+" Y="+event.y);
}

or this for rightclick:

document.oncontextmenu = alertpos;

function alertpos() {
alert ("X="+event.x+" Y="+event.y);
}