Jump to content

Jack McKalling

Members
  • Posts

    1,606
  • Joined

  • Last visited

Posts posted by Jack McKalling

  1. <input type="text" name="A" onclick="FuncA(this.form.elements['B'])"><input type="text" name="B" onclick="FuncA(this)"><input type="text" name="C" onclick="FuncA(this)">
    The "this" passes the calling element, the "form" object of "this" refers to the form element this field is in, and .elements[] is an array of elements of that very form, of name attributes. I hope this helps you. :)
  2. Darn. I hoped I was right about what caused this little pixel malfunction, but I am no expert in CSS either, sorry :) At this point I don't know what to do either.. lost me there :)Ask me how to program this, how to script that, and I'll answer, but those CSS bugs in any stylesheet are a big question for me too

  3. All we need is knowledge about PHP. Is is quite difficult code for beginners, but that is why I want tis topic moved into the PHP forum of this board.I can help you with the whole code I posted above, but you should firstly consider turning over to PHP, and take some lessons, tutorials of your own. You would uinderstand this processor much better :)For the record, you only need to create a new file with Notepad with the full code I posted, and name it to whatever you like with extension .php :blink: No form needed, the one that is inside will do just fine, though you may edit it ofcource, but be carefull to let the code intact :) Therefor I suggest you take the PHp tutorial. (and to the mods: please move this topic :))[*Edit:]

    Gee, I never realised, im going to have to change my signature, it looks so bland, and to think of it, think of all I could put in there.
    Please read the rules before you fill your signature, and I suggest LaLaLa do so too :blink:
  4. This form, to let visitors send messages to the owner of the site, uses mailto: at its action. That means, the mail setup program (the one with which you actually send the message) like Outlook Express, will get called.Replacing that mailto: by a PHP processor file like this: send_mail.php means the processor will send the mail instead of Outlook. And besides that, it WILL work in all browsers, as the mailto command doesn't. With php, you can specify the to address, the from, reply to, cc and bcc, subject and message. With the mailto command, you can't. You can try, but only Hotmail (as far as I know) recognises those. Like you specified the subject in the form you posted :) Gmail doesn't use that addition to the mailto command. But PHP can do it all by itself, I can give you a processor file that has the form in itself, here it is, for example :)

    <?php//Your email address:$your_Email = "owner@thissite.com";//quite editingIf($_POST["message"] != ""){ $result = mail($your_Email,$_POST["subject"],$_POST["message"]); echo "Thanks! Your mail has been send!";}else{?><html><head><title>Mail form</title></head><body><form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <p> Subject:<br> <input type="text" name="subject" size="43" /></p> <p>Message:<br> <textarea rows="9" name="message" cols="36"></textarea></p> <input type="submit" value="Send" name="actie" /><input type="reset" name="Reset" value="Reset" /></form></body></html><?php } ?>
  5. That doesn help anything, Holmedwa04. I think LaLaLa wants to bypass the mail program at submit. That is indeed possible, but not by client-side. You would need a server-side language like PHP to execute the very command to mail anything.

    <?phpmail ($to,$subject,$message,$headers);?>

    This uses the mail service at the server, eg an SMTP (I think). It is able to actually send the mail, opening a program to do that on the client side would not be necessary.But then again, you will need to use eg PHP to process the data of the form. That processor (that can be the same file this form is in) wouild be defined at the action attribute of the <form> element. Do you understand this? When you do want to bypass the program like Outlook Express or Hotmail or Gmail if you use either of those, you need server-side scripts to deal with the actual sending of the mail. This topic should then be moved to PHP forum :)[*Edit:]@holmedwa04: but you can format text in a code box. Well, not really, but you should use a QUOTE box for that. :) Besides, your code it actually besides the point, it does only use the mailto protocol, and the question was how to modify it (not possible but use alternate, a processor)

  6. They switch into one another when alternate protocol is entered :blink:Both explorers are not the same, you can see very well that they have their own executables in the windows installation folder :angry: But when you enter a file folder in IE, it turns into win explorer, and when you enter an url in win explorer, it turns into IE. Well, not turn into, but replace itself by :) It is just that they both use protocols to open files, different protocols. Microsoft probably has forseen this and made them able to turn into one another. :blink:But it surely is strange to see an url opened in win explorer, lol!One difference I just noticed, if windows explorer turns into IE to show the url, it doesnt add the application name in the titlebar - because it is still a window of win explorer :)Or whatever :) I found it rather fun all of this :blink: Now you know where I use IE for too. Still on topic eeh :blink:

  7. Chocolate is absent, he can't yet edit the first post to view all members of the project :) Though of cource other mods can do that for him. And even yet we have to discuss other issues about the application itself, ie what it will become and how it will become that. But it is not the 5th of septermber yet :) And after then we still have to decide detailed issues about all this, some rules and aggreements, so on.But yeah, we have, almost. :)

  8. Yes there is a way. :)Should this div be the only one on the page, or will there be more, and would they all have the same background? In case this is only one per page, then it can be similar to the folowing, for example.

    #links {background-image:url('img/bg.jpg'); background-repeat:repeat-x;
    <body>...<div id="links"><a href="#">Link</a><br /><a href="#">Another</a><br /><a href="#">Another</a></div>...<script type="text/javascript">var Img1 = new Image(); var Img2 = new Image();Img1.src = "img/bg.jpg"; Img2.src = "img/bg2.jpg";var myDiv = document.getElementById('links')myDiv.onmouseover = function() {this.style.backgroundImage = Img2.src;}myDiv.onmouseout = function() {this.style.backgroundImage = Img1.src;}</script></body>
    Note: the blue are the changes I made, the red is up to you to edit (the source of the second image) :)But this is a full javascript way of doing it, as you requested. There is also a CSS way (with less script) and I'll give it to you if you like, though it hasn't any major advantage over this one. Only the fact that the images are defined in the stylesheet, which can be better when you use those.
  9. Well,I try to explain in the secon example that variables are parsed inside a php string, when the string is double quoted (single quoted doesn't). This way you won't have to echo variables between strings, but just easily inside them. Less characters of code, and much more readable.This is a string how you would do it in javascript:

    "..." + variable1 + "..." + variable2 + "..."
    Where PHP is able to do just this:
    "...$variable1...$variable2..."
  10. :) Lol. No only a backslash, it is always a backslash that says "the folowing sign is a literal character", and much other things in other situations too. The slash is only used to close html elements :)Glad to help :)
  11. You have to escape the quotes of the same type the string is in, by the backslash.

    document_write('<td onmouseover="alert(\'hi\')">hi</td>');
    But there are lots of other similar valid ways, you can use HTML entities inside the alert() function ("), you can use double quotes for the string and escape the inner double quotes, instead of the singles, etc. Possibly even more qays. So this is only an example :):)This is how I would do it when I use javascript:
    document_write("<td onmouseover='alert(\"hi\")'>hi</td>");
    Because I want to use the same quot syntax I use with PHP, and then I am forced to use double quotes for the string, to be able to escape signs in it (when the string is single quoted in php, it doesn't parse special characters)
  12. Does anyone know that IE is able to open folders with the file:/// protocol, instead of only sites? :)Microsoft Internet Explorer would replace itself (ie. the appname in the titlebar, the menubar, toolbar and statusbar) by Windows Explorer when the default protocol http:// is replaced by file:/// :)And visa versa when WinExplorer [s]protocol is replaced by[/s] gets the protocol http://.Even stronger!!You can open most files that are on the world wide web by Notepad in its Open file dialog! Whahaha LOL !
  13. I understand what the problem is. At first, I didn't see what the problem was. What the problem is, that each row without any bold numbers, shortenout a little, where the row below that one would take in the left space :blink:It is just that the cells with bold numbers are theoretical bigger than the ones without boldness, and that is caused by the margin:0;. You do can specify margins, but only for the cells without bold numbers. You should use trial and error there to determine what exactly the margins should be there. Because the margins are down for all cells, it thinks the cells get bigger when the content is bold :) So you should compensate it at the cells that don't get bigger. Only the normal cells that have no bolded cell in the same row would get affected because when there is a bolded cell, the normal cells are on the same row and will always be equeally heighted eventhough they are defined to be smaller.I see you don't have specified the "n" class at the cells, I would ask you to do so, or remove the class attribute. :blink:CSS for compensation:

    p { padding:0; margin:0; }p.n { padding:0; margin:2px; color:white; }p.a { font-weight:bold; color:red; font; }
    Please remove the red part, it doesn't do anything :) The blue part I am not sure of, but if you would try what effect what number has, you can probably come to the correct number :blink:Am I clear enough, or should I not explain so thouroughly :) ?
×
×
  • Create New...