mattover-matter
03-31-2003, 01:55 PM
I know we should always code our script. I am worried about over coding....Tell me what you think of this small script:
<script language="javascript">
<!--
/*******************************************************
** Get Rid of Box Around Links! **
********************************************************
** This Script will remove ** Cycles through all the **
** the box that appears ** links in the page and **
** around links whenever ** adds this line to it: **
** you click them. ** onFocus="this.blur();" **
*******************************************************/
onload = function() {
a_tags=document.getElementsByTagName('a')
for (i=0;i<a_tags.length;i++) {
a_tags[i].onfocus=blur_links
}
}
function blur_links() {
this.blur()
}
/*******************************************************
** END - Get Rid of Box Around Links! **
*******************************************************/
//-->
</script>
Does that look "over coded"?
<script language="javascript">
<!--
/*******************************************************
** Get Rid of Box Around Links! **
********************************************************
** This Script will remove ** Cycles through all the **
** the box that appears ** links in the page and **
** around links whenever ** adds this line to it: **
** you click them. ** onFocus="this.blur();" **
*******************************************************/
onload = function() {
a_tags=document.getElementsByTagName('a')
for (i=0;i<a_tags.length;i++) {
a_tags[i].onfocus=blur_links
}
}
function blur_links() {
this.blur()
}
/*******************************************************
** END - Get Rid of Box Around Links! **
*******************************************************/
//-->
</script>
Does that look "over coded"?