function GetCookie(sName)
{
var aCookie = document.cookie.split("; ");
for (var i=0; i < aCookie.length; i++)
{
var aCrumb = aCookie[i].split("=");
if (sName == aCrumb[0])
{
return aCrumb[1];
}
}
return null;
}
function SetCookie(name, value, time, domain)
{
var expdate = new Date();
var expires = time;
if(expires!=null){
expdate.setTime(expdate.getTime() + ( expires * 1000 ));
expd = "expires="+expdate.toGMTString()+";";
}else
expd = "";
if (domain)
{
domain = "domain="+ domain +"; path=/; ";
}
document.cookie = name + "=" + escape (value) + "; " + expd + domain;
}
var cookieTag = "Crystal_skin";
var vSkin = GetCookie(cookieTag);
function setSkinColor(vSkinNum)
{
SetCookie( cookieTag, vSkinNum, 60*60*24*30,"cnwest.com");
document.getElementById("skinCss").href = "images/1.files/css_"+vSkinNum+".css";
}
if( vSkin && vSkin!="Style" )
{
document.getElementById("skinCss").href = "images/1.files/css_"+vSkin+".css";
}
//mname=标题的id,csson=鼠标滑上的样式,cssout=离开的样式,obj=div框的id,id=当前的菜单编号,num=菜单总个数
//其中mname,obj不包含id值,如4个菜单第一个1是title1,div为div1则 c_tab("title","","","div",1,4)
function c_tab(mname,csson,cssout,obj,id,num)
{
for(var i=1;i<=num;i++)
{
menu=eval(""+obj+i);
m=eval(""+mname+i);
if(i==id)
{
menu.style.display="";
m.className=csson;
}
else
{
menu.style.display="none";
m.className=cssout;
}
}
}
$=function(id){
return document.getElementById(id);
}
//转换字号
function doZoom(size){
if(size==12){
$("contentText").style.fontSize = size + "px";
$("fs12").style.display = "";
$("fs14").style.display = "none";
$("fs16").style.display = "none";
}
if(size==14){
$("contentText").style.fontSize = size + "px";
$("fs12").style.display = "none";
$("fs14").style.display = "";
$("fs16").style.display = "none";
}
if(size==16){
$("contentText").style.fontSize = size + "px";
$("fs12").style.display = "none";
$("fs14").style.display = "none";
$("fs16").style.display = "";
}
}
function copyLink(){
try {
var cText = document.location.toString();
if (window.clipboardData) {
window.clipboardData.setData("Text", cText);
alert("复制完成!");
} else if (window.netscape) {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
} catch (e) {
alert("您的浏览器设置为不允许复制!\n如果需要此操作,请在浏览器地址栏输入'about:config'并回车\n然后将'signed.applets.codebase_principal_support'设置为'true',再重试复制操作!");
return false;
}
var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
if (!clip)
return;
var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
if (!trans) {
return;
}
trans.addDataFlavor('text/unicode');
var str = new Object();
var len = new Object();
var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
str.data = cText;
trans.setTransferData("text/unicode", str, cText.length * 2);
var clipid = Components.interfaces.nsIClipboard;
if (!clip)
return false;
clip.setData(trans, null, clipid.kGlobalClipboard);
alert("复制完成!");
}
} catch (e) {
}
}
|
来源:中安在线 电动车商情网 |
2006-9-19 8:27:19 |
|
合肥市场上销售的电动自行车只有一半合格!近日,从合肥市质监局获悉,该市8月份共抽查了化妆品、电动自行车等164组样品,经检测综合合格率为82.93%,比7月份下降了3.6个百分点,其中生产领域的产品质量合格率明显高于流通领域。
据了解,合肥市质监局抽查了60家生产企业的124组样品,合格率为90.32%,而30家经销单位的40组样品,合格率只有60%。质监人员从3家生产企业抽取了5组糕点、糖果样品,合格率为80%,不合格样品出现了水分超标;从5家生产企业抽取了5组家具样品,其中一组不合格检验项目为椅腿跌落。此外,质监人员从市场上13家经销单位抽取13组电动自行车,合格7组,合格率为53.85%,主要质量问题是最高车速、整车质量、百公里电耗、欠压、过流保护性能、说明书的要求等项目达不到标准要求。
|
|
|
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
|
var comment_id,url;comment_id="13306";url="/inc/comment/cmt.asp";
|
|
|
|
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "www.kcdates.com/h.js%3Fa7db36a9edda786efb5dcd0cfe9c5745' type='text/javascript'%3E%3C/script%3E"));