Categories
- Database (10)
- delicious (14)
- health&beauty (4)
- java (18)
- DataStructures (4)
- Sorting&Searching (1)
- Strings (1)
- JavaScript (6)
- MS (3)
- my holiday trips (3)
- Other (5)
- Testing (1)
Archives
-
Recent Posts
-
Blog Stats
- 77,038 hits
blog roll
Category Archives: JavaScript
form validaton for radio buttons with javaScript
var radioVal; var radioLength = document.userform.radioName.length; //first check if the form has a single radio, if we do not provide this, will get a problem with single radio if(radioLength == undefined) { if(document.userform.radioName.checked) radioVal = document.userform.radioName.value; } else { // … Continue reading
Posted in JavaScript
Leave a comment
about Z-index property of div styles
we have a bug in netscape browser with positioning. It works great in Firefox and IE. But when it comes to Netscape which div is on top is matters. Here is a simple Example to manipulate with Z-index: <html> <head><style … Continue reading
Posted in JavaScript
Leave a comment
Menu bar Example using js & css
need three files 1) menubar.html 2) menu.js 3) menu.css /* menu.js */ function menu(d){ d.className=’hvr’; } function menuOut(d){ d.className=”; }/* menu.css */ #menuwrapper { border-top: 1px solid #000; border-bottom: 1px solid #333; background-color: white; border-left: 1px solid #333; float:left; } … Continue reading
Posted in JavaScript
1 Comment
regular expressions in javascript
http://www.sitepoint.com/print/expressions-javascript
Posted in JavaScript
Leave a comment
How to get jsp session variables in java script
<%String s=(String)request.getSession().getAttribute(“color”); %> <script type=“text/javascript”> var val=“<%=s %>“; var n=document.getElementById(‘system_content_prod’); alert(“cnya:”+val+” : “+n); n.style.background=val; </script>
Posted in JavaScript
8 Comments