| ||||||||||||||||||||||||||||||||||||||||
|
ジャンプ・アクセスって
どうやるの? Akira Kato
July 1, 2003
ジャンプ・アクセスは、
|
そんなきつい事を言わないで欲しいなー。。。 |
そして、「戻る」のボタンをクリックすると、初めの質問のボックスへジャンプするわけです。この部分のコードを見ると、次のようになっています。
<p>
<a href="#sonna">
<img name="button1" src="../images/butoff.jpg"
ALT="small red button off (18x18)"
width="18" height="18" border="0"></a>
絶対に、嫌い!
<p>
<a name="sonna"></a>
<img src="../images/chimp.jpg"
alt="Chimp in distress"
width="285" height="195">
<p>
そんなきつい事を言わないで欲しいなー。。。
<P>
<a href="#thisTable">
<img border="0" src="../images/return.gif"
alt="return button (return.gif--150x50)"
width="150" height="50"></a>
上のコードで見て分かるように、アンカータッグを使って、ジャンプ・アクセスを起こしているわけです。まず、2つのチンプの写真に、name アトリビュートを使って、 それぞれに名前をつけています。上のチンプには thisTable、 下のチンプには sonna という名前がつけてあります。
それぞれのボタンには、その名前のところへジャンプするように、href アトリビュートを使って、ちょうど、ほかのページへリンクする時のように、コードを組んでいます。 ただし、この場合には、# 記号を名前の前に付けます。こうすることによって、ボタンをクリックすると、名前がつけられた場所へジャンプすることになります。
たとえば、mypage.htm というページに、sonna という名前をつけた場所があるとします。その場合、このページから、 その場所へジャンプ・アクセスするには、次のようにコードを組みます。
<a href="mypage.html#sonna">ここをクリックする</a>と、mypage の sonna ちゃんの所へジャンプします。
下のリンクで試してください。
ここをクリックすると、mypage の sonna ちゃんの所へジャンプします。
筆者紹介 |
|
Comments | |||
|
|||
Possibly the most infamous goal in the World Cup was scored in 1986, when archrivals
Argentina and England met. Argentina’s Diego Maradona leapt high for a ball and used
his hand to tap it past the goalkeeper and into the net. The goal became known as the “The
Hand of God”.
The 1950 World Cup was the only competition without a real final. Host Brazil needed only a draw against Uruguay to win. A world record 200,000 fans watched as Uruguay came from behind to win 2 -1.
For a few, winning in the World Cup is not everything. In 1990 United Arab Emirates players were promised a Rolls-Royce for every goal the team scored. UAE lost all three games, but scored twice.
For safe, secure betting use North America’s first online Sportsbook Sports Interaction. Licensed and Regulated.
Beaverland ジャポニカ |
Re-Discover JAPAN |