when a user registration will click a label to replace a verification code. When clicking on a tag on a shaded part. For like beautiful classmate is intolerable!
code is as follows:


<Ahref="javascript: RefreshCode ();" Class="yellow" >Can't see it clearly? Change the picture </a>

can be removed after the href so, give a label with the onclick event, call to update the verification code function

  code is as follows:  


<Aonclick="RefreshCode ()" class="yellow" >Can't see it clearly? Change the picture </a>

2: take a step back. Seeking common ground while putting aside differences. If you want to use the href attribute. All right. I'll give you add a event: an onfocus
code is as follows:


<A href="javascript: RefreshCode ();" Class="yellow" an onfocus="enclosing the blur ()" >Can't see it clearly? Change the picture </a>

modify the finished effect
code is as follows:


a {the outline: none; }

of course, this is just to get rid of the individual. If the page has more than a label that do not turn turn add an onfocus event?
code is as follows:


<Scripttype="text/javascript" >
window. The onload=function () {
the for (var I=0; i the document. The links [I] an onfocus=function () {enclosing the blur ()}
}
</script>

2, add the background image to the button:
code is as follows:


<Asp: Button ID="imgBtnReg" runat="server" an onfocus="enclosing the blur ()" OnClick="imgBtnReg_Click Text"="confirm to submit"/>
<Input type="submit" id="btnReg" value="http://www.jb51.net//web/" name="regist" onclick="return checkAll ()" style="background - image: url (' image/BTN. JPG)"/>

the revised results:
code is as follows:


<A href="http://www.jb51.net//web/#none" an onfocus="enclosing the blur ()" >
<Img style="border: 0 px" >
</a>

if you have a tag on your page. Have the button again. Then you can be encapsulated into a function

  code is as follows:  


function fHideFocus (tName) {
aTag=document. GetElementsByTagName_r (tName);
the for (I=0; i//for (I=0; i}

the current is to add a hidefocus attribute, its value is a Boolean value, such as hidefocus=true. Can also be omitted assignment hideFocus directly.

code without hideFocus, so the mouse to click the hyperlink, the outside in a box, is the focus. While using the hideFocus dotted box.
code is as follows:


<A href="http://blog.sina.com.cn/s/articlelist_3015911503_0_1.html" an onfocus="enclosing the blur ()" >
<Img style="border: 0 px" >
</a>

among them, an onfocus is to set up the mouse event, this can use, also can need not, however, in order to let more browsers to identify, recommend; Border=0 this is the key to remove the dotted box (see the majority of people on the Internet are made with an onfocus=" this. The blur () " to remove the dotted boxes, but sometimes, just use this sentence is not eliminate)


This concludes the body part