473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Chromeless Window With Rounded Borders

Hi Everyone,

I'm looking for information on how to create a chromeless window with
rounded borders. The window will present a question to the user and
they can respond by clicking a 'yes' or 'no' button.

I need to get this to work cross browser and cross platform.

Any information would be greatly appreciated.

Thanks,

Jeff
Jul 20 '05 #1
3 3351
je**********@hotmail.com (Jeff Johnson) writes:
I'm looking for information on how to create a chromeless window with
rounded borders. The window will present a question to the user and
they can respond by clicking a 'yes' or 'no' button. I need to get this to work cross browser and cross platform.
What makes you think it is possible at all?

A "chromeless window" is created with window.open. It only creates
square windows in the browsers and operating systems I use. Javascript
has no control over the looks of such windows, they are controlled by
the operating system.

Which browsers do you need to be "cross browser" on? Netscape 4?
Lynx?
Any information would be greatly appreciated.


You can't use a real operating-system window. If you need to control
the looks, you must create it inside the browser. There you can use
any mount of styling allowed by the browser, to make something look
like it has rounded corners (most likely method is using transparent
images as corners).

Is it really that important how the window looks?
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
"Jeff Johnson" <je**********@hotmail.com> wrote in message
news:14*************************@posting.google.co m...
I'm looking for information on how to create a chromeless window with
rounded borders. The window will present a question to the user and
they can respond by clicking a 'yes' or 'no' button.

I need to get this to work cross browser and cross platform.

Assuming that you don't need the window to persist between page loads, your best
bet to create some kind of styled window with rounded corners is probably to
create a "pseudo-window" consisting of a <div> with whatever graphics and HTML
content that you show (window open) and hide (window close).

To make it work across multiple browsers, you will need to wrangle the various
CSS properties to achieve the intended visual effects as well as the related
DHTML to accomplish things like window hiding/showing and positioning.

I'd be more than willing to bet that there are solutions already out there that
do just this - but I'll leave the hunting around for those to you.
Jul 20 '05 #3
I do not know how to do this with a conventional window. However you
can do about the same thing with a little CSS positioning using a
circle gif for the rounded corners, z-index, and background-color. One
example is given at http://www.cwdjr.net/geometric/cornertest.html .
Another example is at http://www.cwdjr.net/geometric/cornertest2.html
.. There are a few notes in the source code. These pages were just an
experiment not intended for the public. Thus they are a little crude.
Hopefully they will help.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: George Hester | last post by:
At the time this suggestion was made I didn't have the wherewithall to even attempt it. But over time I learned enough to make a stab at it. Let just say the foating DIV had to provide the same...
4
by: JeffP | last post by:
I want to add a short-cut to a windows app similar to launching from a windows run line a New window, to prevent changing an existing browser window from moving off a current logged in session...
3
by: Pierre Jelenc | last post by:
I am trying to put a graphical border along the top, left, and right edges of a page. For left and top I have an oversize GIF with the proper graphics used as the background-image of either the...
2
by: Konrad | last post by:
Hi This is maybe simple question but how to render DataGrid and Tables with rounded corners? Thanks Konrad
4
by: Mythran | last post by:
Just a quick question regarding styles in ASP.Net apps (or any apps for that matter). Is there a way, without using images, to get borders to be rounded for an HTML element? Sorta like the...
2
by: Dino Buljubasic | last post by:
Hi, I have several panels that holds bunch of controls with information on my forms. My form has background image property set to an image that has borders defining where my panel comes and...
5
by: phil-news-nospam | last post by:
Hey, look, Ma! No tables! Here is my attempt at making rounded corners. It uses a bunch of element layers to merge 4 background images. But, it seems to work. Now if there was just a way to...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
1
by: soms2m | last post by:
HELLO ALL, I want to fill the parent window height with respect to the sub window height which is loading using ajax (mootools). For example if the parent window height is normal and the loading...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.