ppt中代碼
㈠ 一個幻燈片的代碼
以下代碼調試通過,能夠正取運行,至少在我的IE7下保證沒有任何問題:
<script language="JavaScript">
var imgshow=['PIC_0849.jpg','PIC_1833.jpg','PIC_2085.jpg','PIC_5922.jpg'];
document.write('<p><img id=xxx src="'+imgshow[0]+'"></p>');
for (i in imgshow) document.write('<img src="'+imgshow[i]+'" width=100 onclick="xxx.src=\''+imgshow[i]+'\';">');
</script>
補充:
你的ASP把圖片存入了兩個數組裡面:
dim imgname(),imgurl()
現在把這數組imgurl()的內容轉換為JAVASCRIPT的數組定義形式:
imgurl_str=join(imgurl,"','")
你知道現在imgurl_str的內容是什麼嗎,不明白的話,可以response.write看看,其內容是這樣的:
a.gif','b.gif','c.gif
這樣,現在就可以提交給JS了,方法是把我給你的JS語句中下面這句:
var imgshow=['PIC_0849.jpg','PIC_1833.jpg','PIC_2085.jpg','PIC_5922.jpg'];
修改為:
var imgshow=['<%=imgurl_str%>'];
㈡ 在ppt中如何查看代碼
查看誰的代碼啊?插入的控制項嗎??右鍵,屬性。。就可以了。。
㈢ PPT哪能加代碼
添加控制項後,雙擊控制項就可加代碼了。
㈣ 如何在PPT中添加JAVA或網頁效果
var RevealTrans = Class.create();
RevealTrans.prototype = {
initialize: function(container, options) {
this._img = document.createElement("img");
this._a = document.createElement("a");
this._timer = null;//計時器
this.Index = 0;//顯示索引
this._onIndex = -1;//當前索引
this.SetOptions(options);
this.Auto = !!this.options.Auto;
this.Pause = Math.abs(this.options.Pause);
this.Duration = Math.abs(this.options.Duration);
this.Transition = parseInt(this.options.Transition);
this.List = this.options.List;
this.onShow = this.options.onShow;
//初始化顯示區域
this._img.style.visibility = "hidden";//第一次變換時不顯示紅x圖
this._img.style.width = this._img.style.height = "100%"; this._img.style.border = 0;
this._img.onmouseover = Bind(this, this.Stop);
this._img.onmouseout = Bind(this, this.Start);
isIE && (this._img.style.filter = "revealTrans()");
this._a.target = "_blank";
$(container).appendChild(this._a).appendChild(this._img);
},
//設置默認屬性
SetOptions: function(options) {
this.options = {//默認值
Auto: true,//是否自動切換
Pause: 1000,//停頓時間(微妙)
Duration: 1,//變換持續時間(秒)
Transition: 23,//變換效果(23為隨機)
List: [],//數據集合,如果這里不設置可以用Add方法添加
onShow: function(){}//變換時執行
};
Extend(this.options, options || {});
},
Start: function() {
clearTimeout(this._timer);
//如果沒有數據就返回
if(!this.List.length) return;
//修正Index
if(this.Index < 0 || this.Index >= this.List.length){ this.Index = 0; }
//如果當前索引不是顯示索引就設置顯示
if(this._onIndex != this.Index){ this._onIndex = this.Index; this.Show(this.List[this.Index]); }
//如果要自動切換
if(this.Auto){
this._timer = setTimeout(Bind(this, function(){ this.Index++; this.Start(); }), this.Duration * 1000 + this.Pause);
}
},
//顯示
Show: function(list) {
if(isIE){
//設置變換參數
with(this._img.filters.revealTrans){
Transition = this.Transition; Duration = this.Duration; apply(); play();
}
}
this._img.style.visibility = "";
//設置圖片屬性
this._img.src = list.img; this._img.alt = list.text;
//設置鏈接
!!list["url"] ? (this._a.href = list["url"]) : this._a.removeAttribute("href");
//附加函數
this.onShow();
},
//添加變換對象
Add: function(sIimg, sText, sUrl) {
this.List.push({ img: sIimg, text: sText, url: sUrl });
},
//停止
Stop: function() {
clearTimeout(this._timer);
}
};
加入VBA編輯器
㈤ 下載的幻燈片代碼怎麼加到我的網頁中
要製作成flash
你到著看一下吧
http://www.blueidea.com/tech/web/2004/2021.asp
㈥ 如何查看ppt載入宏里的代碼
首先在PowerPoint2003菜單「工具-->載入宏」中將需要的修改的.ppa載入宏文件進行載入。
當然,上一步之前,記得先將「宏安全性級別」調整到「低」,這樣宏才能正常運行。方法是菜單「工具-->宏-->安全性」。設置完成,關閉PowerPoint2003。
按WIN+R組合鍵打開運行對話框,輸入regedit.exe,確定,運行注冊表編輯器。
在注冊表中依次定位到如下位置:HKEY_CURRENT_USER\Software\Office\11.0\PowerPoint\Options 其中的11.0代表PowerPoint2003,14.0代表PowerPoint2010
在右側窗口中,右鍵「新建-->DWORD值"。
命名為:DebugAddins
雙擊新建的DebugAddins,在彈出的對話框中設置數值數據為1,確定後關閉注冊表編輯器。
啟動PowerPoint2003,依次點擊菜單「工具-->宏-->Visual Basic編輯器「。
在打開的「Visual Basic編輯器」窗口,就可以看到載入宏的工程樹及相關窗體對象。
㈦ ppt 如何觸發代碼
用vim打開代碼文件,注意一定要設置成顯示行號
2.復制代碼,這時一定是帶行號的
3.找一個在線的代碼高亮網站,生成高亮的代碼
4.粘貼到ppt希望對你有所幫助
㈧ PPT中 怎麼插入代碼
按ALT+F11打開VBE窗口,菜單「插入」選擇要插入模塊,窗體還是類模塊,之後寫代碼
㈨ 怎麼查看 別人 PPt 中 倒計時 代碼
你的PPT是什麼版本的,如果是03版,那就點擊-自定義動畫
如果是07-10版,就點擊菜單欄,動畫-動畫窗格
------------------------------------------------------------------
上面的不算,
視圖/工具欄/控制項工具箱
點擊,查看代碼。