菠蘿教你做模板之五-圖片頻道的模板制作(3)_PHPCms教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
document.images.show.filters.blendTrans.Apply()
}
document.images.show.src = pictureurl[current];
setidval('picname',picturename[current]);
if(document.all){
document.images.show.filters.blendTrans.play()
}
document.slideform.slide.selectedIndex = current;
}
function ap(text) {
document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
rotate();
}
function change() {
current = document.slideform.slide.selectedIndex;
if(document.all){
document.images.show.style.filter="blendTrans(duration=2)"
document.images.show.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.show.filters.blendTrans.Apply()
}
document.images.show.src = pictureurl[current];
setidval('picname',picturename[current]);
if(document.all){
document.images.show.filters.blendTrans.play()
}
}
function rotate() {
if (document.slideform.slidebutton.value == "Stop") {
current = (current == document.slideform.slide.length-1) ? 0 : current 1;
if(document.all){
document.images.show.style.filter="blendTrans(duration=2)"
document.images.show.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.show.filters.blendTrans.Apply()
}
document.images.show.src = pictureurl[current];
setidval('picname',picturename[current]);
if(document.all){
document.images.show.filters.blendTrans.play()
}
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotate()", rotate_delay);
}
}
function openpic()
{
window.open(pictureurl[current]);
}
// End -->
</script>
這個函數是控制js變換的函數
CODE: [Copy to clipboard] <!--主標題--><div id="title" align="center">{$title}</div>
<!--文件屬性--><div class="par" align="center">發布日期:{$adddate} 作者:<a href="{PHPCMS_PATH}member/member.php?username={$username}" class="member_url">{$author}</a> 來源:<a href="{$copyfromurl}" target="_blank">{$copyfromname}</a> 瀏覽次數:<span id="hits">0</span> <a href="{PHPCMS_PATH}comment/index.php?item=pictureid&itemid={$pictureid}&itemurl={$itemurl}" class="commenturl">網友評論<span id="commentnumber1">0</span>條</a> 文字大小:【<a href="javascript :fontZoom(16)">大</a>】【<a href="javascript :fontZoom(14)">中</a>】【<a href="javascript :fontZoom(12)">小</a>】 評分等級:{$stars}</div>
相關PHPCms教程:
- 相關鏈接:
- 教程說明:
PHPCms教程-菠蘿教你做模板之五-圖片頻道的模板制作(3)
。