圖片沒有顯示出來,不知道怎么回事?
圖片對話框根本就沒有顯示出來,不知道怎么回事?求解
<link rel="stylesheet" href="cikonss.css" />
<script src="jquery-ui/js/jquery-1.10.2.js"></script>
<script src="jquery-ui/js/jquery-ui-1.10.4.custom.js"></script>
<script src="jquery-ui/js/jquery-ui-1.10.4.custom.min.js"></script>
<link rel="stylesheet" href="jquery-ui/css/ui-lightness/jquery-ui-1.10.4.custom.css" ?type="text/css"/>
function showDetail(t,filename){
$("#showImg").attr("src",filename);
$("#showDetail").dialog({
?height:"auto",
? ? ?width: "auto",
? ? ?position: {my: "center", at: "center", ?collision:"fit"},
? ? ?modal:false,//是否模式對話框
? ? ?draggable:true,//是否允許拖拽
? ? ?resizable:true,//是否允許拖動
? ? ?title:t,//對話框標題
? ? ?show:"slide",
? ? ?hide:"explode"
});
}
<div id="showDetail" ?style="display:none"><img src="" id="showImg" alt=""/></div>
<?php
? ?//得到文件擴展名
? ? ? $ext=strtolower(end(explode(".",$val)));
? ? ? $imageExt=array("gif","jpg","jpeg","png");
? ? ? if(in_array($ext,$imageExt)){
? ? ?>
? ? ? ? ? ?<a href="#" onclick="showDetail('<?php echo $val;?>,'<?php echo $p; ?>')"><img class="small" src="images/show.png" alt="" title="查看" /></a>|
? ?<?php
? ? ? }else{
? ??>
? ? ?<a href="index.php?act=showContent&filename=<?php echo $p;?>"><img class="small" src="images/show.png" alt="" title="查看" /></a>|
? ? <?php } ?>?
2016-05-14
函數(shù)沒有放在<script>中