|mtg autocard sample|
You only need to include these lines in your websites in order to trigger all links referring a concrete URL subdomain.
Replace http://xxxx.com with the url that you want. For example, if all of your magic links are like this:
Goblin Lackey, you should replace http://xxxx.com with http://gatherer.wizards.com/Pages/Card/Details.aspx?name= and see:
<a href="http://gatherer.wizards.com/Pages/Card/Details.aspx?name=Goblin+Lackey" target="_blank">Goblin Lackey</a>
Tip: You can write URL_START = "http" to have all your links with popup. This is useful when you use several magic sources for your cards.
Another way to get the popup is with class styles. If you set the link address CSS style class to "mtgcard", you will get the pupup regardless the link destination, like in this case:
<a href="http://themunsonsapps.blogspot.com" class="mtgcard" target="_blank">Goblin Lackey</a>
The last way to autocard is linking directly the card image that you want to use. Like this:
This will trigger if you include the script in this way (as before, replace the url with yours):
The params URL_START_IMG and URL_START are compatible, so you can include both if you want to have multiple choices, like in this blog or in magicnomola.
The code included in this blog is the code shown below:
To include this feature in Blogger, you have two options to insert the script import:
- Dashboard -> Template -> Edit HTML and insert the lines before the </body> tag (search it with Ctrl+F)
If you prefer to host it, you can download it from https://sites.google.com/site/themunsonsapps/mtg.
UPDATED 19 October: READ THIS FOR NON BLOGGER DOMAINS