Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $(".AACardLink").tooltip({
- content: function(){
- var cardUrl = $(this).attr("title") + ".png";
- return "<img src=\"http://www.infinite-network.com/images/cards/" + cardUrl + "\" style=\"display:block; border-radius:14px;\">";
- },
- show: {
- effect: "none",
- delay: 0
- },
- hide: {
- effect: "none",
- delay: 0
- }
- });
- });
- $(document).bind('DOMNodeInserted', function(e){
- $this = $(e.target);
- if($this.hasClass("AACardLink")){
- $this.tooltip({
- content: function(){
- var cardUrl = $(this).attr("title") + ".png";
- return "<img src=\"http://www.infinite-network.com/images/cards/" + cardUrl + "\" style=\"display:block; border-radius:14px;\">";
- },
- show: {
- effect: "none",
- delay: 0
- },
- hide: {
- effect: "none",
- delay: 0
- }
- });
- }
- });
- /*function forceinsertcardasimg(){
- var x = document.getElementsByClassName("AACardLink");
- var i;
- for (i = 0; i < x.length; i++) {
- var cardname = x[i].href.substr(x[i].href.lastIndexOf('/') + 1);
- cardname = cardname.slice(0, -4);
- x[i].innerHTML = '<img src="http://www.infinite-network.com/images/cards/' + cardname + '.png" border="0" width="235" height="340" />';
- x[i].href = 'http://infinite-network.com/card/' + cardname
- x[i].style.borderBottomStyle = "none"
- x[i].style.borderBottomWidth = "0px"
- }
- }*/
- window.onload = function () {
- var x = document.getElementsByClassName("AACardLink");
- var i;
- for (i = 0; i < x.length; i++) {
- var cardname = x[i].href.substr(x[i].href.lastIndexOf('/') + 1);
- cardname = cardname.slice(0, -4);
- x[i].innerHTML = '<img src="http://www.infinite-network.com/images/cards/' + cardname + '.png" border="0" width="235" height="340" />';
- x[i].href = 'http://infinite-network.com/card/' + cardname
- x[i].style.borderBottomStyle = "none"
- x[i].style.borderBottomWidth = "0px"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement