Seo Friendly Links Snippets


02 June, 2012   

This code removes all special characters from the given URL and make it SEO friendly.

Removes an item from the page, without affecting page flow or causing scrollbars. Much better than display: none; or even visibility: hidden;

As an example, here we are redirecting http://www.yoursite.com/product.php?id=231&category=seo to http://www.yoursite.com/seo/newpage.htm

12 March, 2017   

PHP code snippet for Automatic Mailto Links

jQuery example to prevent Anchor Links from Loading

CSS code to highlight links that open in a new window

Automatically Discover Document Links And Apply Class

CSS code snippet for Style Links Depending on Destination

05 January, 2013   

Here shown how to hide text with text indent

CSS code example for different colors to visited/unvisited links

11 December, 2011   

CSS code example to use of text-decoration on links

04 October, 2012   

Turn a string into a readable url

Change Date from dd/mm/yyyy to yyyy-dd-mm

Several hundred user notes on the str_replace page later, and we have a function that provides a variety of text highlighting options for plaintext or HTML strings.

jQuery example code for extract hyperlinks with specific href

Of course, this must be encapsulated and taken to a much higher abstraction level (something like wshGetSpecialFolder [folderName] and wshCreateLink args...)

29 December, 2011   

ASP code example for a random link, each time you load the page, it will display one of two links: Xentrik.net OR Xentrik Snippets.

Convert a string of text and ad hyperlinks to all the URLs. We loop through each URL and add a hyperlink

14 July, 2014   

A few points of interest: * The HREF links use JavaScript to set a browser cookie named "style". * Since we are only setting one cookie and it's name is "style", we can read its value using "document.cookie.charAt(6)". * If no cookie is set, "StyleFile" will evaluate to "style.css". * The...

16 January, 2011   

One of the most common mistakes I see beginners and intermediates fall victim to when it comes to CSS is not removing the default browser styling. This leads to inconsistencies in the appearance of your design across browsers, and ultimately leaves a lot of designers blaming the browser. It is a misplaced blame, of course. Before you do anything...