www.webdeveloper.com

Search:

Type: Posts; User: KTspeed

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Replies
    7
    Views
    1,423

    For range of dates: function...

    For range of dates:

    function ds_template_day(d, m, y) {
    isavailable=1;
    m=m+''; // converting them to strings
    d=d+'';
    y=y+'';
    y=y.substring(2,4); // makes it work with 2 digit years...
  2. Replies
    7
    Views
    1,423

    The first red part is me correcting the not...

    The first red part is me correcting the not available dates (it didn't work). Make note of the green part (it can however be changed). The second red part was to fix you problem.

    <script...
  3. Replies
    4
    Views
    703

    arrayLength is the number of elements in the...

    arrayLength is the number of elements in the array. So if you have 5 elements in you array, it will have a value of 5. However, the elements in the array are numbered starting with zero so the...
  4. Replies
    1
    Views
    1,556

    http://www.quirksmode.org/js/cookies.html#script...

    http://www.quirksmode.org/js/cookies.html#script

    This link will give you the code, and it explains how it works right below it.
  5. change: ...

    change:

    dd1=document.forms[0].dd1.options[document.forms[0].dd1.selectedIndex].value;
    dd2=document.forms[0].dd2.options[document.forms[0].dd2.selectedIndex].value;

    to this:
    ...
  6. Replies
    4
    Views
    5,277

    You would need a script (either server side or...

    You would need a script (either server side or client side) that would convert CA to California. I don't know much server side stuff, but in javascript you could set up a switch statement: ...
  7. I'm pretty sure that what you need to do is make...

    I'm pretty sure that what you need to do is make the form submit automatically when the page is loaded.

    This is the code for the from the webpage that needs to be submitted:

    <form id="theform"...
  8. You can edit your post by clicking "edit" in the...

    You can edit your post by clicking "edit" in the bottom right of your post.

    As for your problem though, what if when they go to the webpage where the "button" is, the page auto redirected to...
  9. I understand now, but I have no idea if this is...

    I understand now, but I have no idea if this is possible, sorry:)
  10. Replies
    4
    Views
    5,277

    I am guessing the problem is that the default...

    I am guessing the problem is that the default option is name "CA" instead of "California"?
  11. it looks like clicking the button is linking them...

    it looks like clicking the button is linking them to another file I think? If that is the case, you could just like the link in the email to the same link the button goes to?
  12. Replies
    1
    Views
    598

    You can reload the page with javascript when it...

    You can reload the page with javascript when it becomes "inactive" for too long. In this script I defined inactive as time without mousemovement:


    window.onload=function()...
  13. Replies
    1
    Views
    850

    Give the image a positive z-index so it appears...

    Give the image a positive z-index so it appears above everything else. I am not sure how to make it load before everything else, but maybe if you put it first in the body, it would be loaded faster?...
  14. Replies
    2
    Views
    2,336

    This should help, everything in red is stuff I...

    This should help, everything in red is stuff I changed. I also took out the part that assigned display="none" to all 'input type=text' elements. I didn't think it was necessary to have it when it's...
  15. rnd me - thanks, that was interesting. ...

    rnd me - thanks, that was interesting.

    shahid106 - I hope we have answered your question.
  16. it did work

    Actually that suggestion did work, try this:


    <html>
    <head>
    <script>
    var Variable=234;
    function dochange(thevar){
    alert(thevar);
    }
  17. I probably am misunderstanding your question, but...

    I probably am misunderstanding your question, but if you just link to a file as long (as it's not a file that the browser will display), it will ask the user if they want to download it. However, if...
  18. Replies
    7
    Views
    989

    I didn't try the code, but wouldn't that cause...

    I didn't try the code, but wouldn't that cause the script to hog a lot of resources running over and over like that?

    I think this can also be done like this:

    d=new Date();...
  19. Replies
    3
    Views
    5,559

    when the timer is started do this: ...

    when the timer is started do this:

    starttime=new Date();

    Then when the timer is stopped:

    endtime=new Date();
    totaltime=starttime-endtime

    This will give you a time in miliseconds
  20. Replies
    5
    Views
    830

    just put the link inside the div. In addition to...

    just put the link inside the div. In addition to what JMRKER said, you will probably want to add a width, height, and background color to the div also.

    Example:

    <div class="hidden"...
  21. Replies
    5
    Views
    830

    I didn't actually look at the source on that...

    I didn't actually look at the source on that site, but I would guess this is how they did it:

    create a div tag with everything in it that you want to be displayed.
    set the style/class of the div...
  22. Replies
    3
    Views
    978

    http://www.w3schools.com/js/default.asp ...

    http://www.w3schools.com/js/default.asp

    Everything you'll ever need is listed on the left hand side.
  23. Replies
    9
    Views
    818

    I think this is what you are looking for: ...

    I think this is what you are looking for:


    <html>
    <head>
    <script>
    function now(){
    document.getElementById("pokemoncontainer")
    if(bulbasaur.checked==1){
    ...
  24. Replies
    9
    Views
    818

    This should work then: ...

    This should work then:


    <html>
    <head>
    <script>
    function now(){
    document.getElementById("pokemoncontainer")
    if(bulbasaur.checked==1){
    pokemoncontainer.innerHTML="It Worked!";
  25. Replies
    4
    Views
    812

    it's just the way it's suppose to be written....

    it's just the way it's suppose to be written.
    when defining it in javascript it is like this:

    object.onevent=function

    However, when using an attribute on a tag, it is like this:

    <span...
Results 1 to 25 of 58
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles