Back

Mouseover font script for anki

#1
Hello,

I've recently come upon this old thread, which I didn't want to necro http://forum.koohii.com/showthread.php?tid=7099 discussing a font change on mouseover script. I then searched the forum for any updates on this and found nothing.

Well the thing is you can do this far simpler with a :hover selector in css, put this in the styling section of anki:
#ThisIsAnID:hover{font-family: "KanjiStrokeOrders", font-size: 112px};

Then just assign that ID and you are good:
<div id="ThisIsAnID">{{kanji}}</>

Hope that helps,
mrklotz
Reply