Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: a greater challenge

  1. #1
    Join Date
    Aug 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default a greater challenge

    hi jhon and everyone.

    I was thinking about something...

    if the code that you help me whith before, is replaced in a table (1 row 3 column ), is it possible to do a random code but now in a multi cell table such in this picture?

    ito

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    What picture?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry about that.
    above you can see the picture again.

    ito
    Last edited by ito; 08-29-2006 at 12:27 PM.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    No. Your picture shows 3 rows and 3 columns (not as you typed - 1 row 3 column). Other than that, the layout shown by your picture could be populated by a script similar to the one we were using for the simpler layout, yes.

    What about the descriptions (card names)? In your image they are gone. Did you decide you didn't want these any longer, or did you simply not include them in the image?

    BTW, this is starting to look like a Tarot layout, is that what you are going for?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    if the code that you help me whith before
    You expect us to remember every question we answer? :-\
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Aug 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi jhon.

    i simply draw the pic with graphic software for the example.

    you are right about the cause- its for tarot category i have in my newage website.

    i'm trying for a long time to solve the code problem-and thanks to you,
    it works great!!!!

    i'm an autodidact, i'm trying to learn things my self for the web needs.

    after we had succeed with the firt code i've been thinking about other table options.
    i understand that is possible to do so.
    i hope to learn to do so my self ,i wont need any help in the future.

    is it making difficult for you to know that its for tarot cards,jhon?
    is o.k with you to help me with this one too?

    ito
    Last edited by ito; 08-30-2006 at 05:50 AM.

  7. #7
    Join Date
    Aug 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry,
    thats the code i was talking about :

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">
    .cent td {
    text-align:center;
    }
    </style>
    <script type="text/javascript">
    var check=[];

    function populate(){
    var ims, txt, cards=[];
    cards[0]=["01.jpg", "1"];
    cards[1]=["02.jpg", "2"];
    cards[2]=["03.jpg", "3"];
    cards[3]=["04.jpg", "4"];
    cards[4]=["05.jpg", "5"];
    cards[5]=["06.jpg", "6"];
    cards[6]=["07.jpg", "7"];
    cards[7]=["08.jpg", "8"];
    cards[8]=["09.jpg", "9"];
    cards[9]=["10.jpg", "10"];
    cards[10]=["11.jpg", "11"];
    cards[11]=["12.jpg", "12"];
    cards[12]=["13.jpg", "13"];
    cards[13]=["14.jpg", "14"];
    cards[14]=["15.jpg", "15"];
    cards[15]=["16.jpg", "16"];
    cards[16]=["17.jpg", "17"];
    cards[17]=["18.jpg", "18"];
    cards[18]=["19.jpg", "19"];
    cards[19]=["20.jpg", "20"];
    cards[20]=["21.jpg", "21"];
    cards[21]=["22.jpg", "22"];
    cards[22]=["23.jpg", "23"];
    cards[23]=["24.jpg", "24"];
    cards[24]=["25.jpg", "25"];
    cards[25]=["26.jpg", "26"];
    cards[26]=["27.jpg", "27"];
    cards[27]=["28.jpg", "28"];
    cards[28]=["29.jpg", "29"];
    cards[29]=["30.jpg", "30"];
    cards[30]=["31.jpg", "31"];
    cards[31]=["32.jpg", "32"];
    cards[32]=["33.jpg", "33"];
    cards[33]=["34.jpg", "34"];
    cards[34]=["35.jpg", "35"];
    cards[35]=["36.jpg", "36"];
    cards[36]=["37.jpg", "37"];
    cards[37]=["38.jpg", "38"];
    cards[38]=["39.jpg", "39"];
    cards[39]=["40.jpg", "40"];
    cards[40]=["41.jpg", "41"];
    cards[41]=["42.jpg", "42"];
    cards[42]=["43.jpg", "43"];
    cards[43]=["44.jpg", "44"];
    cards[44]=["45.jpg", "45"];
    cards[45]=["46.jpg", "46"];
    cards[46]=["47.jpg", "47"];
    cards[47]=["48.jpg", "48"];
    cards[48]=["49.jpg", "49"];
    cards[49]=["50.jpg", "50"];
    cards[50]=["51.jpg", "51"];
    cards[51]=["52.jpg", "52"];
    cards[52]=["53.jpg", "53"];
    cards[53]=["54.jpg", "54"];
    cards[54]=["55.jpg", "55"];
    cards[55]=["56.jpg", "56"];
    cards[56]=["57.jpg", "57"];
    cards[57]=["58.jpg", "58"];
    cards[58]=["59.jpg", "59"];
    cards[59]=["60.jpg", "60"];
    cards[60]=["61.jpg", "61"];
    cards[61]=["62.jpg", "62"];
    cards[62]=["63.jpg", "63"];
    cards[63]=["64.jpg", "64"];
    cards[64]=["65.jpg", "65"];
    cards[65]=["66.jpg", "66"];
    cards[66]=["67.jpg", "67"];
    cards[67]=["68.jpg", "68"];
    cards[68]=["69.jpg", "69"];
    cards[69]=["70.jpg", "70"];
    cards[70]=["71.jpg", "71"];
    cards[71]=["72.jpg", "72"];
    cards[72]=["73.jpg", "73"];
    cards[73]=["74.jpg", "74"];
    cards[74]=["75.jpg", "75"];
    cards[75]=["76.jpg", "76"];
    cards[76]=["77.jpg", "77"];
    cards[77]=["78.jpg", "78"];


    cards.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter)

    for (var i_tem = 0; i_tem < 3; i_tem++){
    if (check[i_tem]&&cards[i_tem][1]==check[i_tem]){
    ims=cards[i_tem+3][0];
    txt=cards[i_tem+3][1];
    }
    else {
    ims=cards[i_tem][0];
    txt=cards[i_tem][1];
    }
    document.getElementById('layout').rows[0].cells[i_tem].innerHTML='<img src="'+ims+'">';
    document.getElementById('layout').rows[1].cells[i_tem].innerHTML=txt;
    check[i_tem]=txt;
    }
    }
    onload=populate;
    </script>
    </head>
    <body>
    <p align="center">
    <input type="button" value="deal" onclick="populate();">
    </p>
    <p align="center">
    <table id="layout">
    <tr>
    <td></td>
    <td></td>
    <td></td>
    </tr>
    <tr class="cent">
    <td></td>
    <td></td>
    <td></td>
    </tr>
    </table>
    </body>
    </html>

  8. #8
    Join Date
    Aug 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i ment the firts table we worked with...

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, it can be worked out, and if you want to learn for yourself, I'd suggest looking for patterns in what we did in each version and taking a guess or two at what might come next for your new layout. Also, if there are terms in the code that you do not understand, try searching for them using Google.

    I will also try putting this together myself when I get more time. I found a nice 54 card standard playing card deck (including 2 Jokers) that is in the public domain and have been fooling around with different ideas with it. I'm curious, are your Tarot card images in the public domain as well?

    To answer your question about Tarot, I am a gifted somewhat in the occult art/sciences but, am highly skeptical about their ultimate value. However, as long as the practitioner has good intentions, to be helpful to people above other considerations, the results usually aren't that bad. I have seen many situations where too much is read into the cards or whatever is being used. People always may exercise free will and there is no such thing as fate as regards what the cards, signs or omens reveal. I have also seen where a practitioner's own fears, needs, expectations, etc. color readings to the disservice of his/her clients. I had to learn all this myself as well as the broader, often unpleasant, matter of client and practitioner projection. I've, as a result, chosen to help others mostly in more concrete ways and to confine my work with people's life choices mostly to attempts at drawing them out and exposing themselves to themselves for self inspection.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Aug 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi john.

    i was pleased to read that you have some conection to the unknown.
    i agree with you that there is a lot of manipulation in this area,but we have to remember that the card wisdom was achieved by an ancient experience some centuries ago,and survived since then.something i think we can't despise.

    yet, the responsibility of the cards explanations, is ours.

    in my web i let the surfers ask questions, and be answered by a proffetional person, for free....

    i can lead you to the adress of the tarot page you've been helpping me with,but i doubt if you will understand the language...

    about the new patterns.
    well , i've tried to play with the code that you gave me- without any success i may say.
    it turns out that 1 row its not enough to learn the javascript language, especially in multi table case.
    also, i dont know what to ask yet in google.
    it was difficult enough for me to find you...(:

    how can i built a table (3r 3c)what are the rules?...

    but, it was satisfied to know that its possible.

    i think that you were the only one that gave me a complete code for my needs.
    evreybody else i asked till i met you,gave me parts of code;that's why it took so long for me.

    anyhow, you have my gratitude for that.

    i'll try to mannage some how.

    nice to meet some one so faraway from you...

    thanks,

    ito.
    Last edited by ito; 08-30-2006 at 07:19 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •