New FFXIAHify.js

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » FFXIAH.com » News » New FFXIAHify.js
New FFXIAHify.js
 Fenrir.Scragg
Administrator
Offline
サーバ: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2011-07-14 13:07:29  
You only need to include this tag on your site.
Code
<script type=text/javascript src=http://api.ffxiah.com/core/?load=/js/lib/AH.js></script>


I changed FFXIAHify.js, the tooltip maker for those that don't know. You can include on any site and will give tooltips to links like:

<a href=http://www.ffxiah.com/item/#####></a> or
<a href=http://www.ffxiah.com/item.php?id=#####></a> (depreciated but still works)

Changes Include

- Support for EN/JP tooltips, depends if the URL is linked to jp.ffxiah.com or not.
- Support for FFXIVPro items.
- Loads tooltip data when the mouse over occurs. Before the script would preload all the tooltips on the entire page. As a side effect, you will see "Loading..." sometimes.
- When using the above link, which I call the loader, will include the version number in the URLs automatically to avoid browser cache issues when changes are made.
- Existing calls to the old script will eventually be redirected to the new one.

Examples:

http://www.ffxiah.com/item/17073/mistilteinn
http://jp.ffxiah.com/item/17073/ミステルテイン
http://www.ffxivpro.com/item/4100202/vintage-kite-shield

Any issues or questions can be posted in this thread.
[+]
 Carbuncle.Tweeek
Offline
サーバ: Carbuncle
Game: FFXI
user: Tweeek
Posts: 732
By Carbuncle.Tweeek 2011-07-14 13:22:54  
is this a possible source for some of the tool-tip lag as of late? If it is sounds like this is worth it imo
 Fenrir.Scragg
Administrator
Offline
サーバ: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2011-07-14 13:30:14  
Carbuncle.Tweeek said:
is this a possible source for some of the tool-tip lag as of late? If it is sounds like this is worth it imo

In short, the lag lately was likely a result of me changing it. There was a design flaw that occurred when you suddenly stop on a link and it will say "Loading" until you move the mouse again. That should be fixed. The initial tip might be longer than the rest because of DNS resolve/connection time with the server. Everything is very responsive for me, but I get a 2ms ping to my server.
 Quetzalcoatl.Sammitch
Offline
サーバ: Quetzalcoatl
Game: FFXI
user: Sammitch
Posts: 47
By Quetzalcoatl.Sammitch 2011-07-14 13:32:29  
Nice work, and holy crap do the FFXIVpro tooltips look nice.
[+]
 Valefor.Prothescar
Guide Master
Online
サーバ: Valefor
Game: FFXI
Posts: 19389
By Valefor.Prothescar 2011-07-14 13:48:56  
This is an awesome feature, actually have been hoping for something like it for a while. Thanks!
necroskull Necro Bump Detected! [104 days between previous and next post]
 Shiva.Maahes
Offline
サーバ: Shiva
Game: FFXI
user: Maahes
Posts: 20
By Shiva.Maahes 2011-10-26 04:50:29  
Good Morning.

Just found this and wondered if this still works ? I tried implementing it but get nothing.

before i start debugging my site just wanted to check that this is still valid info as I been looking for a way to do this for a while :)

ta