TOP /HTML | リンク |
---|
リンクを張ります。
同じフォルダーにファイルがあるときは href="index.html"<a href="../../index.html">トップページ</a>トップページ
他のHPのときは
<a href="http://himajin.moo.jp">HIMAJIN</a>このようにhttp://から始まるアドレスで記述します。
border=0で画像周りの枠を非表示<a href="../../index.html"> <img src="top.gif"alt="トップページにリンク"border=0></a>
<INPUT type="button" value="トップページ" onclick="location.href='http://himajin.moo.jp/'">
特定位置に名前をつける(このページの一番最後に付けています)<a href="#last">特定位置にジャンプ</a>特定位置にジャンプ
<a name="last"></a>
別のページの特定位置の場合
<a href="../../index.html#last">別のページの特定位置にジャンプ</a>
フレームのページの場合<a href="../../index.html"target="_blank">トップページ</a>トップページ
_blank 新しいウインドウを開いて表示 _self 今のフレームに表示 _top フレームを全て解除して表示 _parent 一段フレームを解除して表示 フレーム名 指定したフレームに表示
<a href="../../index.html"target="new">トップページ</a> <a href="../star.html"target="new">トップページ</a>トップページ
流れ星
<head></head>間に <base target="_blank"> これで全てのリンクが別窓で表示されます。 リンク先(ベースURL)を指定。 <base href="http://www.yyy.zzz/">
トップページ<a href="../../index.html"onmouseover="return true;">トップページ</a>
リンクの装飾 |
---|
<a href="../../index.html"STYLE="text-decoration:none">トップページ</a>トップページ
<STYLE type="text/css"><!-- A:link {text-decoration:none;} A:visited{text-decoration:none;} A:hover{background-color:#00ffff;color:#ff00ff;text-decoration:none;} --></STYLE> <a href="../../index.html">トップページ</a>トップページ
<STYLE type="text/css"><!-- A:link {text-decoration:none;} A:visited{text-decoration:none;} A:hover{position:relative;top:3px;left:3px;color:red;text-decoration:underline;} --></STYLE> <a href="../../index.html">トップページ</a>トップページ
<a href="../../index.html"> <img src="top.gif" onMouseover="this.src='top1.gif'" onMouseout="this.src='top.gif'" alt="トップページにリンク"border=0></a>
<a href="../../index.html"> <img src="top.gif"style="filter:alpha(opacity=100);" onMouseover="this.filters['alpha'].opacity=50" onMouseout="this.filters['alpha'].opacity=100" alt="トップページにリンク"border=0></a>