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 →
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 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 →
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 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 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 →
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 →
© 2024 Web Design Colors — Powered by WordPress
Theme by Anders Noren — Up ↑