www.webdeveloper.com

Search:

Type: Posts; User: 007Julien

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    6
    Views
    578

    A reason to make this calculation with javascript...

    A reason to make this calculation with javascript : a little «Three-cushion billiards» page (under construction)
  2. Replies
    6
    Views
    578

    Build a Point or Vector object // Point...

    Build a Point or Vector object



    // Point constructor
    function Point(x,y){this.x=x;this.y=y;}

    // scalar multiplication
    Point.prototype.mult=fonction(m){return new Point(this.x*m,this.y*m)}...
  3. Thread: Color Change

    by 007Julien
    Replies
    4
    Views
    818

    a variant with more diverse colours

    a variant with more diverse colours

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>color change</title>
    <style>
    body {
    background-color:#000032;
  4. Replies
    11
    Views
    1,166

    Use CSS style with class to avoid mixing code and...

    Use CSS style with class to avoid mixing code and format.
    See w3scholls.com CSS tutorial with, for example, this demo page
  5. Replies
    6
    Views
    895

    It would be better to display two buttons to add...

    It would be better to display two buttons to add a row (its disappear with the 5th row) or to delete a row (if any) of your table...
  6. How do you find this new version with sound ...

    How do you find this new version with sound to convert foreign currencies ?
  7. Replies
    4
    Views
    1,052

    Replace, in your database, all single quote by a...

    Replace, in your database, all single quote by a &apos; or a typographic apostrophe ( ’ ), also known as the typset apostrophe, or, informally, the curly apostrophe obtain with alt 0146.
  8. Thread: Memory

    by 007Julien
    Replies
    1
    Views
    454

    Here is a memory...

    Here is a memory
    Use an object to build your memory. There is no need of an array to find the kth image src, it's k+'.jpg' !
    At the beginning you have only to show back of card and to define a...
  9. Other Read something like this for localisation...

    Read something like this for localisation (l10n) or internationalisation (l18n).
  10. Replies
    1
    Views
    882

    The object color is not define in the second...

    The object color is not define in the second function. The values color.rgb[0], color.rgb[1] and color.rgb[2] are not defined ! They must take the argument with : top-color.rgb[0], top-color.rgb[1]...
  11. Try to upload this php page on your server ...

    Try to upload this php page on your server

    <?php

    header("expires: mon, 26 jul 1997 05:00:00 gmt");
    header("cache-control: no-cache, must-revalidate");
    header("pragma: no-cache");...
  12. Here is a newly created Euro universal...

    Here is a newly created Euro universal converisseur. I will still put in a few points to make...
  13. The European Central Bank publish many things...

    The European Central Bank publish many things about Foreign exchange references rates...

    At first this page http://www.ecb.europa.eu/euro.html give the daily reference rates which « are usually...
  14. Inputs have two name attributes with different...

    Inputs have two name attributes with different values.
    Replace your code with something like this (with the country in the class tag)

    <input type='checkbox' name='list' class='indent-28...
  15. A simple page to full a form with the dates of...

    A simple page to full a form with the dates of the current week :

    <!DOCTYPE>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="generator"...
  16. Use the Date object : var myDate=new...

    Use the Date object :

    var myDate=new Date(yyyy,mm-1,dd);
    var nextDate=new date(myDate.getFullYear(),myDate.getMonth(),myDate.getDate()+1);
  17. Replies
    2
    Views
    912

    You do not say how textpos1, textpos2... are...

    You do not say how textpos1, textpos2... are defined. I suppose the questions are displayed on different successive lines (with n new Lines) from textpos which is the argument of the function...
  18. To simulate a Gaussian variable with mean 0 and...

    To simulate a Gaussian variable with mean 0 and variance 1, it suffices to calculate :

    X = Math.sqrt(-2*Math.log(Math.random())*Math.cos(2*Math.random());

    Calculate Y = m + s X for the mean m...
  19. To see object properties try : ...

    To see object properties try :

    console.log(JSON.stringify(distribution));
  20. Try this code : var...

    Try this code :



    var nbr,nbs="7.33333|0.034343434|0.0434343434|0.05768787878787|3.854523523523523|0.142857142857".split('|');

    for (i=0;i<nbs.length;i++){var...
  21. 2048 - Touchmove - How to prevent scrolling and page switching ?

    Touch move is made for Gabriele Cirulli's 2048 Game.

    For me, the problem is on this page (or on the author page*), to avoid scrolling and page switching on a TipadXl (LNA Xtrem) and other phones...
  22. Replies
    2
    Views
    616

    Simply an arrStr=str.split(','); give an array...

    Simply an arrStr=str.split(','); give an array with the result.

    Then you have only to build a string with something like this (non tested) :


    // HTML
    <p id="rsp"></p>

    // Javascript at...
  23. This to get something like java : function...

    This to get something like java :

    function Person(firstName){
    this.firstName=firstName;
    }
    var p1=new Person();
    alert(p1+'\n\nConstructor: '+p1.constructor+'\n\nJson: '+JSON.stringify(p1));...
  24. Use the Select selectIndex Property...

    Use the Select selectIndex Property with a loop for i=1,2,3 or 4 on document.getElemenById('type'+i).
    The only problem is that this property give 0 (for the first option) with no user action (See...
  25. Replies
    1
    Views
    730

    Other Unless I am mistaken, this ...

    Unless I am mistaken, this /@font-face\s*\{[^}]+}/g regular expression will capture all @fontface declaration.

    We capture all string beginning with @font-face, followed with : zero or more (*)...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles