香港相册首页独立打开新连接页面
发布时间:2015-10-15, 09:41:14 分类:HTML | 编辑 off 网址 | 辅助
正文 1284字数 64,420阅读
<?php
$src=$_GET['src'];
$src_arr=explode('|',$src);
$src_n=count($src_arr);
$src_title=$_GET['title'];
$src_num=$_GET['n'];
//print_r($src_arr);exit;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $src_title;?></title>
<link rel='stylesheet' href='css/swipebox.css' type='text/css' media='screen' />
<script src='js/jquery.min.js'></script>
<script src='js/jquery.swipebox.min.js'></script>
</head>
<body>
<!-- 代码 开始 -->
<div class="swipeboxEx">
<?php
for($i=0;$i<$src_n;$i++){
$iddd='';
if($i==$src_num) $iddd='aaa';
echo '<a id="'.$iddd.'" href="'.$src_arr[$i].'" title="'.$src_title.'"><img alt="'.$src_title.'" src="'.$src_arr[$i].'" /></a>';
}
?>
</div>
<script>
$('.swipeboxEx a').swipebox();
$("#aaa").click();
</script>
</body>
</html>
Run code
Cut to clipboard
(支付宝)给作者钱财以资鼓励 (微信)→
暂无评论 »