An easy way to get rid of the padding through CSS is by adding these styles to the checkbox:
margin:0; width:13px; height:13px; overflow:hidden;
margin:0; width:13px; height:13px; overflow:hidden;
<html>
<head>
<script type="text/javascript">
function urltitle(title)
{
// Create the url friendly title
var url = title
.toLowerCase() //change everything to lowercase
.replace(/^\s+|\s+$/g, "") //trim leading and trailing spaces
.replace(/[&]+/g, "and") //replace ampersand
.replace(/[#]+/g, "sharp") //replace pound
.replace(/[@]+/g, "at") //replace at
.replace(/[%]+/g, "percent") //replace percent
.replace(/[+]+/g, "plus") //replace plus
.replace(/[-|\s]+/g, "_") //replace spaces and hyphens to underscore
.replace(/[^a-z0-9_]+/g, "") //remove all non-alphanumeric characters except the underscore
.replace(/[_]+/g, "_") //remove duplicate underscores
.replace(/^_+|_+$/g, "") //trim leading and trailing underscores
;
document.getElementById('title_url').value = url;
}
</script>
</head>
<body>
<input type="text" onkeyup="javascript:urltitle(this.value);" />
<input type="text" id="title_url" />
</body>
</html>
A lot of times we use images as our submit buttons for forms. I'm sure you've seen it a lot. Well, say you wanted to test if the form was submitted and used the standard way, lets say in PHP, of seeing if the submit button was sent, for example like this:
if (isset($_REQUEST['mysubmitbutton']))
{ ...}
With IE6 this wouldn't work if your submit button was an image. So if you had this as your submit button:
<input name="mysubmitbutton" type="image" value="1" src="someimage.png" alt="" />
Then your script wouldn't work. The reason is that IE6 WILL NOT send over the variable mysubmitbutton.
The workaround is to know that IE6 will send over other information (along with all other browsers). It sends the x and y coordinates of where you clicked on the image. So you'll see mysubmitbutton_x and mysubmitbutton_y. So if you modify your code to look for either of these variables, you'll be good to go!
Credit is to be given to this discussion forum: Differences in form handling btw Mozilla and IE?