|
藍森林 http://www.lslnet.com 2006年8月25日 8:28
請教一個按鈕的問題
可不可以把圖片下面的灰塊去掉?
[html]<script language=javascript>
minimizebar="minimize.gif"; //nbw窗口右上角最小化「按鈕」的圖片
closebar="close.gif"; //nbw窗口右上角關閉「按鈕」的圖片
icon="icon.gif"; //nbw窗口左上角的小圖標
function noBorderWin(fileName,w,h,titleBg,titleColor,titleWord,borderColor,scr)
/*
------------------參數說明-------------------
fileName :無邊窗口中顯示的文件。
w :窗口的寬度。
h :窗口的高度。
titleBg :窗口「標題欄」的背景色。
titleColor :窗口「標題欄」文字的顏色。
titleWord :窗口「標題欄」的文字。
borderColor:窗口「邊框」的顏色。
scr :是否出現滾動條。取值yes/no或者1/0。
--------------------------------------------
*/
{
nbw=window.open('','','fullscreen=yes');
nbw.resizeTo(w,h);
nbw.moveTo((screen.width-w)/2,(screen.height-h)/2);
nbw.document.writeln("<title>"+titleWord+"</title>");
nbw.document.writeln("<"+"script language=javascript"+">"+"cv=0"+"<"+"/script"+">");
nbw.document.writeln("<body topmargin=0 leftmargin=0 scroll=no>");
nbw.document.writeln("<table cellpadding=0 cellspacing=0 width=100% height=100% style=\"border: 1px solid "+borderColor+"\">");
nbw.document.writeln(" <tr bgcolor="+titleBg+" height=20 onselectstart='return false' onmousedown='cv=1;x=event.x;y=event.y;setCapture();' onmouseup='cv=0;releaseCapture();' onmousemove='if(cv)window.moveTo(screenLeft+event.x-x,screenTop+event.y-y);'>");
nbw.document.writeln(" <td width=21 align=center><img width=12 width=12 src="+icon+"></td>");
nbw.document.writeln(" <td style=\"font-family:細明體; font-size:12px; color:"+titleColor+";\"><span style='top:1;position:relative;cursor:default;'>"+titleWord+"</span></td>");
nbw.document.writeln(" <td align=center width=30 style=font-size:16px;>");
nbw.document.writeln(" <img border=0 width=12 height=12 alt=最小化 src="+minimizebar+" onclick=window.blur();>");
nbw.document.writeln(" <img border=0 width=12 height=12 alt=關閉 src="+closebar+" onclick=window.close();>");
nbw.document.writeln(" </td>");
nbw.document.writeln(" </tr>");
nbw.document.writeln(" <tr>");
nbw.document.writeln(" <td colspan=3><iframe frameborder=0 width=100% height=100% scrolling="+scr+" src="+fileName+"></iframe></td>");
nbw.document.writeln(" </tr>");
nbw.document.writeln("</table>");
}
</script>
</head>
<body>
<!----------------- 一個應用的例子 ----------------->
<button onclick=noBorderWin('http://www.ice520hz.com/web/palyer.htm','341','125','#7EBBCD','#000000','--光陰的故事--','#7EBBCD','no');><img src=""></button>
</body>[/html] |
請教一下大俠,利用flash做MTV時,怎麼使聲音和動畫完全穩合,有沒有更快捷的方法,請大俠指點一下!!!!!!,在下感謝了!!! |
[html]
<button style="background-color:blue"><img src=""></button>
[/html]
可以不? |
|