look at the following code:
var str_length = document.form1.textbox_name1.value;
alert(str_length.length); // get length
first store the text box value into a variable. then simply using the .length method you can get the string length.
SELECT * FROM table_name ORDER BY RAND() LIMIT 0,1
<?php
echo rand();
?>
<marquee onMouseover="this.scrollAmount=1" onMouseout="this.scrollAmount=4">
Scrolling text here. Scrolling text/images goes here
</marquee>
<marquee onMouseover="this.scrollAmount=3" onMouseout="this.scrollAmount=6">
<?php
//database connection
//retrive image names from database
//get full image path
?>
<img src="<?php echo $image_path; ?>" />
</marquee>
<table>
<tr>
<td>
write something
</td>
</tr>
</table>
<php
echo 'Hello Blogpost';
?>