background preloader

Programação

Facebook Twitter

Beware of -webkit-text-size-adjust:none. The other day I came a cross a website with text too small for me to read it comfortably.

Beware of -webkit-text-size-adjust:none

I hit Command-Plus a couple of times to make Safari bump up the text size a bit… and nothing happened. What? After some investigation of the CSS used on the site the culprit turned out to be the following CSS (don’t use): What that does is prevent WebKit-based browsers from resizing text. Not even full page zoom resizes the text. Responsive Web Design. Window open() Method. Stone Coast Web Design Blog - Using a jQuery Modal Popup and jQuery Cookie. Dialog. Using cookies to show an alert on the first visit. This script uses cookies to show a lightbox message the first time someone visits the page.

Using cookies to show an alert on the first visit

The message appears in a modal window (using Thickbox) that can be dismissed, and will stay hidden during the current browser session. Play it again? Code The script does the following: creates two cookie functions called createCookie and readCookie creates a function to show the popup looks for a cookie called mypopup if it’s absent: shows a modal window sets a cookie called mypopup The popup content comes from a hidden div on the page, but it could also be pulled in from a separate file. <script type="text/javascript"> //<! References The createCookie(), readCookie() and eraseCookie() functions used here are from Peter-Paul Koch.

Jquery - How to invoke simplemodal with onclick inline. SVG Tutorial. Jquery - How to invoke simplemodal with onclick inline. Alert MSG (once) message script. Learn SVG: Chapter 10 ; Scripting the SVG DOM - Learn SVG : Tutorials, Maps, Books. Chapter 10 Scripting the DOM Extract Touching Elements Since we can look at the computer mouse as the elongated arm of the user, mouse events play a big role in design for interactivity.

Learn SVG: Chapter 10 ; Scripting the SVG DOM - Learn SVG : Tutorials, Maps, Books

Figure 10-8. Rectangles with events While focusing on events I chose a simple SVG document. 1. <! All of these rectangles are child elements of a common group and have the opacity style attribute defined with a value of 0.4. Highlighting So let’s start with the leftmost blue rectangle, labelled highlight, adding appropriate event properties. 1. Thanks to the Event object’s target property we get access to <rect> element that received the event. Figure 10-9.

. ( test this svg ) Now, if we want to give the other rectangles the same behaviour, we must add these onmouseover and onmouseout event properties to them also. Mouseover effects in SVGs. In this tutorial I'll describe five different methods to achieve a mouseover effect in an SVG.

Mouseover effects in SVGs

I'll start with the simplest and most limited approach (CSS), and work up to the most complex, but most flexible approach (Javascript/ECMAScript, which is described in more detail here). To view the full code for any of examples in this post, right click on an image and chose View Frame Source or something similar, depending on your browser. Issue 13 - svgpan - 1.2.2 broken in Firefox when using Viewport (fix included) - A JavaScript library to zoom, drag and pan SVG images.

Creating a simple PHP forum tutorial. PHP Tutorials MySQL Creating a simple PHP forum tutorial Learn to create forum step by step, in this tutorials use only simple php code but powerful.

Creating a simple PHP forum tutorial

Overview In this tutorial, create 5 files 1. create_topic.php 2. add_topic.php 3. main_forum.php 4. view_topic.php 5. add_answer.php Steps 1. If you don't know how to create database and table read this tutorial. Ajax/Php Chat Tutorial. Text-rendering - CSS. Summary The text-rendering CSS property provides information to the rendering engine about what to optimize for when rendering text.

text-rendering - CSS

The browser makes trade-offs among speed, legibility, and geometric precision. The text-rendering property is an SVG property that is not defined in any CSS standard. However, Gecko and WebKit browsers let you apply this property to HTML and XML content on Windows, Mac OS X and Linux. One very visible effect is: optimizeLegibility, which enables ligatures (ff, fi, fl etc.) in text smaller than 20px for some fonts (for example, Microsoft's Calibri, Candara, Constantia and Corbel or the DejaVu font family). Syntax. Conferenciaweb.w3c.br. Programação sujeita a alteração sem aviso prévio.

conferenciaweb.w3c.br

Zooming via HTML5 Canvas Context. HTML5 Canvas Scale a Drawing with Plus and Minus Buttons. Pan + Zoom HTML5 canvas grid with pinned first column. Zoom Canvas to Mouse Cursor. Mouseover effects in SVGs. In this tutorial I'll describe five different methods to achieve a mouseover effect in an SVG.

Mouseover effects in SVGs

I'll start with the simplest and most limited approach (CSS), and work up to the most complex, but most flexible approach (Javascript/ECMAScript, which is described in more detail here). To view the full code for any of examples in this post, right click on an image and chose View Frame Source or something similar, depending on your browser. SVG Rendering Engine - Issues. Problem while rendering empty lines while reading SVG document if the first text line is empty it wont render any image. cause while poping the element out of stack if the value length is 0 it breaks and rest of the thing is skippe...

SVG Rendering Engine - Issues

Id #20935 | Release: None | Updated: Thu at 2:04 PM by narinderparmar | Created: Thu at 2:02 PM by narinderparmar Intermittent (but frequent!) Empty SvgDocument after SvgDocument.Open. Creating and Implementing Mobile SVG. Bella Robinson CSIRO Australia Mathematical and Information Sciences Division GPO Box 664, Canberra ACT 2601, Australia phone: +61 2 6216 7049 fax: +61 2 6216 7111 e-mail: bella.robinson@csiro.au Keywords: Mobile SVG; SVG Viewer; Pocket PC; WinCE The Mobile SVG profiles, SVG Basic and SVG Tiny, define XML grammars for describing resolution-independent two-dimensional graphics on mobile devices, such as cellular phones and personal digital assistants.

Creating and Implementing Mobile SVG

Mobile SVG enables a large number of applications, such as location based services, mapping applications, animated picture messaging and industrial control to name a few. However, when it comes to using and implementing Mobile SVG, there are a number of difficulties.