]> dev.renevier.net Git - syp.git/blob - jquery/development-bundle/external/bgiframe/docs/index.html
fixes notices
[syp.git] / jquery / development-bundle / external / bgiframe / docs / index.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2         "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4         <head>
5                 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6                 <title>bgiframe 2.1.1 docs</title>
7                 <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.2.2/build/reset/reset-min.css">
8                 <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.2.2/build/fonts/fonts-min.css">
9                 <style type="text/css" media="screen">
10                         body { margin: 25px; }
11                         h1 { margin: 1.0em 0; font-size: 167%; font-weight: bold; }
12                         #toc { margin: 0 0 3.0em; }
13                                 #toc li { margin: 0.4em 0; font-size: 100%; }
14                         #qa { margin: 0 0 3.0em; }
15                                 #qa dt.question { margin: 2.0em 0 1.0em; font-size: 122%; font-weight: bold; }
16                                 #qa dd.answer { margin: 0 2.0em; }
17                                         #qa dd.answer p { margin: 0 0 1.5em; }
18                                         #qa dd.answer code { font-size: 92%; }
19                                         
20                                         #qa dd.answer #options dt { margin: 2.0em 0 1.0em;  }
21                                         #qa dd.answer #options dd { margin: 0 2.0em; }
22                                         
23                 </style>
24         </head>
25         <body>
26                 <div id="wrapper">
27                         <div id="container">
28                                 <h1>bgiframe 2.1.1</h1>
29                                 <ul id="toc">
30                                         <li><a href="#what_does_it_do">What does it do</a></li>
31                                         <li><a href="#when_should_i_use_it">When should I use it</a></li>
32                                         <li><a href="#how_do_i_use_it">How do I use it</a></li>
33                                         <li><a href="#how_does_it_work">How does it work</a></li>
34                                         <li><a href="#where_can_i_get_it">Where can I get it</a></li>
35                                         <li><a href="#what_has_changed">What has changed</a></li>
36                                         <li><a href="#suggestions_bugs_patches">Suggestions? Bugs? Patches?</a></li>
37                                 </ul>
38                                 <dl id="qa">
39                                         <dt id="what_does_it_do" class="question">What does it do?</dt>
40                                         <dd class="answer">
41                                                 <p>Have you ever experienced the select form element z-index issue in Internet Explorer 6? Most likely you have if you've implemented some sort of drop down menu navigation that shows up over a select form element.</p>
42                                                 <p>The background iframe (bgiframe) plugin provides a very small, quick and easy way to fix that problem so you don't have to worry about it. No matter the size, borders or position the bgiframe plugin can fix it.</p>
43                                         </dd>
44                                         
45                                         <dt id="when_should_i_use_it" class="question">When should I use it?</dt>
46                                         <dd class="answer">
47                                                 <p>The bgiframe plugin should be used when you are trying to show elements above a select form control in Internet Explorer 6.</p>
48                                         </dd>
49                                         
50                                         <dt id="how_do_i_use_it" class="question">How do I use it?</dt>
51                                         <dd class="answer">
52                                                 <p>The usage is simple. Just call <code>bgiframe</code> on a jQuery collection of elements.</p>
53                                                 <p><code>$('.fix-z-index').bgiframe();</code></p>
54                                                 <p>The plugin tries its best to handle most situations but sometimes some configuration is necessary. For example if your borders are defined in a unit other than pixels, you will need to manually set the <code>top</code> and <code>left</code> properties to the negative width of the border. Here are the options/settings available to configure the output.</p>
55                                                 <dl id="options">
56                                                         <dt><code>top</code></dt>
57                                                         <dd>
58                                                                 <p>The iframe must be offset to the top by the width of the top border. This should be a negative number representing the border-top-width. If a number is is used here, pixels will be assumed. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will use an expression to get the border-top-width if it is in pixels.</p>
59                                                                 <p><code>$('.fix-z-index').bgiframe({ top: '-1em' });</code></p>
60                                                         </dd>
61                                                         <dt><code>left</code></dt>
62                                                         <dd>
63                                                                 <p>The iframe must be offset to the left by the width of the left border. This should be a negative number representing the border-left-width. If a number is used here, pixels will be assumed. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will use an expression to get the border-left-width if it is in pixels.</p>
64                                                                 <p><code>$('.fix-z-index').bgiframe({ left: '-1em' });</code></p>
65                                                         </dd>
66                                                         <dt><code>width</code></dt>
67                                                         <dd>
68                                                                 <p>This is the width of the iframe. If a number is used here, pixels will be assume. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will use an expression to get the offsetWidth.</p>
69                                                                 <p><code>$('.fix-z-index').bgiframe({ width: 100 });</code></p>
70                                                         </dd>
71                                                         <dt><code>height</code></dt>
72                                                         <dd>
73                                                                 <p>This is the height of the iframe. If a number is used here, pixels will be assume. Otherwise, be sure to specify a unit. An expression could also be used. By default the value is "auto" which will use an expression to get the offsetHeight.</p>
74                                                                 <p><code>$('.fix-z-index').bgiframe({ height: 100 });</code></p>
75                                                         </dd>
76                                                         <dt><code>opacity</code></dt>
77                                                         <dd>
78                                                                 <p>This is a boolean representing whether or not to use opacity. If set to true, the opacity of 0 is applied. If set to false, the opacity filter is not applied. Default: true.</p>
79                                                                 <p><code>$('.fix-z-index').bgiframe({ opacity: false });</code></p>
80                                                         </dd>
81                                                         <dt><code>src</code></dt>
82                                                         <dd>
83                                                                 <p>This setting is provided so that one could change the src of the iframe to whatever they need. Default: "javascript:false;"</p>
84                                                                 <p><code>$('.fix-z-index').bgiframe({ src: '#' });</code></p>
85                                                         </dd>
86                                                 </dl>
87                                         </dd>
88
89                                         <dt id="how_does_it_work" class="question">How does it work?</dt>
90                                         <dd class="answer">
91                                                 <p>The bgiframe plugin works by prepending an iframe to the element. The iframe is given a class of bgiframe and positioned below all the other children of the element. In the default configuration it automatically adjusts to the width and height of the element (including the borders) and the opacity is set to 0. The element needs to have position (relative or absolute) and should have a background (color or image).</p>
92                                                 <p>Check out the <a href="http://brandonaaron.net/jquery/plugins/bgiframe/test/">test page</a> to see the plugin in action.</p>
93                                         </dd>
94
95                                         <dt id="where_can_i_get_it" class="question">Where can I get it?</dt>
96                                         <dd class="answer">
97                                                 <ul>
98                                                         <li><a href="http://jquery.com/plugins/files/bgiframe-2.1.zip">2.1 zip</a> from the bgiframe <a href="http://jquery.com/plugins/project/bgiframe">project page</a>.</li>
99                                                         <li>Latest SVN: http://jqueryjs.googlecode.com/svn/trunk/plugins/bgiframe/</li>
100                                                         <li>Tagged Versions in SVN: Latest SVN: http://jqueryjs.googlecode.com/svn/tags/plugins/bgiframe/</li>
101                                                 </ul>
102                                         </dd>
103                                         
104                                         <dt id="suggestions_bugs_patches" class="question">Suggestions? Bugs? Patches?</dt>
105                                         <dd class="answer">
106                                                 <p>Feel free to make any suggestions, bug reports or add any patches via the <a href="http://jquery.com/plugins/project/bgiframe">project page</a>.</p>
107                                         </dd>
108                                 </dl>
109                                 <p>The bgiframe plugin is authored by <a href="http://blog.brandonaaron.net/">Brandon Aaron (http://brandonaaron.net/)</a></p>
110                         </div>
111                 </div>
112         </body>
113 </html>