首先下载JavaScript包:
http://thecodecentral.com/wp-content/uploads/2007/08/yuilightboxwdep.zip
<html>
<head>
//根据下载的JavaScript包修改以下的路径
<link rel="stylesheet" type="text/css" href="js/yui/assets/skins/sam/container.css" />
<script type="text/javascript" src="/UploadFiles/2021-04-02/yahoo-dom-event.js"><script type="text/javascript" src="/UploadFiles/2021-04-02/dragdrop-min.js"><script type="text/javascript" src="/UploadFiles/2021-04-02/container-min.js"><script type="text/javascript" src="/UploadFiles/2021-04-02/Lightbox.js"><script type="text/javascript">...
//加载 lightbox
init = function()...{
//制作一个数据源,含原本图片
//用法: 图片ID: {url: "原本图片路径", title:"标题" }
var dataSource = ...{
id_1:...{url:"image-big.jpg", title: '测试图片'}
};
//创建 Lightbox 对象:
//用法:
//imageBase: Lightbox.js 的路径
//dataSource: 数据源
var lightbox = new YAHOO.com.thecodecentral.Lightbox(...{
imageBase:'js/lightbox',
dataSource: dataSource
});
}
//这行保持原貌
YAHOO.util.Event.on(window, 'load', init);
</script>
</head>
<body>
//加一个预览图片
//用法:<img src="/UploadFiles/2021-04-02/预览.jpg">//注意:保持图片ID和数据源ID一致
<img src="/UploadFiles/2021-04-02/image-small.jpg"></body>
</html>
代码无注解:
<html>
<head>
<link rel="stylesheet" type="text/css" href="js/yui/assets/skins/sam/container.css" />
<script type="text/javascript" src="/UploadFiles/2021-04-02/yahoo-dom-event.js"><script type="text/javascript" src="/UploadFiles/2021-04-02/dragdrop-min.js"><script type="text/javascript" src="/UploadFiles/2021-04-02/container-min.js"><script type="text/javascript" src="/UploadFiles/2021-04-02/Lightbox.js"><script type="text/javascript">
init = function(){
var dataSource = {
id_1:{url:"image-big.jpg", title: '测试图片'}
};
var lightbox = new YAHOO.com.thecodecentral.Lightbox({
imageBase:'js/lightbox',
dataSource: dataSource
});
}
YAHOO.util.Event.on(window, 'load', init);
</script>
</head>
<body>
<img src="/UploadFiles/2021-04-02/image-small.jpg"></body>
</html>
JavaScript,关机
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。