Browsing the archives for the Javascript Tutorials category
Here is a function which will either build an associative array of the GET URL variables on the current page, or return the value of a specified GET variable in JavaScript:
function getUrlVar(requestedKey) {
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf(‘?’) + 1).split(‘&’);
for (var i = 0; i < hashes.length; i++) {
hash = hashes[i].split(‘=’);
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
if [...]
http://renownedmedia.com/blog/read-get-url-variables-using-javascript/
Today was spent adding a jQuery dropdown feature to a website, featuring both Chinese, English, Russian, and German translations. This dropdown menu would need to be dynamic, so that when a visitor was on the English site the word Language would appear in English, 语言 when viewed in Chinese, etc. However, the website is viewed [...]
http://renownedmedia.com/blog/javascript-and-unicode-characters/
This is a method for pre-loading your images used in CSS. Normally, when you hover over a link, the browser has to download the hover image, which will cause the background color to “flash” for a second and ruin the user experience. This article explains how to fix that problem using javascript.
http://renownedmedia.com/blog/preloading-css-hover-images/
AJAX is not a language. It is simply giving a name to something that has existed for years. Using the DOM of the web browser you are allowed to pass XML between the server and the client without having to reload the page. You don’t necessarily have to pass XML; in this example we will be passing simple text.
http://renownedmedia.com/blog/simple-ajax/
This function generates clean URL’s, similar to how Wordpress generates URL’s from the title tag.
CodeVault > Clean Url Generator
http://renownedmedia.com/blog/clean-url-generator-in-javascript/
This tutorial explains a method for linking to other websites which will allow you to use an exit counting script without inhibiting SEO.
http://renownedmedia.com/blog/search-engine-friendly-affiliate-link/