WikiFX Search Plugin Invocation Documentation

This documentation is created to guide developers to build a broker search box on their own website and then open a matched brokers list of www.wikifx.com in a new window based on the input.

Step 1:Create a Container

Create and append a div in the proper place of <body></body> and assign a unique ID to it, e.g. <div id="div_jiaoyishang"></div>. This div is utilized as a container to ensure the HTML fragment generated by JavaScript code will make the search box on the page visible.

Step 2:Invoke JavaScript Code【Method 1:Basic invocation, modify and configure the URL parameter value】
  • 01.
  • 02.
  • 03.

<script type="text/javascript" src="https://www.wikifx.com/Contentgj/js/tradersearch.js?id=div_jiaoyishang&width=350px&height=30px&buttomwidth=50px&border=1px&color=#f4c830&ts=" + Math.random()></script>

【Method 2:JavaScript object configuration, to modify the object property values of JavaScript】
  • 01.
  • 02.
  • 03.
  • 04.
  • 05.
  • 06.
  • 07.
  • 08.
  • 09.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.

<script type="text/javascript">

var fx = new Object();

fx.id="div_jiaoyishang";

fx.width="350px";

fx.height="30px";

fx.buttomwidth="50px";

fx.border="1px";

fx.color="#f4c830";

var script=document.createElement("script");

script.type="text/javascript";

script.src="https://www.wikifx.com/Contentgj/js/tradersearch.js?id="+ fx.id +"&width="+fx.width+"&height="+fx.height+"&buttomwidth="+fx.buttomwidth

+"&border="+fx.border+"&color="+fx.color+"&ts=" + Math.random();

document.getElementsByTagName('body')[0].appendChild(script);

</script>

Related parameter direction
Parameter Name Parameter Type Required or not Parameter Illustration
id String Yes Specify where the input box is generated, that is the id of the div created in step 2.
width String No Configure the total width of the search box, namely the container width
height String No Configure the total height
buttomwidth String No Width of the button on the left, used to adjust the input box and buttons
border String No Border thickness of the search box can be adjusted according to the overall size of the input box
color String No Background Color

Remarks: Place the JavaScript code mentioned in Step 2 after the div container, the bottom of body is recommend

Practical Case

Instructions: Type the company name or the license number into the search box to enter WikiFX SERP

風險提示

外匯天眼資料均來自各國外匯監管機構的官方資料,如英國FCA、澳大利亞ASIC等,所公佈的內容亦均以公正、客觀和實事求是為宗旨,不向外匯交易平臺收取公關費、廣告費、排名費、資料清洗費等灰色費用。外匯天眼會盡最大努力保持我方資料與各監管機構等權威資料方資料的一致及同步性,但不承諾與其即時保持一致和同步。

外為業界の複雑性により、個別なFXブローカーが詐欺手段により規制当局から合法登録を入手するのを排除しません。WikiFXで公表しているデータが実際の狀況と異なる場合、WikiFXの“クレーム”と“修正”機能で、お知らせください。我々は速やかに確認し、関連結果を公表します。

外匯、貴金屬和差價合約(OTC場外交易)是杠杆產品,存在較高的風險,可能會導致虧損您的投資本金,請理性投資。

特別提示,外匯天眼所列資訊僅供參考,不構成投資建議。外匯平臺由客戶自行選擇,平臺操作帶來的風險,與外匯天眼無關,客戶需自行承擔相關後果和責任。

×

選擇國家/地區

×

選擇國家/地區