Jump to content

rangana

Members
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

0 Neutral

About rangana

  • Rank
    Newbie
  • Birthday 11/27/1988

Previous Fields

  • Languages
    HTML, CSS, Javascripts, PHP.

Contact Methods

  • Website URL
    http://
  • ICQ
    0

Profile Information

  • Location
    Cebu City Philippines
  • Interests
    Web Designing, Programming
  1. rangana

    CSS for Forms

    Excuse me Ricardo Zea, but the OP's code does'nt shows table, or i'm not seeing it :)Form and tables are rather different. I see no point of comparison.
  2. rangana

    CSS for Forms

    It's because you added an extra dot (.) don't you .TextInput { .background-color: #F0F8FF; } Just before background-color
  3. Then, without showing us your codes, I believe you haven't created one yet.As a result, I made one which depict your requirement: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">#display {width:500px;line-height:30px;border:3px double #999;font-family:time,serif;font-size:16px;text-align:center;margin:20px auto 0px auto;padding:20px;}img{width:500px;height:450px;}#caption{width:500px;margin:
  4. .checked=false; // Set either true or false the checked property ...a complete implementation is seen here: <script type="text/javascript">var inps;window.onload=function(){inps=document.getElementsByTagName('input');for(var i=0;i<inps.length;i++){if(inps[i].type=='button'){inps[i].onclick=function(){for(var i=0;i<inps.length-1;i++){inps[i].checked=false; //This unchecks the checkbox/radioboxes. Set to true for the other way}}}}}</script><input type="checkbox"><input type="checkbox"><input type="checkbox"><input type="radio" name="myradio"><input
  5. rangana

    Javascript help

    Here's a basic example to keep you going: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><!--- This is for rangana's test, feel free to remove this part -----><base href="http://www.w3schools.com/TAGS/"><!--************************End of rangana's test***********--><title></title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><script type="text/javascript">window.onload=function(){ var myid=document.getElementById('myid'); //rep
  6. rangana

    image resize

    It's the actual size of the images. I hope its not the width and height attributes that you were referring.
  7. Could you provide us a link?..if none, up the code
  8. rangana

    Newbie question

    Also, DTD is important to keep IE away from quirksmode.Now, in your links, you can used unordered list.You should strive not to use tables, as it was'nt intended for layouts :)Hope that helps
  9. I recently stumbled upon this thread and remembered, I haven't introduce myself yet Anyway, I'm Raymond. Hope to see more of you.
  10. Erroenous. I did not looked any closer on the code earlier, but I realize you misseddocument.form.x.value in your code Note that x should be your form element's name.Also, this one is erroneous: Anyway, here's a (complete) script for you to understand (better)<script type="text/javascript">window.onload=function(){var df=document.forms[0];df[2].onclick=function(){if ((document.form.x.value=="")||(document.form.y.value=="")){alert("message");return false;}elsereturn true;}} </script><form action="http://www.google.com" name="form"><input type="text" name="x"><input
  11. You haven't prefixed your div=document.getElementById('dob') with var See if this helps: <script type="text/javascript">window.onload=function(){ //we get the div by id var div = document.getElementById("dob"); //we create the text to get in the innerHTML of the div var text = ''; //first stuff text ='<select name="dayField" id="dayField"><option value="default">Day</option>'; //loop for the days for(var j=1; j< 32; j++) { //if the day is 1-digit if(j <10) text = text + '<option value="day0'+j+'">0'+j+'</option>'; else text = text + '<
  12. This should be in the onsubmit of the form: <form action="" method="" onsubmit="return validation()"> Then, your JS should be: function validate(){if((form.keyword.value == "")||(form.keyword.value==null)){alert("Empty"); //alerts that the value is emptyform.keyword.focus();return false;}elsereturn true;} If that ain't help, could you show us your (complete) code
  13. How are you creating this one?..by DOM createElement?Could you show us your codes
  14. Set it's default value: prompt('someText','defaultValue'); // Use '' for defaultValue if you don't want any default value For further reading:http://www.w3schools.com/JS/js_popup.asp
×
×
  • Create New...