高分 求IT类网站的产品比较代码
谁有这种代码给点点哈,我以前电脑中存的有,但是中毒后被清除了,谁能提供一下
演示,
罗列出20个产品型号,选中其中3个或者2个进行产品详细比对,电脑类网站全部有这种,
<LI> <input name= "than " type= "checkbox " value= " <%=rs( "number ")%> " class= "input_than "/> </li>
PS:我就是不知道如何将这种编码如何传递和保存。谁能提示一下,谢谢了哈
前日寻得一段代码,但是有错误,对对比页面不知道怎么写。谁提示一下,代码演示如下
: <script LANGUAGE= "JavaScript ">
<!--
document.write( ' <div id= "float " style= "position:absolute;left:5px;top:200;filter:alpha(opacity=50);z-index:99;width:140; " align=center dir= "rtl "> </div> ');
if(typeof(doc_ad_array)== " "){
var doc_ad_array = new Array();}
function readCookie(name){
var cookieValue = " ";
var search = name + "= ";
if(document.cookie.length > 0){
offset = document.cookie.indexOf(search);
if (offset != -1){
offset += search.length;
end = document.cookie.indexOf( "; ", offset);
if (end == -1) end = document.cookie.length;
cookieValue = unescape(document.cookie.substring(offset, end))}}
return cookieValue;}
function writeCookie(name, value, hours){
var expire = " ";
if(hours != null){
expire = new Date((new Date()).getTime() + hours * 3600000);
expire = "; expires= " + expire.toGMTString();}
document.cookie = name + "= " + escape(value) + expire;}
lastScrollY = 0;
function heartBeat(){
diffY = document.body.scrollTop;
percent =.1*(diffY-lastScrollY);
if(percent> 0)
percent = Math.ceil(percent);
else
percent = Math.floor(percent);
document.all.float.style.pixelTop+= percent;
lastScrollY = lastScrollY+percent;}
window.setInterval( "heartBeat() ",1);
function hide(){
obj=document.getElementById( "float ");
obj.style.display= 'none ';}
function redraw(){
heartBeat();
tmp=readCookie( "pro_str ");
item_arr=tmp.split( "### ");
floatstr = " <table height=100% width=100% border=0 bgcolor= '#ffffff '> "+
" <form method= 'post ' name= 'compare ' target= '_blank '> "+
" <tr> <td align=center height=26> <font color=red> <strong> 〖产品比较篮〗