background preloader

Social Sharing Buttons to Optimize Publisher Content

Related:  website

Introduction To URL Rewriting Many Web companies spend hours and hours agonizing over the best domain names for their clients. They try to find a domain name that is relevant and appropriate, sounds professional yet is distinctive, is easy to spell and remember and read over the phone, looks good on business cards and is available as a dot-com. Or else they spend thousands of dollars to purchase the one they really want, which just happened to be registered by a forward-thinking and hard-to-find squatter in 1998. They go through all that trouble with the domain name but neglect the rest of the URL, the element after the domain name. It, too, should be relevant, appropriate, professional, memorable, easy to spell and readable. And for the same reasons: to attract customers and improve in search ranking. Fortunately, there is a technique called URL rewriting that can turn unsightly URLs into nice ones — with a lot less agony and expense than picking a good domain name. This article covers the following: The ? 1. 2. 3.

Mobile Detect - lightweight PHP class for detecting mobile devices (including tablets) Document.elementFromPoint() - Web APIs This is an experimental technologyBecause this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes. The elementFromPoint() method of the Document interface returns the topmost element at the specified coordinates. If the element at the specified point belongs to another document (for example, an iframe's subdocument), the subdocument's parent element is returned (the iframe itself). If the element at the given point is anonymous or XBL generated content, such as a textbox's scroll bars, then the first non-anonymous ancestor element (for example, the textbox) is returned. If the specified point is outside the visible bounds of the document or either coordinate is negative, the result is null. SyntaxEdit var element = document.elementFromPoint(x, y); Returns Parameters x y <!

The JS offsetTop, clientTop, scrollTop, offsetTop property introduced - Html - php javascript html Here is the javascript to produce rolling code commonly used property Page visible area width: document.body.clientWidth to the; Web visible area high: document.body.clientHeight the; Web visible area of width: document.body.offsetWidth (including the edges W); The pages visible area: document.body.offsetHeight (including the edges W); The web text Full-text width: document.body.scrollWidth the; The body of the page text: document.body.scrollHeight; Page volume to go: document.body.scrollTop; Page volume went left: document.body.scrollLeft the; Page body part on: window.screenTop the; Page body part left: window.screenLeft,; Screen resolution high: window.screen.height,; Wide screen resolution: window.screen.width the; Screen available workspace the height: window.screen.availHeight; 1, the offsetLeft Assuming obj is an HTML control. obj.offsetTop the obj distance above the upper control location, integer, in pixels. For example: the <input type="button" value=""> 2, clientHeight

22 Useful Bootstrap Skins for Web Developers Bootstrap is a very popular framework with powerful features and an intuitive interface. Its goal is to help web designers and developers to create functional responsive websites. Today, we selected 22 very useful Bootstrap skins web developers can use. These premium-coded Bootstrap skins will save developers and designers a lot of time. You will find in this list Bootstrap skins for admin templates with flat, multifunctional and even metro-styled designs. Here they are! Josh – Laravel Admin Template + Front End + CRUD Plan – Flat Bootstrap Skin Sesamo – Bootstrap Skin 47Admin – Bootstrap Admin Skin Antagon – Multifunctional Bootstrap Skin Extrastrap – Deluxe Bootstrap Skin Chandra – Laravel Admin UI Kit InfinityStrap – Flat Bootstrap Skin Kanda Bootstrap skin ModernUI – Bootstrap Metro Skin Flat – Responsive Bootstrap Navbar BMD – Bootstrap + Material Design Boske – Skin for Bootstrap 3 Flatner – Flat Bootstrap Skin Kvelle – Multipurpose Bootstrap Skin Future UI – Bootstrap 3 Skin Sexy Bootstrap Skin

Quick Tip: The Simplest Way To Center Elements Vertically And Horizontally Danny Markov Flexbox is a relatively new addition to the CSS world and we keep finding more and more excellent applications for it. We can even solve the age-old problem with centering an element both vertically and horizontally with CSS. It is easier than you can imagine – it is only three lines of code, doesn’t require you to specify the size of the centered element and is responsive-friendly! This technique works in all modern browsers – IE10+, Chrome, Firefox and Safari (with the -webkit- prefix). See the full compatibility table here. <div class="container"><! Run The HTML The idea, of course, revolves around flexbox. You can place this container div anywhere you want. The CSS As we said earlier, we will be using only three lines of code. Every flex container has two axis for positioning elements. Now all that we need to do is center both axis. Conclusion There are lots of other techniques for centering content with CSS, but flexbox makes this a whole lot simpler and more elegant.

Adding a remember me feature to your php login script | down with design I was recently browsing the web looking for an easily reproducible php remember me code snippet. By this I meant I wanted to be able to auto fill the text input on my login form if a user had checked a remember me checkbox. I was already using cookies to keep a user logged in, but wanted to add this feature to improve usability. This is a common feature on the web and I was surprised by the lack of tutorials detailing how it was done. The original script The form <form action="<? An extremely simple login form with fields for a username, a password and of course a submit button. The php For security reasons, and so that I don’t give away all of my secrets, I wont be sharing the entire login script here. Once I have connected to my database and carried out all of my validation checks I proceed to log in a verified user using the following code: Above I simply set two cookies lasting one hour each, one for username, and one for password, and redirect them to the members area. <form action="<? to:

Build and submit a sitemap - Search Console Help Google supports the standard sitemap protocol. Google also supports XML extensions for video, images, mobile, and news resources; use these extensions to describe video files, images, and other hard-to-parse content on your site to improve how we index these resources. Here is a very basic XML sitemap that includes the location of a single URL: <?xml version="1.0" encoding="UTF-8"?><urlset xmlns=" Here is a more complex sitemap that includes a single URL, as well as image and video file information for resources on that page: <?

10 Ways to Add Facebook Functionality to Your Website Social Media Examiner Integrating Facebook into your website is an easy and free way to include a social dimension with the rest of your website business activity. Facebook provides a selection of free plugins. By the time you’re finished reading this article, you’ll understand your options for turning your website into a social hub and how to get started. Why Facebook on Your Website? Facebook has a grand vision: to connect the entire Internet, and every website on it, with a layer of social integration. Now, with over 10 social plugins available to the public (and free of charge!) Let’s look at some of the stats from SearchEngineLand: The average media site integrated with Facebook has seen a 300% increase in referral traffic.Users coming to NHL.com from Facebook spend 85% more time, read 90% more articles and watch 85% more videos than a non-connected user.Outdoor sporting goods retailer Giantnerd.com saw a 100% increase in revenue from Facebook within two weeks of adding the Like button. #1: Like Button

JavaScript keydown/keyup events: key codes Key codes of keydown and keyup events Question: Are the keyCode values of keydown/keyup events standardized across browsers? Answer: No, unfortunately, not all key codes are standardized. For example, the minus key has different key codes in different browsers. The following key codes differ across browsers: keydown/keyup event.keyCode Opera MSIE Firefox Safari Chrome Key pressed _________________________________________________________ 173 173 181 173 173 Mute On|Off 174 174 182 174 174 Volume Down 175 175 183 175 175 Volume Up 186 186 59 186 186 ; : 187 187 61 187 187 = + 189 189 173 189 189 - _ The numeric keypad may produce different keycodes depending on the NumLock state: See also:

XML for PHP developers, Part 1: The 15-minute PHP-with-XML starter Introduction It's hard to miss the importance of XML in today's application development environment. If you've never before worked with XML in PHP or have not yet made the jump to PHP5, this starter guide to working with new functionality available in PHP5 for XML might persuade you just how easy to work with XML can be. This first article in a three-part series, focusing on quick start API's, demonstrates how SimpleXML, in combination where necessary with the DOM, is the ideal choice for developers working with straightforward, predictable, and relatively small XML documents. Back to top XML fundamentals Some background about XML will allow you to understand its importance to the PHP developer and allow you to understand and create straightforward XML documents. About XML Extensible Markup Language (XML) is described as both a markup language and a text based data storage format, depending on who you talk to. Writing XML XML's basic unit of data is the element. Listing 1. Strengths of XML <?

Keyboard events Keyboard events is one of wilder parts of frontend development. There are inconsistencies and cross-browser problems. But still there are recipes which help to cope with ordinary situations easily. There are following keyboard events: keydown A key is pressed down. keypress A character key is pressed. keyup A key is released. There is a fundamental difference between keypress and keydown. Keydown triggers on any key press and gives scan-code.Keypress triggers after keydown and gives char-code, but it is guaranteed for character keys only. Test stand {#test-stand} To better understand keyboards event, we’ll use the test stand. In the test stand, char = String.fromCharCode(e.keyCode || e.charCode). Try pressing down a character key, like ‘S’, ‘1’ or ‘,’. Firefox and Opera trigger keypress for most special keys. It is possible that a special key results in keypress, but generally browsers don’t trigger it (and they shouldn’t). The rule: keydown/keyup are for any keys.keypress is for characters. keyCode

Tips for implementing responsive designs using Bootstrap 3 | endjin blog We ran a retrospective of our first few Bootstrap-based HTML5/Javascript projects a few weeks back, and distilled some of the output into these top tips. 1) You don’t have to use a container-fluid to make the design responsive container-fluid is a full-width, smoothly resizing container (e.g. for apps).container is a pseudo-fixed-width, centred container that steps down in size as the window resizes. 2) Similarly, with Bootstrap 2 you don’t have to use a row in a container You can use row-fluid inside a container to get a 12-column (nestable) fluid grid within a pseudo-fixed-width, centred container that steps down in size as the window resizes. 3) You should avoid any use of explicit pixel-based sizes Definitely no explicit widths or heights, even (especially!) 4) Make no use of <br/> or &nbsp; to affect line breaking without testing across all form factors/sizes Definitely don’t use <br/> to create vertical spacing – set up your margins and padding. For Bootstrap 3: For Bootstrap 2: Update

MeanMenu The Main Features Hide or show menu childrenTarget navigation element to swap out with MeanMenuOrientation adjustment (centered menu will reposition when you tilt the device)Control screen width at which MeanMenu activatesExpanding/Collapsing sub navigationBundled with configurable CSSQuick to setup and configureMedia Query independent The Demo The dedicated demo page All of the boring “how to implement” stuff is over on… The WordPress Plugin Buy via PluginHero The jQuery Plugin Github or download it straight away: MeanMenu zip download The Small Print This jQuery plugin is free for you to use and implement, we do not offer any official support for the plugin, if you would like to ask any questions though, please do over on our contact page. Please note: This is not a menu system replacement. If you are looking for drop down functionality on the desktop, MeanMenu doesn’t do it.

Related: