Cross Browser Opacity.
Spritemapper. LavaLamp for jQuery lovers! | Ganesh. Hover above and feel for yourself, the nifty effect of Lava Lamp. What you just experienced is nothing but the LavaLamp menu packaged as a plugin for the amazing jQuery javascript library. I personally believe that the effect rivals that of flash – Don’t you? Especially considering the fact that it is extremely light weight. Just so you know, it weighs just 700 bytes(minified)!
Often I have noticed, that the credits are usually granted towards the end. As User Interface developers, we know that one of the first widgets our visitors use is a “Menu”. I hope you agree that a typical HTML widget consists of 3 distinct components. A semantically correct HTML markupA CSS to skin the markupAn unobstrusive javascript that gives it a purpose Now lets follow the above steps and implement the LavaLamp menu for your site. Step 1: The HTML Since most UI developers believe that an unordered list(ul) represents the correct semantic structure for a Menu/Navbar, we will start by writing just that. Bonus. CSS3 Generator - By Eric Hoffman & Peter Funk.
Erik's weblog » Blog Archive » Computed vs Cascaded Style. Most JS frameworks and libraries I’ve seen have a function similar to this: function getStyle(el, prop) { if (document.defaultView && document.defaultView.getComputedStyle) { return document.defaultView.getComputedStyle(el, null)[prop]; } else if (el.currentStyle) { return el.currentStyle[prop]; } else { return el.style[prop]; } } So what is wrong with this you might ask? Lets add some background and then we can get back to that question. Computed Style Computed style represents the actual computed value of a style in absolute units. For example ’100px’ (for width) or ‘left’ (for text-align). The computed value is never ‘auto’, ‘inherit’, ’50%’, ‘smaller’, ’1.5em’ etc. Cascaded Style Cascaded style is the real style value that is applied to an element when the style value is set to ‘inherit’. Inline Style Inline style is the style value you have added to the style attribute on you element or the style properties you have set in script using element.style.propertyName.
Example Browser Support. Punbb13:integration - PunBB Wiki. Forum integration is very useful when you want to use the same database for your website as the forum one or if you want to execute some tasks that require the user to be a part of a certain usergroup. Below you will find some integration possibilities. General In order to use PunBB user authentication within your scripts or to have access to the logged in user's information you have to include common.php which can be found in the include/ folder. You have also to define the FORUM_ROOT global variable in your script. URL schemes PunBB 1.3 natively supports URL rewriting, including SEF URLs. How to enable URL rewriting: Rename file .htaccess.dist in the root of your forum to .htaccess.
Template customization How to include my file into *.tpl? Use the forum_include “file.ext” substitute to include the file <FORUM_ROOT>/include/user/file.ext: Common tasks Recent 10 posts <? Showing all topics <? Showing active topics Login form outside the forum <? Using parser <? OMC. Online Map Editor - interactive flash image map making tool, map maker within browser. Using the window.open method. The syntax of the window.open method is given below:open (URL, windowName[, windowFeatures]) URL The URL of the page to open in the new window.
This argument could be blank. windowName A name to be given to the new window. The name can be used to refer this window again. windowFeatures A string that determines the various window features to be included in the popup window (like status bar, address bar etc) The following code opens a new browser window with standard features.
Changing the features of the Popup You can control the features of the popup using the last argument to the window.open method. The code below opens a window with toolbar and status bar. The table shows the features and the string tokens you can use: Examples The following code opens a window with menu bar. Example 1 A window with location bar, status bar, scroll bar and of size 100 X 100 Example 2 Moving the window to a desired location You can use the window.moveTo function to move the popup window to a desired location. Reflecting text with pure CSS3 « blog « yichuan shen. Reflecting text with pure CSS3 While designing some new site, I’ve decided to use some text reflections on the header in my designs… I’ve already created the header using @font-face and I didn’t want to create an header image, so I thought… hey, just try to imitate the reflection with CSS only.
Demo page » The HTML code is very straight forward and semantic: <! -- HTML code --><h1 class="reflected">Reflected Text! </h1> Flipping the text vertically I used the :after and :before pseudo-elements to insert the reflection. For the mathematically challenged who are reading my blog: Here’s an excellent article how those transformation matrices work → and how to create them. Fading reflection… Now we have to fade the reflection out. And finally you can simplify the whole CSS by grouping common properties together: Some inconveniences As you can see, one can actually make a text reflection with CSS3 only.
It only works on a non-changing plain-color background.The reflection text is generated using CSS. Syntaxhighlighter - Project Hosting on Google Code. Nice Web Type – Pure CSS text gradient (no PNGs) Folks, grab a copy of Safari 4. This is what we’ll be making today: That’s not an image, it’s HTML text with real fonts provided by Typekit and embedded via CSS @font-face. You can see the actual thing here: Nice Web Type likes Bello and Proxima Nova. Underware’s Bello Pro sure makes this example look great, but until Typekit is out of technology preview you’ll have to try this technique with a different typeface. Follow along or skip to the final result. The markup <h1><a href="#">Filthy</a></h1> That’s it for the type effect. The style There are actually four HTML items we’ll be addressing with CSS: The h1 elementThe text-shadow of the h1 elementThe a element inside the h1 elementCSS-generated content that lives in the h1 element, beside the a Style the h1 The first thing we’re going to do is style the h1 so that it takes up a good amount of room.
Nudge this text-shadow away from the text just slightly. Fading this into nothingness Fading into a different color Stack them The final result. Cross-Browser CSS Gradient. The CSS gradient feature was introduced by Webkit for about two years but was rarely used due to incompatibility with most browers. But now with the Firefox 3.6+, which supports gradient, we can style create gradient without having to create an image. This post will show you how to code for the CSS gradient to be supported by the major browsers: IE, Firefox 3.6+, Safari, and Chrome. Also, check out my updated dropdown menu (demo) using CSS gradient. For Webkit Browsers The following line of code is for webkit browsers such as Safari, Chrome, etc. Background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)); For Firefox 3.6+ background: -moz-linear-gradient(top, #ccc, #000); For Internet Explorer The following filter wlil only be read by IE: filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); Cross-Browser CSS Gradient (demo) Put the three lines of code from above together and the result is a cross-browser gradient box.
Styling the Button Element with CSS Sliding Doors. Posted by Maggie on 04/24/2009 Topics: css ui design visual design We dusted off our original sliding doors button to give it a much needed update. For those not familiar, form buttons are notoriously difficult to customize because they render differently across browsers and platforms. Apply a single, unique background image with the text "baked in" for each type of button (i.e., "Submit", "Send message") and its rollover state. While these methods may work in particular situations, we needed a more flexible solution that accommodated a wider range of styles. Our solution We're often designing and developing complex applications with buttons that are styled with background images, background colors, icons, and sometimes a combination of all three. The result is a cross-browser method for styling button elements with sliding door sprites. Examples The buttons shown use the same markup and style — only the label text is different.
Demo Page Sprite image Markup Supported Browsers So far it works in: