菠蘿教你做模板之五-圖片頻道的模板制作(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>
這個函數(shù)是控制js變換的函數(shù)
CODE: [Copy to clipboard] <!--主標(biāo)題--><div id="title" align="center">{$title}</div>
<!--文件屬性--><div class="par" align="center">發(fā)布日期:{$adddate} 作者:<a href="{PHPCMS_PATH}member/member.php?username={$username}" class="member_url">{$author}</a> 來源:<a href="{$copyfromurl}" target="_blank">{$copyfromname}</a> 瀏覽次數(shù):<span id="hits">0</span> <a href="{PHPCMS_PATH}comment/index.php?item=pictureid&itemid={$pictureid}&itemurl={$itemurl}" class="commenturl">網(wǎng)友評論<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>
相關(guān)PHPCms教程:
- PHPCMS v9 安裝環(huán)境要求
- PHPCMS mysql優(yōu)化教程
- PHPCMS shtml設(shè)置
- phpcms本地網(wǎng)站遷移至虛擬主機(jī)的教程
- Phpcms V9 調(diào)用全站最新文章的代碼
- Phpcms V9 調(diào)用全站文章排行的解決方案
- Phpcms V9 調(diào)用隨機(jī)文章的方法
- 讓PHPCms內(nèi)容頁支持JavaScript
- phpcms教程: phpcms V9 默認(rèn)模板文件目錄結(jié)構(gòu)
- phpcms教程:phpcms V9 常用文件目錄結(jié)構(gòu)介紹
- PhpCms系統(tǒng)設(shè)置:我的面板
- PhpCms系統(tǒng)設(shè)置:附件管理
- 相關(guān)鏈接:
- 教程說明:
PHPCms教程-菠蘿教你做模板之五-圖片頻道的模板制作(3)
。