Jump to content

eXtaZa

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

eXtaZa's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. You can use the date funtion in php, its by the server time and its much more simple...
  2. I think that by the user's computer time... [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] But I don't know exacly...
  3. So... If have a textarea named "Message" and a image named "a", and I want that when i'm clicking the "a" image it write to me the string ":lol:" in the textarea, i'm doing like this (the function): [code] function AddSmile(smile_name){ document.myForm.Message.value = document.myForm.Message.value + smile_name; } [/code] and the code in the image: [code] <a href="#" onClick="AddSmile(':lol:')"><img src="a.gif"></a> [/code] Now... when I will click "a" image, it will write to me the string ":lol:" in the textarea, but it will write this string in the end of the text that I wrote, And I want that it will write to me this string where I'm focusing with the cursor. I mean that if I wrote in the textarea like this: 123456789 And I'm focusing with the cursor between 4 and 5 (1234 56789) then I want that when im clicking the image it will write to me ":lol:" between 4 and 5 and not in the end, after 9. How can I do that? Thanks.
  4. Are you meaning this: [code] <html> <head> <script type="text/javascript"> function startTime() { var today=new Date() var h=today.getHours() var m=today.getMinutes() var s=today.getSeconds() // add a zero in front of numbers<10 m=checkTime(m) s=checkTime(s) document.getElementById('txt').innerHTML=h+":"+m+":"+s t=setTimeout('startTime()',500) } function checkTime(i) { if (i<10)   {i="0" + i}   return i } </script> </head> <body onload="startTime()"> <div id="txt"></div> </body> </html> [/code] ?
  5. Hello, so... I have this code(and I have a connection to the DB before, its just a example... ): [code] <html> <body> <form action="<?php Print $PHP_SELF ?>" method="POST"> <input type="submit" name="asd" value="Delete!"><BR> <?php $Result = mysql_query("SELECT * FROM GuestBook ORDER BY Date DESC"); while($a_row = mysql_fetch_row($Result)){     echo "<input type='checkbox' name='DeleteMe[]' value='$a_row'><BR>";     echo "</form>"; } if($_POST['asd']){ $a=$_POST['DeleteMe']; if(is_array($a)){ echo "yes"; foreach($a as $value) echo $value; } else echo "no"; } ?> </body> </html> [/code] I dont here that it will print me each time CheckBox, and to the CheckBox will be the value of the row that he get out of the DataBase. Then I dont that it check if what I'm sending is a array, If it is, he need to print me "yes", and then he need to print me every var that in the array. now, the problem is that just if im mark the first Checkbox, prints me: "yesArray" But why? Its true that it's array, but why he doesnt print every var in the array? And if I'm marking other CheckBox, except of the first CheckBox, it's print s me "no". But why? Its doesn't a array? Why just if I'm marking the firs CheckBox It's prints that its a array, And why he doesn't prints me all the vars that exist in the array? Thanks!
  6. Hello, I want to check if the user clicked the back button, I mean that I want to check if the user was back some way, and to show him message if he done it. How can I do that? thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.