Simulation QQ Drop-down List selection image

Source: Internet
Author: User
Tags eval visibility
<title> simulated Oicq down head </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<script language= "JavaScript" >
Provider: Small White
Contact Method:
qq:14681571
Email:xiaobai@17560.net
Description
See an article on the web that simulates OICQ select images
But the program just gave a method, and did not achieve the real effect of the actual application: can not choose.
Small for perfect, the following is the complete source code
Pass test: Win2ks
Prepare 6 Pictures: file name see the following code
Where: Http://edu.cnzz.cn/NewsInfo/http://edu.cnzz.cn/NewsInfo/none.bmp is a picture without a choice
var bv=parseint (navigator.appversion);
var ie4= (document.all) && (bv>=4)? True:false;
var ns4= (document.layers) True:false;
var z=0;
function Layerv (layername,v) {
E=eval (' document. ') +layername);
if (IE4) e=eval (' document.all. ') +layername+ '. Style ');
e.visibility= (V? ') Visible ': ' hidden ');
}

//////////////////////////////////////////////////////////
The following function enables you to select a picture when clicked
function Select (image1) {
var html,url1
Url1=image1.src

Html= "html=html+ "<a href=javascript:layerv (' Zhong ', z=1-z) ><font style= ' font-family:webdings; ' >6</font></a> "
Pic.innerhtml=html
Layerv (' Zhong ', z=1-z)
}
///////////////////////////////////////////////
</script>

<body bgcolor= "#FFFFFF" >

<table width= "border=" 0 "cellspacing=" 0 "cellpadding=" 0 ">
<tr>
<td>
<table width= "100%" border= "1" cellspacing= "0" cellpadding= "0" bordercolor= "#FF66FF" >
<tr>
&LT;TD align= "right" ><font style= "font-size:12px" ><div id=pic><a href=" Javascript:LayerV (' Zhong ', z=1-z) "><font style=" font-family:webdings; >6</font></a></div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><div id= "Zhong" style= "position:relative; visibility:hidden; width:90px; height:150px; overflow:scroll;" >
<br>
<br>
<br>
<br>
<br>
<br>
</div></td>
</tr>
</table>
<br><br><br><br><br><br><br><br><br>
</body>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.