Web Design Colors

UX, Javascript, WordPress, Drupal, more..

Page 7 of 7

Javascript Random Image on page refresh or onload

Some times we need to randomize the images at same place with minimum script and occupy less memory and to decrease the size of a web page. There are lots of demos and examples available on net.I customize the code… Continue Reading →

Custom Checkbox – The Easiest Way…

I was finding the solution on the net for custom checkbox for one of my projects. Yes there are lots of help and script available, but I found that those are very complicated and with huge scripts. To overcome this… Continue Reading →

Google Chrome Browser – Features

Google Chrome Features: Based on Apple Web Kit and also using Firefox plugins Faster than IE, FF, Safari Takes same time to download the homepage Good support for Javascript Good support for CSS2, CSS3 Great support for AJAX Most of… Continue Reading →

Starting mysql in fedora 8 through terminal

MySQL Error: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) Solution: STEP 1: login as root in terminal [navayan@localhost ~]$ su Password: STEP 2: Start the mysqld [root@localhost navayan]# /sbin/service mysqld start You will get… Continue Reading →

Opening an url in same window

Opening an url in same window First create the javascript function: function selfWindow(){ window.location.href = ‘http://www.navayan.com’; } then call that function on ‘onclick’ event on button or on anchor link <input type=”button” onclick=”selfWindow();” value=”open”> <a href=”#” onclick=”selfWindow();”>Open this</a>

Customizing default browse button

Customizing the default browse button is now a very easy stuff 🙂 You will need only four things: File field Javascript function CSS classes and ID Browse button image Follow this process: 1. Javascript function: <script type=’text/javascript’> function fileForm(){ document.overForm.overInput.value… Continue Reading →

Placing default cursor in textbox in Rails

The default cursor means when the page loads in a browser, the cursor should be in/on a particular part, say textbox or textarea. There is a simple javascript method focus() to place the default cursor: <script type=”text/javascript”> document.getElementById(id).focus(); <script> But… Continue Reading →

Display logo (favicon) in browser’s address bar

There are two methods to display logo (popularly known as ‘favicon’) in browser’s address bar. First is with rel=”icon” and second is with rel=”shortcut icon”. At the beginning it would confusing which ‘rel’ should be apply. Here you will find… Continue Reading →

Newer posts »

© 2024 Web Design Colors — Powered by WordPress

Theme by Anders NorenUp ↑