欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

網頁代碼常用小技巧總結第2/3頁

 更新時間:2008年01月28日 22:35:32   作者:  
網頁代碼常用小技巧總結


  15,IE6已支持自定義cursor!

語法格式 cursor:url(圖標) //cur或是ani文件.
cur就是WINDOWS中的光標(cursor)文件,光標文件與圖標(ICON)文件除了文件頭有一個位置的值不同外,實際是一樣的。
ani是WINDOWS中的動畫光標(圖標)文件。
<style type="text/css">
<!--
.unnamed1 { cursor:url(arrow2c.cur)}
-->
</style>

  16,用marquee做的滾動字幕.這也我剛看到論壇的朋友在問。

語法:
align=# | top | middle| bottom //對齊方式)
BEHAVIOR=AlterNATE | SCROLL | SLIDE //移動的方式
BGCOLOR=color//底色區(qū)域顏色
DIRECTION=DOWN | LEFT | RIGHT | UP //移動的方向
Loop=n //循環(huán)次數(默認是循環(huán)不止)
Scrolldelay=milliseconds//延時
height=# width=# //區(qū)域面積
hspace=# vspace=# //空白區(qū)域
scrollamount=# //移動的速度
<marquee align=top behavior=AlterNATE BGCOLOR=#000000 height=60 width=433 scrollamount=5></marquee>

  17,在FLASH5中也存在一些字體,打散后變成一團的事是為什么?有解決的辦法嗎。

這是大家很常見的問題!可能是對字庫支持的不好!我個是做成透明的gif圖片格式,然后倒入。

  18,flash的網頁里“加入收藏夾”功能怎么實現?

在as中加getUrl("java script:window.external.addFavorite(http://www.webjx.com`,`網頁教學網`)")

  19,在Flash中,文本的動態(tài)屬性和輸入屬性的區(qū)別。

input text在運行時可被用戶或程序改變其值。
ynamic text僅允許被程序修改。


  20,怎樣在IE中調用Dreamweaver進行編輯.

相信很多在使用WinME或Window2000的朋友,會遇見是個問題。很簡單,把我們筆記本程序打開,保存為一個 *.reg 文件。雙擊它將信息添加到注冊表即可。
REGEDIT4
[HKEY_CLASSES_ROOT.htmOpenWithListDreamweaver]
[HKEY_CLASSES_ROOT.htmOpenWithListDreamweavershell]
[HKEY_CLASSES_ROOT.htmOpenWithListDreamweavershelledit]
[HKEY_CLASSES_ROOT.htmOpenWithListDreamweavershelleditcommand]
@=""c:Program FilesMacromediaDreamweaver 4dreamweaver.exe" "%1""

  21,設置表格虛線。

方法一:作一個1X2的圖。半黑半白,再利用表格作成線。
方法二:在css里面設,要IE5。5才支持這種效果。
style="BORDER-LEFT: #000000 1PX DASHED; BORDER-RIGHT: #000000 1PX DASHED; BORDER-TOP: #000000 1PX DASHED; BORDER-BOTTOM: #000000 1PX DASHED"

  22,看看在網頁中調用HHCtrl控件效果。

代碼如下:
<object id="HHC" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"></object><script> HHC.TextPopup("哈哈,大家好,我是閃夢!","",50,5,128255,346751);</script>

  22,如何讓一張圖片有淺到深的漸變。

<SCRIPT language=javascript1.2>
<!--
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=40
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}
</script>
<img onmouseout=low(this) onmouseover=high(this) style="FILTER: alpha(opacity=40)"src="logo.gif" >

  23,雙擊鼠標左鍵來滾動背景,單擊停止。

<SCRIPT language=javascript>
var currentpos,timer;
function initialize()
{
timer=setInterval("scrollwindow()",16);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
</SCRIPT>

  24,如何在同一頁面設置不同文字鏈接效果的樣式.

代碼如下:
<HTML><HEAD><TITLE>如何在同一頁面設置不同文字鏈接效果的樣式</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
a:hover { font-size: 9pt; color: #FF0000; text-decoration: underline}
a:link { font-size: 9pt; color: #006699; text-decoration: underline}
a:visited { font-size: 9pt; color: #006699; text-decoration: underline}
a:active { font-size: 9pt; color: #FF0000; text-decoration: none}
a.r1:hover { font-size: 9pt; color: #FF0000; text-decoration: underline overline}
a.r1:link { font-size: 9pt; color: #000000; text-decoration: underline overline}
a.r1:visited { font-size: 9pt; color: #99CC00; text-decoration: underline overline}
a.r1:active { font-size: 9pt; color: #000000; text-decoration: underline overline}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<a href="#">下劃線鏈接 </a>
<p></p>
<a href="#" class="r1">雙下劃線鏈接</a>
</BODY>
</HTML>
補充說明:
a:hover 表示鼠標劃過時的樣式.
a:link 表示鏈接的樣式.
a:active 表示當前活動連接的樣式.
a:visited 表示已經訪問過的連接的樣式.

  25, 用CSS給文字加入陰影效果和文字描邊效果。

.glow{FONT-SIZE: 9pt; FILTER: Glow(Color=#000000, Strength=1)}
//文字描邊效果
.shadow {FONT-SIZE: 9pt; FILTER: DropShadow(OffX=1, OffY=1, DropShadow(OffX=1, OffY=1, color:#111111); COLOR: #ffffff; FONT-FAMILY: "宋體"}
//加入陰影效果
補充說明:
  這兩種濾鏡要想實現效果,必須加在如:<td class=glow或shadow ><div>xxxxxxxxx</div></td>上
,并且要留有足夠的空間能夠顯示陰影或描邊,否則會出現半截的陰影或描邊現象。

  26,如何給做帶顏色的下拉菜單。

<select style="FONT-SIZE: 10px; COLOR: #ffffff; FONT-FAMILY: Verdana;BACKGROUND-COLOR: #ff6600;" size=1 >
<option selected>:: Dreamweaver4 ::</option>
<option>::Flash5::</option>
<option>::Firewoks4::</option>
</select>

  27,關于DW4的表格中的亮邊框和暗邊框問題。

在DW4的表格面板中并沒有亮邊框和暗邊框的屬性設置,因為NC不支持,只有你在代碼中添加了。
bordercolorlight="#999999" bordercolordark="#000000"
  你也可以用Css定義一個class。例如:
<style>
.bordercolor { bordercolorlight: #999999; bordercolordark: #000000 }
</style>
  然后在要加效果的表格里加?lt;table class="bordercolor">

  28,自動顯示主頁最后更新日期.

<script>
document.write("最后更新日期:"+document.lastModified+"")
</script>

  29,如何讓滾動條出現在左邊?

我想居然在論壇中有人發(fā)表了這段代碼,很有意思,它的確照顧一些左撇子,呵呵!
<html dir="rtl">
<body bgcolor="#000000" text="#FFFFFF">
<table height=18 width=212 align=center bgcolor=#FFFFFF dir="ltr" cellspacing="1"  cellpadding="0">
<tr>
<td bgcolor="#FF0000" >是不是你的滾動條在左邊啊</td>
</tr>
</table>
</body>
</html>

  30,如何加入網址前面的小圖標?

  首先,您必須了解所謂的圖標(Icon)是一種特殊的圖形文件格式,它是以 .ico 作為擴展名。你可用在網上找一個制作圖標軟件,它具有特有的規(guī)格:圖標的大小為 16 * 16(以像素為單位);顏色不得超過 16 色。在該網頁文件的 HEAD 部分加入下面的內容:<LINK REL="SHORTCUT ICON" HREF=" http://www.webjx.com/圖標文件名">,并放在該網頁的根目錄下。

  31,在800*600顯示器中,如何不讓網頁水平出現滾動條!

設至<body leftmargin="0" topmargin="0">,網頁中的表格寬度為778。

  32,關于<!DOTYPE>的說明解釋。

在網頁中,經常會看到<!DOCTYPE HTML PUBLIC`-//W3C//DTD HTML 4.01//EN`>,是聲明HTML文件的版本信息。

相關文章

最新評論