點圖彈出視窗放大

網頁HTML部分

<a href=# onClick="OpenNewWindow('圖片網址',600,600);return false;">此處可放連結或是圖片</a>

 

JavaScript部分

<SCRIPT LANGUAGE="JavaScript">

function OpenNewWindow(oPic,nWidth,nHeight,nBorder)
{
NewWindow=window.open("","NeuEins","HEIGHT="+nHeight+",WIDTH="+nWidth
+",scrollbars=no,resizable=no,top=5,left=5");
NewWindow.document.write ("<HTML><HEAD><TITLE>圖片放大");
NewWindow.document.write ("</TITLE></HEAD>");
NewWindow.document.write ("<BODY BGCOLOR='#FFFFFF'>");
NewWindow.document.write ("<P ALIGN=CENTER>");
NewWindow.document.write ("<FONT FACE='Arial' SIZE='+2' COLOR='White'><B>");

NewWindow.document.write ("</B></FONT>");
NewWindow.document.write ("<IMG SRC=");
NewWindow.document.write (oPic);
NewWindow.document.write (">");
NewWindow.document.write ("</P>");
NewWindow.document.write ("<center><FORM><INPUT TYPE='button' VALUE='關閉視窗' onClick='self.close()'>");
NewWindow.document.write ("</FORM></CENTER></BODY></HTML>");
NewWindow.document.write ("</BODY></HTML>");
NewWindow.document.close();
return false;
}

</SCRIPT>

 

錨點設定方式


錨點語法
<A NAME="錨點名稱">此錨點所要顯示的文字</A>

超連結設置

<A HREF="#錨點名稱">可不放置文字</A>

 

 

回到頁首設定方式

<a style="display:scroll;position:fixed;bottom:0px;right:5px;" href="#" title="backtotop" onFocus="if(this.blur)this.blur()">
<img alt='' border='0' onmouseover="this.src='放大圖網址'" src="原圖網址" onmouseout="this.src='原圖網址'" /></a>

 

youtube-dl cmd 執行語法
youtube-dl -f 137+140 https://www.youtube.com/watch?v=VIDEO_ID

arrow
arrow
    全站熱搜

    NightFury 發表在 痞客邦 留言(0) 人氣()