0

機能としてユーザーのパブリック プロファイルがあります。ユーザーに、他の Web サイトに統合してプロフィールを公開できるコードを提供する必要があります。基本的に私の考えは、クリック可能な画像を他の Web サイトに埋め込むスクリプトを作成し、誰かがそれをクリックすると、新しいタブまたは新しいウィンドウでユーザー プロファイルに移動することです。

同様の方法を行う他のアプリを知りません。どんな例も非常に役に立ちます。

4

2 に答える 2

2

you can use target attribute. target MDN Anchor target

This attribute specifies where to display the linked resource. In HTML4, this is the name of, or a keyword for, a frame. In HTML5, it is a name of, or keyword for, a browsing context (for example, tab, window, or inline frame). The following keywords have special meanings:

  1. _self: Load the response into the same HTML4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.
  2. _blank: Load the response into a new unnamed HTML4 window or HTML5 browsing context.
  3. _parent: Load the response into the HTML4 frameset parent of the current frame or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as _self.
  4. _top: In HTML4: Load the response into the full, original window, canceling all other frames. In HTML5: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no
  5. parent, this option behaves the same way as _self.

     <a href="profile-link" target="_blank" rel="nofollow"><img src='image-link' /></a>
    

use rel="nofollow" to protect the user from spam.

于 2013-03-11T05:38:33.573 に答える
1

あなたは彼にhtmlをコピーして貼り付けるようにさせることができます。

何かのようなもの:

<a href="profile-link" target="_blank" rel="nofollow" ><img src='image-link' /></a>

target = "_ blank"は、リンクされたドキュメントを新しいウィンドウまたはタブで開きます https://developer.mozilla.org/en-US/docs/HTML/Link_types

rel = "nofollow"は、コンテンツが有料リンクなどの承認されていないドキュメントにリンクしていることを示します。 https://developer.mozilla.org/en-US/docs/HTML/Element/a#Attributes

于 2013-03-11T05:35:34.883 に答える