<?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>
Comments
评论区
Comment Form
留下评论