Anchor Tags Linking to the Same Page
The destination anchor label is placed where you want to go, and the hyperlink is placed where you want to click from. The links can appear before or after the destination. Links are case-sensitive, so be careful to use exactly the same capitalization in the link as in the destination anchor codes. In the example below "terms" and "Terms" may not match up in the newer browsers.
Here is the anchor label used in a snippet of code:
<a name="terms">Payment Options</a>
And here is the hyperlink code to go there:
See my <a href="#terms">payment</a> details.
If you want to link to a specific location on another page, put the anchor label on that page and then link to it with code like this:
Visit my <a href="http://www.myhost.com/mypage.htm#terms">terms</a> page.
Relative Link and Local Bookmark (anchor) issues in eBay's Editor
You've added the anchor tag to your listing so that users can click to go to your terms at the bottom of the page. But now it won't work in the auction.
Using eBay's enhanced online what-you-see-is-what-you-get (WYSIWYG) description editor when listing, ANY editing (even just a mouse click), anywhere in your description, will send your code through eBay's (Internet Explorer's) code rewriter.
HREF links will be redefined based on the following prefix styles:
- Single letter prefix (H:) creates a file link (file:///H:)
- Two or more letters (HT: or HTTP:) are left alone
- Empty links (href="") are left alone
- Relative links (/link.htm), and
malformed links missing the letter(s) and colon,
are prefixed with the root URL of eBay's current page.
- Local page links (#bookmark), and undefined links ("#"),
are prefixed with the current page URL.
If you are in the initial editing screen, the added URL
will be short. If you have returned to the editor from the
final preview page, the added URL will be very long.
Whatever is in the address line of your browser will
be the prefix.
There doesn't seem to be any easy way around this except to avoid touching eBay's enhanced editor after adding relative links to your code.
If you need to use the enhanced editor, then one workaround is to script the link that could get rewritten. These are examples:
<script language=javascript>document.write( '<a href="#terms">click here</a>' )</script>
<script language=javascript>document.write( '<a href="#terms">' )</script>click here</a>
|