Recommended:

  • phpclasses.org
  • jsclasses.org
  • jsmag.com
  • siteapps.com
  • View our reviews on Hot Scripts
  • JS Tutorial
  • scripts.com
  • securesignup.com




Recent Comments

Powered by Disqus




Measure page loading time using javascript

2010-05-19

You can use javascript to measure how long does it take to load your page. It's pretty simple. Get time when your page started to load, get time when it's done and do some math. To get starting time, we need to measure it right after page started to load, it is right after opening <head> tag: <script...

Comments Read more

jQuery and Mootools conflict

2010-05-18

Since both jQuery and Mootools use symbol $ in their syntax, every time you'll use both of them you'll get a conflict. Web browser won't know to which function you are referring to. To avid this, you can use jQuery no conflict mode. To enable it, you need to put this in your code: <script type="text/javascript"> ...

Comments Read more

Making IE behave like normal browser

2010-05-12

There is one cool javascript library that will make IE behave like normal browsers. It fixes many HTML and CSS issues like using CSS selectors (pseudo classes) and of course fixes transparent PNG problem in early IE versions. And it's all by downloading one simple file and adding between <head> </head> tags simple...

Comments Read more

Flash elements over CSS menu

2010-04-27

Sometimes when you have CSS based navigation, it just doesn't work right with embedded flash elements. To fix this, all you have to do is to set attribute wmode to transparent. But what if you have a CMS, where you can't control user input and you can't ask users to modify code. Then this function will help: function...

Comments Read more

Make dynamic form using javascript

2010-04-18

Simple function to make form with one hidden value and submit this form. It can be used for deleting elements, or changing status from one to another. It takes 3 parameters val - value to be submitted (usually ID of record in database), name - key of the post variable (like $_POST['name']) and attach - id of any div to attach form,...

Comments Read more

External links

2010-04-18

Simple javascript function that goes through all "a" tags and checks if attribute "rel" is set to "external". If yes, then function automatically ads target="blank" attribute thus opening link in new window. function externalLinks() { var anchors = document.getElementsByTagName("a"); for...

Comments Read more



1 2