80、半透明图片的显示

80、半透明图片的显示

脚本说明:

把如下代码加入<body>区域中

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

if ((navigator.appName.indexOf('Microsoft')+1)) {

document.write('<style type="text/css"> .opacity1 {filter:alpha(opacity=50)} .opacity2 {filter:alpha(opacity=100)} </style>'); }

if ((navigator.appName.indexOf('Netscape')+1)) {

document.write('<style type="text/css"> .opacity1 {-moz-opacity:0.5} .opacity2 {-moz-opacity:1} </style>'); }

else {

document.write(''); }

//  End -->

</script>

<table align="center" cellpadding="10">

<tr><td>

<a href="http://www.7stk.com"><img src="headerlogo1230.gif" border="0" class="opacity1" onmouseover="this.className='opacity2'" onmouseout="this.className='opacity1'"></a>

</td><td>

<a href="http://www.7stk.com"><img src="javascriptlogo-sm1230.gif" border="0" class="opacity1" onmouseover="this.className='opacity2'" onmouseout="this.className='opacity1'"></a>

</td></tr>

</table>

Write a comment

Comments: 0