Download floating window with tabs

Demo | Demo 2

Bookmark and Share

Download

You can download the entire script including images from this zip file

Configuration

You need to include one css file and one javascript file in the HTML file(s) where you want the windows. This is done with the following lines:
<link rel="stylesheet" href="floating_window_with_tabs.css" media="screen">
<script type="text/javascript" src="floating_window_with_tabs.js"></script>

Put them betweeen your &lT;HEAD> and </HEAD> tag. Make sure that the path to the files is correct.

The script is easy to set implement. The content of the windows is plain HTML and the window is created by calling one single javascript function. This is an example of the HTML for a window:
<div id="window1">
  <div class="floatingWindowContent">
  This script has been tested in IE, Firefox and Opera. Unfortunately, Opera doesn't support overflow in the same extent as
  IE and firefox, so there you will find both a horizontal and vertical scrollbar. I found that to be better than no scrollbars at all.
  </div>
  <div class="floatingWindowContent">
  Content 2  
  </div>
  <div class="floatingWindowContent">
  Content 3  
  </div>
</div>

As you can see, there is one parent div(<div id="window2">) which contains 3 inner divs(<div class="floatingWindowContent">). The parent div is the window div. It's important that the id("window1") of this div is unique, i.e. no other elements with the same id. The three inner divs represents the content of 3 tabs. Such divs should always be written as in this example. Put the HTML content of the tab between the start- and end tag of these divs.

The last thing you have to do is to create the window by calling this javascript function:
initFloatingWindowWithTabs('window1',Array('Info','More info','The end'),200,220,50,50,true,false,false,true,false,false);

This function accepts alot of arguments. Here is a description of each of them:

  1. "window1" = The ID of the window div.
  2. Array('Info','More info','The end') = An array with the name of the tabs. Use false if you don't want any tabs.
  3. 200 = Initial height of the window. Use false if you want the height to adjust to the content. Note that this value could be
  4. 220 = Initial width of the window. Use 0 if you want the width to be set automatically. overridden by the width saved in the cookie
  5. 50 = Initial left position of the window - A cookie could override this value
  6. 50 = Initial top position of the window - A cookie could override this value
  7. true = No scrollbars - If you don't want the be able to scroll the content of the windows. Usually, you put in false here.
  8. false = No resize handle - The user will not be able to resize the window
  9. false = No status bar - There will be no status bar at the bottom of the window
  10. true = No close button - There will be no close button at the top right corner of the window
  11. false = Show minimize/maximize button at the top right corner of the window.
  12. false = No move - false if you want to be able to move the window, true otherwise.

For further information, look how it is done in the floating_window_with_tabs.html file.

Changing skin

You can switch between skins by changing a Javascript variable and by changing CSS reference.

The Javascript variable is located in the <HEAD> section of the main .html file:

<script type="text/javascript">
var floating_window_skin = 2;
</script>

The second skin is defined in the floating_window_with_tabs-skin2.css file. You specify reference to it like this:

<link rel="stylesheet" id="cssRef" href="floating_window_with_tabs-skin2.css" media="screen">

Update log

  • December 12th, 2006: Added support for minimize, maximize buttons. Also improved the animations of resize and move

Comments

Kevin Loring
Is it possible to create a hyperlink to a specific tab? Or reopen a tab that has been closed? Can you post an example?
Kevin Loring at 02:05PM, 2011/04/19.
noname
very nice!
noname at 09:11PM, 2011/07/24.
UsualSuspect
This is so much Greek to me. I'm thinking I'm not alone in that...lol.Is resizing & floating one tabbed window beside another open one so difficult a thing to do in XP?Is there a "Scipts for Dummies" article online? hehI'm admiring of people who know how to do things like this :)
UsualSuspect at 03:51AM, 2011/08/15.
João
Can I start the windows minimized ? How I include asp pages in the tabs, only with the "html include tag" ? there is another way ?
João at 01:13PM, 2011/10/07.
Rónai Gábor
Great script but it does not seem to work in IE. And, yes, how to reopen a window?
Rónai Gábor at 09:38PM, 2011/11/28.
Manoj Kumar
I love dhtmlgoodies.com
Manoj Kumar at 07:56AM, 2012/03/03.
jason
Thanks for give the download links, I really need it immediately. thanks
jason at 01:22AM, 2012/07/18.
Ren
How to put the tabs at the bottom? Can someone help me please? thanks!
Ren at 09:14AM, 2012/11/26.
Andras
Hi ALf,Your scripts are really very versatile, I have just changed my tabs script to yours (menu and gallery scripts were from you already). I can embed new a set of tabs below a tab, insert a 2011-style gallery into each tab if I want to, very appreciated and thank you!Andras
Andras at 09:52AM, 2013/01/10.
pepa
Hi.How can I create button to make ar show new window?
pepa at 02:56PM, 2014/08/04.
ja
hi. is there any way to re-open a closed by cross the entire window via a link on the page?
ja at 09:22PM, 2016/02/09.
Lixo
How can I preserve the minimize/maximize state. Every time the page gets refreshed it un-collapse/maximizes.
Lixo at 01:51AM, 2016/11/12.
JamesSeems
Excellent Advice For Operating A Good Work From Your Home Business

Perhaps you have made the decision to produce a house business enterprise? It's an incredible action to take because you'll have the ability to do something you love and not have to bother about going to a business office. , although never forget that it's a genuine business You can preserve your home business enterprise stress-free, by preparing yourself to run it right.

It is wise to be ready to take extra steps to have your customers by using a positive impression. For instance, you might add a free gift making use of their order to indicate them which you value their business. Everybody loves to acquire something free. Allow it to be seen to your customer which you appreciate their business.

Transform it into a top priority in your web business to maintain your current patrons happy and meet the requirements. It is actually easier to sell to people who have purchased from you before and were satisfied, as an alternative to selling to a new customer. A cheerful customer will return over and over again.

You need to get business cards. There are companies that offer free and low-cost business cards. Your company card has to range from the important contact data, such as your name, your company name, cellular phone number and e-mail address. Be sure to include your email or website address. The process can make it much more simple for clients get in touch with you.

Post that information on your web site if one of your products is not really available for any reason. One method to upset your potential customers is usually to have them purchase something rather than tell them that it does not arrive for a number of weeks. This is why you ought to enable your customers to achieve the possibility to select another product if their product is on back-order.

Be sure to produce a detailed business plan to steer your work at home business. Even small businesses need a feeling of direction. A business plan lays from the requirements and goals in monochrome. Having your own business plan improves the chance for fulfillment.

To completely tap into the your internet business potential, you would like to use the web to advertise it. Make sure the strategies you employ work well. Blogs, article writing, forums, and emails are all good ways to get the business more visibility at no cost, leading to more traffic.

Make your home-based business match your household schedule. If you feel that it could affect your family's daily life, you may need to rethink which kind of home based business you plan to begin.

If you would like open a online business but can't decide what you wish to do, the web is a superb place to gather ideas and inspiration. You must understand that you have many scams about home businesses online, however. Many website sell guides to information already available for free, along with other details are mostly worthless. Some scams lure their victims into purchasing access to high-quality work that is not going to really exist while others may provide fake online classes. The offer is rarely as great as it might seem.

No internet business should be without an internet site for selling product. The website will expand your potential market increase and base sales. You may get a site set up easily and quickly when you engage an experienced website designer.

When you please your clients, any internet business might be successful. Since you are your very own boss, your ability to succeed balances on the ability for management. Keep learning strategies concerning how to have a successful home based business. It won't be long prior to being making money with your online business.


https://uptomag.com/oody-geffen-multi-millionaire/


oody geffen
JamesSeems at 03:25PM, 2019/06/25.

Post your comment

Don't have an avatar? Create one at Gravatar.com.

Confirmation code:

Go to cbolson.com


About/Contact | A good idea? | Submit a script | Privacy notice
© 2005 - 2024 dhtmlgoodies.com