js彈出小窗口源碼

以下js代碼爲彈出網頁小窗口代碼,窗口大小可調。

<script type="text/javascript">
	function popWinGD(theURL){
			var pop,w=670,h=450; //window.navigate(theURL);
			pop=window.open(theURL,"winGD","width="+w+",height="+h+",resizable=yes,menubar=no,toolbar=no,location=no,scrollbars=no,status=no")
 			pop.moveTo((screen.width-w)/2,(screen.height-h)/2);
		}

</script> 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章